Author: trivedimca | Posted on: 11/14/2008 3:19:25 AM | Views : 1289

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.

Dont want to use "web.config".

 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(&q ...

Go to the complete details ...