Question Send Email From Asp.net

prasad kulkarni

Well-known member
Joined
Sep 7, 2009
Messages
62
Programming Experience
1-3
hello,

This is my code to send Email from asp.net application

Dim mailMessage As New MailMessage()
Dim smtpservername As String = "lbminfotech.com"

mailMessage.From = txtFrom.Text
mailMessage.To = txtTo.Text

mailMessage.Subject = txtSubject.Text
mailMessage.Body = txtMessage.Text


mailMessage.Priority = MailPriority.Normal
SmtpMail.SmtpServer = smtpservername
'mail server used to send this email. modify this line based on your mail server
SmtpMail.Send(mailMessage)
lblmesaage.Font.Bold = True
lblmesaage.ForeColor = Drawing.Color.Green
lblmesaage.Text = "Mail has been sent Successfully"

this code is working for Server Name= hirumail.com
but same code not working for Server Name= lbminfotech.com

what is the problem, if any one know then please reply me soon
 
Top Bottom