Maybe the ants got to your home too ! :P

On Aug 31, 2:28 am, The ants are driving me crazy
<[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to