Configuring email MX settings

Discussion in 'Hosting Services / Control Panel' started by Nick2035, Dec 30, 2012.

  1. My customer originally came to DiscountAsp with Google hosted email so I wiped out the current MX values and replaced with Google. Later I found out that SSL isn't supported so I couldn't send emails through the web application using Google SMTP.

    My question is how can I continue to use Google, and send emails within the web application using DiscountAsp SMTP?

    I noticed the MX setting I wiped out originally was sm13.internetmailserver.net

    In my application I'm using localhost as the email host with no authentication. Do I need to add sm13.internetmailserver.net back into the MX settings to make this work? Will adding this with the Google settings cause issues?

    Please advise on possible solutions. Thanks
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    You can use sm13.internetmailserver.net as your SMTP host, but authenticate with an account in your domain. You do not need to change any DNS records.
     
  3. I tried using sm13.internetmailserver.net as the host. In the Network Credentials I used the email address + password that I created in my google hosted email which results in the following error message:

    "Mailbox unavailable. The server response was <SomeEmail> No such user here."
     
  4. I tried that and it gives me back a response that the mailbox i'm trying to send to doesn't exist in this domain.
     
  5. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    You might want to reference our sample code for sending email.

    To send email using 'localhost' without SMTP authentication:

    http://support.discountasp.net/KB/a364/how-to-send-email-in-aspnet-20.aspx

    To send email using 'sm13.internetmailserver.net' with SMTP authentication:

    http://support.discountasp.net/KB/a1060/how-to-send-email-in-aspnet-20-smtp-authentication.aspx

    For the code with SMTP authentication, you need to create an email account at DiscountASP.NET. You can setup new email accounts either through the DiscountASP.NET Control Panel or SmarterMail.

    To setup new email accounts using the Control Panel:

    1) Log into the DiscountASP.NET Control Panel at https://my.discountasp.net
    2) Click on the Email Management link to your left.
    3) Select Email Users in the drop down box in the section QUICK VIEW/EDIT by EMAIL TYPE.
    4) Click on the ADD USER link.
    5) Fill out the information in the empty fields and click on Save.

    To setup new email accounts using SmarterMail:

    1) Log into SmarterMail as the Primary Domain Administrator. (If you don't remember who the Primary Domain Administrator is, you can click on the link SmarterMail Management Login as Primary Admin in the Control Panel.)
    2) Click on the Settings icon (2 cogs) on the menu to your left.
    3) Expand the Domain Settings folder and click on Users.
    4) Click on New.
    5) Fill out the information in the empty fields and click on Save.

    The error message you're receiving usually indicates that your not passing SMTP authentication through your code.
     
  6. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Another note is that you should be able to send email messages using Google's SMTP server, but they only accept connections on port 465. This is what I remembered years ago. I'm not sure if things have changed.
     
  7. Thanks for the response.

    My code worked when I had sm13.internetmailserver.net in my MX settings, but once I took it out for the Google SMTP it stopped working (even when I try to authenticate instead of using localhost).

    I tried using Google SMTP and also read an older thread on here saying that Google uses TLS only and DiscountASP doesn't support it, which is why it won't work.

    As for the examples you've linked I am using the same code and still getting the same error.

    Note: Using gmail smtp results in a timeout.
     
  8. Update

    Using localhost and port 25 works regardless of what's in the MX settings.

    var client = new SmtpClient("localhost");
    client.Port = 25;
     
  9. Excellent!

    Glad you got it working and thanks for the update.
     

Share This Page