ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SMTP mail not sending.

February 08, 2011 11:38am

Subscribe [4]
  • #1 / Feb 08, 2011 11:38am

    jeremydouglas

    292 posts

    I’m working with my client who, being an IT company setup their own fresh install of IIS for me to use EE on.

    The only problem we have left to iron out is the email setup. We are trying to get SMTP mail going. Currently, when trying to send an email from the communicate panel, it will hang for about 15 minutes until something times out. No email is getting sent.

    I looked through the CI debug file, I can post that if it helps, but I don’t see anything that looks suspicious to me.

    I’m guessing it’s a server issue, I was just wondering if there were any tips on something that might need to be installed or looked for.

  • #2 / Feb 08, 2011 4:26pm

    Brandon Jones

    5500 posts

    Hi jeremydouglas,

    Keep in mind EE does not currently support SMTP servers that require secure connections, only the basic SMTP standard. If you need more security you are better off sticking with the default (PHP Mail) and configuring the server appropriately.

  • #3 / Feb 08, 2011 4:39pm

    jeremydouglas

    292 posts

    I checked on that and we don’t believe it is requiring a secure connection.

  • #4 / Feb 08, 2011 4:39pm

    jeremydouglas

    292 posts

    Also, the webserver IP is whitelisted.

  • #5 / Feb 09, 2011 12:50am

    John Henry Donovan

    12339 posts

    jeremydouglas,

    Can you enable Enable Email Debugging? in your Email configuration and try again please? Note any error message.

    Does using PHP Mail work?

  • #6 / Feb 09, 2011 9:56am

    jeremydouglas

    292 posts

    I don’t think they have anything installed to make php mail work. I believe that takes something extra besides just installing php, right?

    Below is from the log file in CI. Email debugging is on and general debug is set to 4. I’m not getting any php errors, just the browser times out after 10 or 15 minutes of trying to send the email.

    DEBUG - 2011-02-09 08:45:52 --> Config Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Hooks Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Unicode Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Unicode Class - UTF-8 Support Enabled
    DEBUG - 2011-02-09 08:45:52 --> URI Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Router Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Output Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Input Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Global POST and COOKIE data sanitized
    DEBUG - 2011-02-09 08:45:52 --> Language Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Loader Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: language_helper
    DEBUG - 2011-02-09 08:45:52 --> Security Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Database Driver Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: string_helper
    DEBUG - 2011-02-09 08:45:52 --> Security class already loaded. Second attempt ignored.
    DEBUG - 2011-02-09 08:45:52 --> Security class already loaded. Second attempt ignored.
    DEBUG - 2011-02-09 08:45:52 --> Language file loaded: language/english/core_lang.php
    DEBUG - 2011-02-09 08:45:52 --> User Agent Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Security class already loaded. Second attempt ignored.
    DEBUG - 2011-02-09 08:45:52 --> Language file loaded: language/english/cp_lang.php
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: form_helper
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: quicktab_helper
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: security_helper
    DEBUG - 2011-02-09 08:45:52 --> Jquery Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Javascript Class Initialized and loaded.  Driver used: jquery
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: url_helper
    DEBUG - 2011-02-09 08:45:52 --> Model Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Model Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Security class already loaded. Second attempt ignored.
    DEBUG - 2011-02-09 08:45:52 --> Language file loaded: language/english/tools_lang.php
    DEBUG - 2011-02-09 08:45:52 --> Model Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Model Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> File loaded: C:\inetpub\wwwroot\themes/cp_themes/default/_shared/menu/item_parent.php
    DEBUG - 2011-02-09 08:45:52 --> File loaded: C:\inetpub\wwwroot\themes/cp_themes/default/_shared/menu/item.php
    DEBUG - 2011-02-09 08:45:52 --> File loaded: C:\inetpub\wwwroot\themes/cp_themes/default/_shared/menu/item_divider.php
    DEBUG - 2011-02-09 08:45:52 --> Model Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: directory_helper
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: file_helper
    DEBUG - 2011-02-09 08:45:52 --> Model Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Security class already loaded. Second attempt ignored.
    DEBUG - 2011-02-09 08:45:52 --> Language file loaded: language/english/expressionengine_info_lang.php
    DEBUG - 2011-02-09 08:45:52 --> Helper loaded: version_helper
    DEBUG - 2011-02-09 08:45:52 --> File loaded: C:\inetpub\wwwroot\system/expressionengine/third_party/structure/views/accessory.php
    DEBUG - 2011-02-09 08:45:52 --> Model Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Controller Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Model Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Security class already loaded. Second attempt ignored.
    DEBUG - 2011-02-09 08:45:52 --> Language file loaded: language/english/communicate_lang.php
    DEBUG - 2011-02-09 08:45:52 --> Email Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Form Validation Class Initialized
    DEBUG - 2011-02-09 08:45:52 --> Language file loaded: language/english/form_validation_lang.php
    DEBUG - 2011-02-09 08:45:52 --> Language file loaded: language/english/email_lang.php
  • #7 / Feb 09, 2011 10:08am

    jeremydouglas

    292 posts

    Also, this is what Safari says when it times out:

    Safari can’t open the page “http://mydomain.com/system/index.php?S=0&D=cp&C=tools_communicate&M=send_email” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again.

    I’ve tried in Firefox as well.

  • #8 / Feb 09, 2011 10:18am

    jeremydouglas

    292 posts

    If someone can answer this as well, their IT staff is troubleshooting from their end and ask:

    Can you please explain the principle of how this script is supposed to work?  How does it call the SMTP server to send the message?

    Thanks.

  • #9 / Feb 09, 2011 5:08pm

    Ingmar

    29245 posts

    You will need to either configure a local mail server or use an external SMTP server, then configure EE appropriately.

    After you have done so enable EE’s email debugging and try to send email via the “Communicate” tab of your control panel.

  • #10 / Feb 09, 2011 5:22pm

    jeremydouglas

    292 posts

    We have an external SMTP server setup and are trying to connect to that. There is a CRM that connects through SMTP fine. It runs on asp and isn’t on the same server as the website though, but if that can connect I figure EE should be able to connect.

    I have the email debug turned on. What I posted above is what gets logged to the CI log file when I try to send an email.

    Is there another place that I can look for email debugging?

    Is there any other info I can give the IT staff about how EE calls the SMTP server to send the message?

  • #11 / Feb 10, 2011 8:28am

    Sue Crocker

    26054 posts

    Hi, Jeremy - this is beyond my pay grade, so asking the dev team. Thanks in advance for your patience.

  • #12 / Feb 10, 2011 11:12am

    Sue Crocker

    26054 posts

    Quick question:

    Does system/expressionengine/utilities/email_test.php send correctly? That’s outside of EE.

  • #13 / Feb 20, 2011 12:41am

    jeremydouglas

    292 posts

    Hi Sue,

    Sorry, I didn’t see that you had responded until now.

    I tried the Email Test form and it didn’t work. I get the below response:

    Email Test Script
    
    Error: Unable to send your email
  • #14 / Feb 20, 2011 12:57am

    jeremydouglas

    292 posts

    The test script uses Sendmail, right? I was trying to connect to a mail server through SMTP.

  • #15 / Feb 21, 2011 4:18am

    John Henry Donovan

    12339 posts

    Jeremy,

    Just to confirm as it has happened before but do you have the Email module actually installed?
    Also can you try sending to an email not of the the same domain as the website

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases