Hi Sampson,
<Quote>
this sends Email using the Default SMTP server of my REMOTE HOST
</Quote>
<PleaseNote>
The mail message can be delivered either through the SMTP mail service built
into Microsoft Windows 2000 or through an arbitrary SMTP server. Types in
the System.Web.Mail namespace can be used from ASP.NET or from any managed
application.
If the SmtpServer Property is not set, mail is by default queued on a
Windows 2000 system, ensuring that the calling program does not block
network traffic. If the SmtpServer property is set, the mail is delivered
directly to the specified server.
</PleaseNote>
You can specify which SMTP Server you would like to send your mail out to.
<Example>
Dim Message As New System.Web.Mail.MailMessage()
'Recipient's name and e-mail address
Message.To = "Your Name <>"
'Your name and e-mail address
Message.From = "Recipient Name <>"
Message.Body = "Test message text"
Message.Subject = "A Test"
'Your smtp server
System.Web.Mail.SmtpMail.SmtpServer = "mail.yourIntendedMailServer.com"
System.Web.Mail.SmtpMail.Send(Message)
</Example>
hth
--
William T
Chief Software Developer
Software Architect
Softwaremaker.Net Pte Ltd
+++++++++++++++++++++++++++++
"Dominic Madden" <> wrote in message
news:...
> Hi,
>
> Look at http://sourceforge.net/projects/opensmtp-net/ for a free open
source
> SMTP component.
>
> Dom
>
> "dave wanta" <> wrote in message
> news:...
> > Hi,
> > There isn't anyway of doing this with in System.Web.Mail, which is one
of
> > the reasons why I wrote www.aspNetEmail.com
> >
> > Sorry,
> > Dave
> > www.aspNetEmail.com
> >
> >
> > "sampsons" <> wrote in message
> > news:be1uji$...
> > > Greetings,
> > >
> > > I am using Web.Mail.Mailmessage
> > > along with Web.Mail.SmtpMail.Send(MailMessage) method
> > >
> > > Now, this sends Email using the Default SMTP server of my REMOTE HOST.
> > >
> > > Sadly I have found that many ISP's block mail sent through this
method.
> > > I do have an SMTP server included in the Remote Hosting package,
> > > but that SmtpServer requires authentication of outgoing mail.
> > >
> > > If I set the SmtpServer property to my domain's SmtpServer
> > > then the mail is never sent because it is not authenticated
> > > with the username and password of the account I am using
> > > as the MailMessage.To property.
> > >
> > > Is there a way to pass the username and password of the
> > > account used to send the message through Web.Mail.SmtpMail.SmtpServer
> > > property??
> > >
> > > Thanks in advance,
> > > Severin Sampson
> > >
> > >
> >
> >
>
>