I'm having a problem sending mail with the code below. I get a "The
transport failed to connect to the server" error. My problem is:
- this code works on the web server
- this code works on my laptop when at work
- It DOES NOT work when I VPN from home
I assume it is a security issue , but how can I get around it? Any
ideas?
MailMessage mail = new MailMessage();
mail.From = "[EMAIL PROTECTED];";
mail.To = "[EMAIL PROTECTED];";
mail.Subject = "TEST!!!";
mail.Body = "test";
mail.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = "mailserver.bigcompany.com";
SmtpMail.Send(mail);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---