Tech Off Post

Single Post Permalink

View Thread: Asp mail in code behind
  • User profile image

    figuerres said:
    figuerres said:

    if the server is remote and or if you need to auth before send then use this:


    SendEmail SM = new SendEmail();

    SM.ServerName = "";
             SM.Credential = new NetworkCredential(, "SecretPassword");

    replace server name and other values as needed.

    Thanks for the advice! Worked great!!!!