Sending email message from asp.net webform
-
It's very easy to send and receve email in asp 2.0 first include following files in ur code filed 1)Imports System.Web.Mail 2)Imports System.Net You can send mail in following way ' Creating the Mail Message Dim objMailMessage As MailMessage objMailMessage = New MailMessage objMailMessage.From = "youremailaddress@yahoo.com" objMailMessage.To = custemail.ToString objMailMessage.Subject = "Subject Heading" objMailMessage.Body = "Thank you (any Description in body)" objMailMessage.BodyFormat = MailFormat.Html ' Sending Mail Message SmtpMail.Send(objMailMessage) 'And also set ur Web.config file by defining your network host ipaddress, username and password Regards, Vidhin Shah
-
It's very easy to send and receve email in asp 2.0 first include following files in ur code filed 1)Imports System.Web.Mail 2)Imports System.Net You can send mail in following way ' Creating the Mail Message Dim objMailMessage As MailMessage objMailMessage = New MailMessage objMailMessage.From = "youremailaddress@yahoo.com" objMailMessage.To = custemail.ToString objMailMessage.Subject = "Subject Heading" objMailMessage.Body = "Thank you (any Description in body)" objMailMessage.BodyFormat = MailFormat.Html ' Sending Mail Message SmtpMail.Send(objMailMessage) 'And also set ur Web.config file by defining your network host ipaddress, username and password Regards, Vidhin Shah
-
where and how i will define in web config my network host ip address,username and password.
-
my code is like this MailMessage mail=new MailMessage(); mail.To ="anu@gmail.com"; mail.From ="anu2@gmail.com"; mail.Subject = "your subject"; mail.Body = "your subject"; SmtpMail.Send(mail); it's executing.but i am not getting msg in my mail?what is the problem
-
my code is like this MailMessage mail=new MailMessage(); mail.To ="anu@gmail.com"; mail.From ="anu2@gmail.com"; mail.Subject = "your subject"; mail.Body = "your subject"; SmtpMail.Send(mail); it's executing.but i am not getting msg in my mail?what is the problem
-
hi i tried to paste the code but i dont know why its not displaying here so i have mailed the code to ur email address. so read that code and copy paste that code in ur web.config file Regards, Vidhin Shah
-
http://www.systemwebmail.com/[^] http://www.systemnetmail.com/[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips