DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   Email in vb.net (http://www.daniweb.com/forums/thread157267.html)

trivedimca2005 Nov 14th, 2008 4:56 am
Email in vb.net
 
E-mail in vb.net

I am using following code to send e-mail. Below code is working fine in my server (192.168.10.10) but when I am using it my client machine it gives proxy error.

Server has proxy setting and user-name and password for proxy are user-name=user and password=user and main login to server to start the server is log-in name=administrator and password is admin.

Please guide me to send the e-mail from my client machine.


System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();



mail.To.Add("trivedimca@yahoo.co.in");
mail.Subject = "subject";

mail.From = new System.Net.Mail.MailAddress("fultufatak2003@gmail.com");
mail.IsBodyHtml = true;
mail.Body = "message";

System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("192.168.10.10");
smtp.Send(mail);

Thanks,
Prashant Trivedi.

sierrainfo Dec 4th, 2008 7:59 am
Re: Email in vb.net
 
see the links.

http://www.codeproject.com/KB/vb/VB2005_SMTP_EMail.aspx

http://www.aspnettutorials.com/tutor...spnet2-vb.aspx


All times are GMT -4. The time now is 8:59 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC