http://sholliday.spaces.live.com/
2/8/2006 entry
I have 1.1 and 2.0 samples. There is also "authentication" modes you have
to consider.
"frank" <> wrote in message
news:10F0F109-FF99-40EA-949F-...
> I need help please!
>
> I write a method to send email and there is a button on a web page, click
> the button will call the method. everything seems ok. but the email never
be
> sent.
> --------------------
> button click: SendMail("")
>
> Public Function SendMail(ByVal toAddr As String) As Boolean
> Dim myMessage As New MailMessage
>
> myMessage.To = toAddr
> myMessage.From = ""
> myMessage.Subject = "Vaughan GIS System"
> myMessage.BodyFormat = MailFormat.Text
>
> myMessage.Body = "www.vaughangis.info"
>
> Mail.SmtpMail.SmtpServer = "10.141.140.69"
>
> Try
> SmtpMail.Send(myMessage)
> Catch ex As Exception
> ErrMsg = ex.Message
> Return False
> End Try
> Return True
> End Function
> ---------------