472,958 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 1560
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.