0

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.

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by sierrainfo
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.