0

I am having a webpage in websites which is required to send mail to a particular mail address mentioned in the textbox

2
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by deeptakshd
0

Dim msgMail As New MailMessage()
Dim smtpMail As New SmtpClient()
msgMail.To.Add(New MailAddress(your textbox value))
msgMail.From = New MailAddress(set your email or any specific email)
msgMail.Subject = "set your subject line"
msgMail.IsBodyHtml = True
smtpMail.Host = "set your email host address"
smtpMail.Send(msgMail)


I am having a webpage in websites which is required to send mail to a particular mail address mentioned in the textbox

0

what you want from me to explain in detail ? I am not getting you clearly.

can u plz expalin in more details in more detail...

0

i m using c# instead of vb n also......i will really appreciate if u provide an example code for explaination

0

using System.Net.Mail;

MailMessage msgMail = new MailMessage();
SmtpClient smtpMail = new SmtpClient();
msgMail.To.Add(New MailAddress(here you need to use your textbox.Text));
msgMail.From = New MailAddress(set your email or any specific email);
msgMail.Subject = "set your subject line";
msgMail.IsBodyHtml = True;
smtpMail.Host = "set your email host address";
smtpMail.Send(msgMail);

this is the C# working code. MailMessage is class which is used to construct an email message and send it using smtpclient.
===========================================================================================

i m using c# instead of vb n also......i will really appreciate if u provide an example code for explaination

0

thanx man...........can u plz help on on my oder poste........thanx:)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.