473,396 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error sending mail when outlook is using Exchange server

I encountered a problem sending an email on my windows XP, which I thought
was a bit weird, cause it worked for me before on windows XP.
So I tried on some other computers with windows XP, and managed to send
emails on the systems where outlook was not installed.

So I'm pretty sure the problem lies in outlook using exchange server.

Does anyone know how to solve this, maybe send the mail to the exchange
server or outlook instead. I dont wanna use the outlook dll file, like this

Dim outlookApp As Outlook._Application
outlookApp = New Outlook.Application

That is not an acceptable solution, any other ways to work around the
problem, or solve the problem?
Jun 6 '06 #1
5 1595
Richard Kure wrote:
Does anyone know how to solve this, maybe send the mail to the exchange
server or outlook instead. I dont wanna use the outlook dll file, like this


Look into the System.Net.Mail class (.NET 2.0) or System.Web.Mail (.NET
1.x). To send mail through those classes you just need to specify an
SMTP server, which would be the Exchange server.

Hope this helps.

Dan Manges
Jun 6 '06 #2
> Look into the System.Net.Mail class (.NET 2.0) or System.Web.Mail (.NET
1.x). To send mail through those classes you just need to specify an SMTP
server, which would be the Exchange server.


I have tried to use both namespaces, but it wont send the emails. If I try
on a windows XP without outlook installed, there is no problem, then I can
send the emails as I want to. the problem only occurs when outlook is
installed and linked to exchange server.
Jun 6 '06 #3
This is what I cannot do, when I have installed outlook and linked it to an
exchange server:

Dim mailMessage As New MailMessage()

mailMessage.To.Add(textBoxTo.Text)

mailMessage.From = New MailAddress(textBoxFrom.Text)

mailMessage.Subject = "test"

mailMessage.Body = "test"

Dim smtpClient As New SmtpClient(textBoxSMTP.Text)

smtpClient.Send(mailMessage)

(System.Net.Mail) I also tried with the (System.Web.Mail).
Jun 6 '06 #4
Richard Kure wrote:
This is what I cannot do, when I have installed outlook and linked it to an
exchange server:

Dim mailMessage As New MailMessage()
mailMessage.To.Add(textBoxTo.Text)
mailMessage.From = New MailAddress(textBoxFrom.Text)
mailMessage.Subject = "test"
mailMessage.Body = "test"
Dim smtpClient As New SmtpClient(textBoxSMTP.Text)
smtpClient.Send(mailMessage)

(System.Net.Mail) I also tried with the (System.Web.Mail).


Now I understand your problem. That's odd that after installing Outlook
you can't send mail this way. I don't know very much about Outlook. My
only guess is that it installs something which prevents applications
from sending mail directly as a way to prevent viruses which send spam,
but I really have no idea.

Sorry I can't be of more help.

Dan Manges
Jun 6 '06 #5

"Richard Kure" <te**@test.com> skrev i en meddelelse
news:%2***************@TK2MSFTNGP05.phx.gbl...
I encountered a problem sending an email on my windows XP, which I thought
was a bit weird, cause it worked for me before on windows XP.
So I tried on some other computers with windows XP, and managed to send
emails on the systems where outlook was not installed.

So I'm pretty sure the problem lies in outlook using exchange server.

Does anyone know how to solve this, maybe send the mail to the exchange
server or outlook instead. I dont wanna use the outlook dll file, like
this

Dim outlookApp As Outlook._Application
outlookApp = New Outlook.Application

That is not an acceptable solution, any other ways to work around the
problem, or solve the problem?


DOH, I figurred out the problem, apparently McAfee has a default setting,
stoppin all outgoing emails, this took me 2 days, but by a process of
elimination, i managed to find out that it was McAfee which blocked my
mails.
Jun 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
17
by: Bonj | last post by:
Right guys. (I would like a solution to this in VB6 as this is what our needy app is written in, but any solutions that involve .NET would be much appreciated likewise as I could instantiate...
8
by: Frank | last post by:
I think I've confused myself completely here :-) I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the client if they're email server supported SMTP, and...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
1
by: Gilbert Cheung | last post by:
Hello. I am writing a website for my company. There is a sign-up form that requires us to send a confirmation email to our customer. Our company uses Exchange Server 2000 as our mail server. We...
8
by: Michel Posseth [MCP] | last post by:
Hi does someone has experience with this ?? i have made a lot of apps in the past that were capable of sending e-mails the server i then talked to was a Linux SMTP server and it worked great ...
14
by: sridhar | last post by:
iam having user account on an exchangeserver. with that can i send an email using python? if iam using the following code iam getting error fromAddress = 'sridhar_kasturi@satyam.com'...
0
by: Noro | last post by:
Hello, I develop an ASP.NET 2.0 Intranet with a feature of sending messages through an Exchange Server 2003. For e-mails sending, all passes well. We have a Fax solution (RTEFAX) with Exchange...
0
by: syedi20 | last post by:
Hi, I am doing a program in which I send emails from ASP.net page, the mail server used is exchange server. I am using Redemption COM so that I can send email with voting buttons, Redemption works...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.