473,467 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SmtpMail.Send fails

My client app uses SmtpMail.Send() is failing on client PC's that are configured with Outlook 2003.

I'm using code similar to:

Dim Message As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage(
Message.To = args(0
Message.From = args(1
Message.Subject = args(2
Message.Body = args(3

SmtpMail.SmtpServer = "your mail server name goes here
SmtpMail.Send(Message

Q1) How can I retrieve the SMTP Server regardless of the Outlook version (on a client station
Q2) How can I configure a client PC to point to a specific SMTP Server?

I deliberately used System.Web.Mail.MailMessage so that I wouldn't have to deal with mail configuration issues.

-billg_s

Jul 21 '05 #1
3 1647
Followup: After discovering that the user must install IIS to use SMTP, is there an alternative or 3rd party alternative

--billg_sd
Jul 21 '05 #2
billg_sd <an*******@discussions.microsoft.com> wrote:
Followup: After discovering that the user must install IIS to use
SMTP, is there an alternative or 3rd party alternative?


The Indy library (www.indyproject.org) contains SMTP stuff. The .NET
version is still in beta, but you might want to look into it anyway.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #3
Jon Skeet [C# MVP] <sk***@pobox.com> wrote in
news:MP************************@msnews.microsoft.c om:
The Indy library (www.indyproject.org) contains SMTP stuff. The .NET
version is still in beta, but you might want to look into it anyway.


The SMTP part is pretty solid. Indy not only contains an SMTP client, but
there is also an SMTP relay which bypasses the need for a local SMTP server.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Jul 21 '05 #4

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

Similar topics

8
by: Jason | last post by:
Hi not sure if this is the write place, but i really need some help with this...! I have a piece of code that sends email using the SmtpMail class, in an ASP.NET web application, with...
9
by: Kevin Spencer | last post by:
We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail fails now with the following message: System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,...
0
by: Brian Newtz | last post by:
Hello! My development machine is WinXP and I am trying to use System.Web.Mail.SmtpMail to send emails. I was able to send out one email, but now the Send method fails every time. I added some...
1
by: Jens Øster | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
3
by: Jens | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
6
by: Robert Pettersson | last post by:
Hi, I have built an webapp in C# that uses SMTPMail to send mail to users. When I installed it on the prodserver everything worked fine for me, but the users can not send mail. They get Access...
4
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP...
3
by: billg_sd | last post by:
My client app uses SmtpMail.Send() is failing on client PC's that are configured with Outlook 2003. I'm using code similar to: Dim Message As System.Web.Mail.MailMessage = New...
0
by: andreas.baus | last post by:
Hello. An applicytion I wrote uses the SmtpMail and MailMessage objects (System.Web.Mail namespace) to construct an email and send it. And it is working fine ... most of the time. For some...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
1
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
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 projectplanning, coding, testing,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.