Hai...
I am using the code below to send mail using the SMTP Class...
Dim SmtpMail As System.Web.Mail.SmtpMail
Dim from As String = "rameshhv@hotmail.com"
Dim mailto As String = "rameshhv@hotmail.com"
Dim subject As String = "Test Message"
Dim body As String = "<html><body>Testing message from Ramesh</body></html>"
Try
SmtpMail.Send(from, mailto, subject, body)
Catch err As Exception
Response.Write(err.Message)
End Try
It is not saying any errors.. But instead the mail is also not delivered. It is placed in c:\InetPub\Mailroot\Queue.
I dont know how to rectify this problem. Can anybody help me out.
I am using the code below to send mail using the SMTP Class...
Dim SmtpMail As System.Web.Mail.SmtpMail
Dim from As String = "rameshhv@hotmail.com"
Dim mailto As String = "rameshhv@hotmail.com"
Dim subject As String = "Test Message"
Dim body As String = "<html><body>Testing message from Ramesh</body></html>"
Try
SmtpMail.Send(from, mailto, subject, body)
Catch err As Exception
Response.Write(err.Message)
End Try
It is not saying any errors.. But instead the mail is also not delivered. It is placed in c:\InetPub\Mailroot\Queue.
I dont know how to rectify this problem. Can anybody help me out.
Last edited by a moderator: