bruce
09-14-2004, 02:21 AM
Your code looks fine to me.
Do you get any error message?
[b]quote:Originally posted by rahulbhot
i used system.web.mail to send automated e-mail's from my website
i debuged the code , configured the mail server .
still mail's are not sent
what else should i try
please review the code below:
Dim objMM As New MailMessage
objMM.To = "aaa@bbb.com"
objMM.From = "xxx@yyy.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "Hello there!"
objMM.Body = "Hi!" & vbCrLf & vbCrLf &
"How are you doing?"
SmtpMail.SmtpServer = "localhost"
'tried changing SmtpMail.SmtpServer to local IP
SmtpMail.Send(objMM)
R.B.
</blockquote id="quote"></font id="quote">
B.
DiscountASP.NET
http://www.DiscountASP.NET
Do you get any error message?
[b]quote:Originally posted by rahulbhot
i used system.web.mail to send automated e-mail's from my website
i debuged the code , configured the mail server .
still mail's are not sent
what else should i try
please review the code below:
Dim objMM As New MailMessage
objMM.To = "aaa@bbb.com"
objMM.From = "xxx@yyy.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "Hello there!"
objMM.Body = "Hi!" & vbCrLf & vbCrLf &
"How are you doing?"
SmtpMail.SmtpServer = "localhost"
'tried changing SmtpMail.SmtpServer to local IP
SmtpMail.Send(objMM)
R.B.
</blockquote id="quote"></font id="quote">
B.
DiscountASP.NET
http://www.DiscountASP.NET