Re: System.Web.Mail.Smtp namespace
- From: alantolan@xxxxxxxxx
- Date: 30 Jun 2005 08:14:11 -0700
I got it working but am using MS Exchange / Outlook for mail not
Domino/Notes
....
Dim Message As System.Web.Mail.MailMessage = New
System.Web.Mail.MailMessage
Message.To = txtTo.Text
Message.From = txtFrom.Text
Message.Subject = txtSubject.Text
Message.Body = txtBody.Text
Try
SmtpMail.SmtpServer = txtServer.Text ' Works whether
this is set or not (?)
SmtpMail.Send(Message)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
NOTES:
Send(), and
SmtpServer
are both Shared members of the SmtpMail class, there is no need to
instantiate myMailServer to use them
As mentioned above, it appears that SmtpServer does not NEED to be set
(at least on WinXP, or Win 2000 Server systems). It works fine for me
wether or not I set it.
.
- Follow-Ups:
- Re: System.Web.Mail.Smtp namespace
- From: marcmc
- Re: System.Web.Mail.Smtp namespace
- References:
- System.Web.Mail.Smtp namespace
- From: marcmc
- System.Web.Mail.Smtp namespace
- Prev by Date: Re: System.Web.Mail.Smtp namespace
- Next by Date: Re: reference dependency warnings during build
- Previous by thread: Re: System.Web.Mail.Smtp namespace
- Next by thread: Re: System.Web.Mail.Smtp namespace
- Index(es):