Dear Chris,
On 5/16/06, Chris <[EMAIL PROTECTED]> wrote:
This is what I use.
Hope it helps.
Replace various variables with strings and you should be good to go.
MailAddress from = new MailAddress(emailaddress, name);
MailAddress to = new MailAddress(emailaddress, name);
MailMessage message = new MailMessage(from, to);
message.Subject += subject;
message.Body += body;
SmtpClient smtp = new SmtpClient(smtpserver);
smtp.Credentials = new NetworkCredential(username,password);
try
{
smtp.Send(message);
message.Dispose();
}
Mohamed Nabil <[EMAIL PROTECTED] > wrote:hi,I wanna send an email using asp.net but I want the email to be authenticated from my account and don't reported as spam ( e.g. through logging to my account using username and password or something like that)regards
Skype ID: cochris4
Skype is a free secure and encrypted IM and VOIP client.
Download Skype at http://www.skype.com/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
YAHOO! GROUPS LINKS
- Visit your group "Microsofts_C_Sharp" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
YAHOO! GROUPS LINKS
- Visit your group "Microsofts_C_Sharp" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
