L
Len
Hi,SmtpMail.Send(email);
I am trying to work thru some examples on webforms.
I can't get the email portion to work."SmtpMail.Send(email)";
I have xppro, visual studio academic, and outllook 2003.
Can you teel me what I need to install and where I can find it.
Thanks
Len
MailAttachment attachment= new
MailAttachment("c:\\Inetpub\\wwwroot\\SkyShark\\NA\\PrivacyPolicy.doc");
MailMessage email= new MailMessage();
email.Attachments.Add(attachment);
email.To=username + "@niit.com";
email.From="(e-mail address removed)";
email.Subject="Message from SkyShark Airlines";
email.Body="Dear " + username + ",\n\nYour account has been added " +
"to the SkyShark Airlines application. You can log on to the " +
"application at http://npandey-d185/skyshark. \n\nYour logon name" +
" is " + username + " and the password is password. Please change" +
" your password when you log on. \n\n By logging on to the application," +
" you agree to abide by the terms and conditions attached in the mail" +
"\n\n Happy Browsing.\n\n Network Administrator (SkyShark)";
I am trying to work thru some examples on webforms.
I can't get the email portion to work."SmtpMail.Send(email)";
I have xppro, visual studio academic, and outllook 2003.
Can you teel me what I need to install and where I can find it.
Thanks
Len
MailAttachment attachment= new
MailAttachment("c:\\Inetpub\\wwwroot\\SkyShark\\NA\\PrivacyPolicy.doc");
MailMessage email= new MailMessage();
email.Attachments.Add(attachment);
email.To=username + "@niit.com";
email.From="(e-mail address removed)";
email.Subject="Message from SkyShark Airlines";
email.Body="Dear " + username + ",\n\nYour account has been added " +
"to the SkyShark Airlines application. You can log on to the " +
"application at http://npandey-d185/skyshark. \n\nYour logon name" +
" is " + username + " and the password is password. Please change" +
" your password when you log on. \n\n By logging on to the application," +
" you agree to abide by the terms and conditions attached in the mail" +
"\n\n Happy Browsing.\n\n Network Administrator (SkyShark)";