Dear Chris,
I think that this code is Compatible with ASP.NET 2 while I am using ASP.NET 1.1

 
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




My status
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






YAHOO! GROUPS LINKS




Reply via email to