Servergrid UserLink

... connection ... education ... discovery ... information ...
Welcome to Servergrid UserLink Sign in | Join | Help
in
Home Blogs Forums Photos Downloads Servergrid Join Now Private Messages

ASP.NET EMail Tests

Last post 11-08-2006, 1:57 PM by admin. 3 replies.
Sort Posts: Previous
  • ASP.NET EMail Tests

     11-07-2006, 1:05 PM

    • Joined on 11-07-2006
    • Posts 3
    • Points 18
    • Top 50 Contributor

    Has anyone worked out how to send email from ASP.NET (v2)  - PRIOR to uploading the test/development site to a servergrid.com website?  We prefer to develop the web pages on our systems and test, but the emails fail because the current servergrid SMTP settings require a download login prior to an upload. (in simple terms).

    Thank you in advance.

     

  • Re: ASP.NET EMail Tests

     11-07-2006, 2:45 PM

    Moderator
    • Joined on 11-05-2006
    • Posts 50
    • Points 260
    • Top 10 Contributor
    Hi Ray, the POP-before-SMTP authentication the mail servers require authorizes you by IP for approximately 30 minutes. So all you would need to do is check a POP3 account hosted here from the same computer your test code uses. Then set your code to use the same mail server as its SMTP server in the format 'mail.domain.com'. If you store the smtp server name in your web.config then you would be able to move your code between environments without code changes. Hope this helps!
  • Re: ASP.NET EMail Tests

     11-08-2006, 12:47 PM

    • Joined on 11-07-2006
    • Posts 3
    • Points 18
    • Top 50 Contributor

    Josh,

    Thank you, but that leave me in the same predicament. I do not want to check the pop3 account from my Windows Server 2003, but that is where the test emails will be originated.

    I have a colleague in a local MSDN group that says that his web hosting company can support this type of ASP.NET with email development. He said that he will loan me an account to test.

    Thanks,

    Ray 

  • Re: ASP.NET EMail Tests

     11-08-2006, 1:57 PM

    Moderator
    Hi Ray, if you're using a separate development machine using Windows Server 2003 (or most other versions of Windows for that matter) it's even easier.  Just enable the local IIS SMTP on that server with relay privileges to 127.0.0.1 and you will have exactly the same environment we're running here.  You will be able to use "localhost" as your SMTP server on both your development and production environment.

    Administration
    Servergrid - Windows Hosting Experts
    http://www.servergrid.com

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems