Email in vb.net

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 1
Reputation: trivedimca2005 is an unknown quantity at this point 
Solved Threads: 0
trivedimca2005 trivedimca2005 is offline Offline
Newbie Poster

Email in vb.net

 
0
  #1
Nov 14th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 144
Reputation: sierrainfo is an unknown quantity at this point 
Solved Threads: 9
sierrainfo sierrainfo is offline Offline
Junior Poster
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC