SmtpMail.Send fails

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Followup: After discovering that the user must install IIS to use SMTP, is there an alternative or 3rd party alternative

--billg_sd
 
billg_sd said:
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 said:
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
 
Back
Top