473,659 Members | 3,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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._Applic ation
outlookApp = New Outlook.Applica tion

That is not an acceptable solution, any other ways to work around the
problem, or solve the problem?
Jun 6 '06 #1
5 1609
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.T ext)

mailMessage.Fro m = New MailAddress(tex tBoxFrom.Text)

mailMessage.Sub ject = "test"

mailMessage.Bod y = "test"

Dim smtpClient As New SmtpClient(text BoxSMTP.Text)

smtpClient.Send (mailMessage)

(System.Net.Mai l) I also tried with the (System.Web.Mai l).
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.T ext)
mailMessage.Fro m = New MailAddress(tex tBoxFrom.Text)
mailMessage.Sub ject = "test"
mailMessage.Bod y = "test"
Dim smtpClient As New SmtpClient(text BoxSMTP.Text)
smtpClient.Send (mailMessage)

(System.Net.Mai l) I also tried with the (System.Web.Mai l).


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.co m> skrev i en meddelelse
news:%2******** *******@TK2MSFT NGP05.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._Applic ation
outlookApp = New Outlook.Applica tion

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
4299
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
2891
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 them, otherwise please forgive the crossposting.) I'm sure I've seen posts here before criticising the practice of automating outlook for the purpose of programatically sending email, on the grounds that it's naff. Well now we're really landed in...
8
4362
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 got the following reply (exact quote): Exchange 5.5 uses IMS connector for communication between the internal and the external world. IMS is based on SMTP Protocol. For mail flow within the organization Exchange 5.5 uses Message Transfer...
9
3215
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 CDOmail. I don't want to use the Outlook reference because outlook prompts each time program access it and I have found a way to disable that. Can I use webmail with exchange? Thanks
1
2943
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 decided not to implement any smtp server as that may post some additional security risk. The question is, how can I write an ASP.NET 1.1 script (in C#, though I think there is not much difference between C# and VB.NET) that can send email,...
8
2842
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 Now i work in a company with a MS exchange server and would like to send some e-mails however i can`t get it to work at all error is : ( translated form the dutch language )
14
9886
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' toAddress = 'sridhar_kasturi@satyam.com' msg = "Subject: Hello\n\nThis is the body of the message." import smtplib
0
1072
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 connector who allows us to send faxes from Outlook with the syntax , however when I try to send a fax from my aspx page in the same way as from Outlook, I receive the following message : "The specified string is not in the form required for an...
0
1266
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 with MS Outlook. My problem is that when I am doing so locally it is running and exchange server is asking for password (which is exchange server authentication), but when same is deployed at IIS, its not asing for password and login is failing. ...
0
8337
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8748
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7359
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2754
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.