Sending an Email

Directive Needed:
using System.Web.Mail;

Code:
System.Web.Mail.MailMessage message = new System.Web.Mail.MailMessage();
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 1);
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "konrad12315");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "beatka1");
message.From = "konrad12315@wp.pl";
message.To = "mazquick@gmail.com";
message.Subject = txtTresc.Text;
message.Body = rtbTresc.Text;
System.Web.Mail.SmtpMail.SmtpServer = "smtp.wp.pl";
System.Web.Mail.SmtpMail.Send(message);
Wyszukiwarka

Podobne podstrony:
Traffic Authority Building An Email List
Tracing an Email
An Empirical Comparison of Discretization Models
Szkolenie PZP AN
Stymulus Zestaw STP AN Eheschließung
email template product notification
email vaild reg
email subjects
Intellivox AN PA
Beginning Short Stories with Quetsions, An Overcast Day
HOW TO MAKE AN MESSENGE BOX
Install an electric shower

więcej podobnych podstron