I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
Thanks,
John
Is your mail server set up?
On Wed, Apr 7, 2010 at 3:56 PM, John Mitchell mitchelljj98@gmail.comwrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
- warning: mail(): Failed to connect to mailserver at "localhost"
port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193.
- Unable to send e-mail. Please contact the site administrator if
the problem persists.
- warning: mail(): Failed to connect to mailserver at "localhost"
port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193.
- Unable to send e-mail. Please contact the site administrator if
the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell -- [ Drupal support list | http://lists.drupal.org/ ]
No I don't have any email server setup. I am prototyping on my local workstation.
John
On 4/7/10, Dipen dipench@gmail.com wrote:
Is your mail server set up?
On Wed, Apr 7, 2010 at 3:56 PM, John Mitchell mitchelljj98@gmail.comwrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
- warning: mail(): Failed to connect to mailserver at "localhost"
port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193.
- Unable to send e-mail. Please contact the site administrator if
the problem persists.
- warning: mail(): Failed to connect to mailserver at "localhost"
port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193.
- Unable to send e-mail. Please contact the site administrator if
the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell -- [ Drupal support list | http://lists.drupal.org/ ]
You should then be able to use your ISP's mail server - make sure your send from email is set to the same as your personal address.
FYI - You may need to authenticate to your ISP's mail server
-- Dan Horning
American Digital Services - Where you are only limited by imagination. dan.horning@planetnoc.com :: http://www.americandigitalservices.com 1-518-444-0213 x502 . toll free 1-800-863-3854 . fax 1-888-474-6133 PO Box 746, Troy, NY 12181
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of John Mitchell Sent: Wednesday, April 07, 2010 8:48 AM To: Dipen Cc: support@drupal.org Subject: Re: [support] Unable to send e-mail. Please contact the site administrator if the problem persists.
No I don't have any email server setup. I am prototyping on my local workstation.
John
On 4/7/10, Dipen dipench@gmail.com wrote:
Is your mail server set up?
On Wed, Apr 7, 2010 at 3:56 PM, John Mitchell
mitchelljj98@gmail.comwrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
- warning: mail(): Failed to connect to mailserver at "localhost"
port 25, verify your "SMTP" and "smtp_port" setting in php.ini or
use
ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193.
- Unable to send e-mail. Please contact the site administrator if
the problem persists.
- warning: mail(): Failed to connect to mailserver at "localhost"
port 25, verify your "SMTP" and "smtp_port" setting in php.ini or
use
ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193.
- Unable to send e-mail. Please contact the site administrator if
the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell -- [ Drupal support list | http://lists.drupal.org/ ]
-- John J. Mitchell -- [ Drupal support list | http://lists.drupal.org/ ]
John Mitchell wrote:
No I don't have any email server setup. I am prototyping on my local workstation.
http://mail.google.com/support/bin/answer.py?hl=en&answer=13287
Outgoing Mail (SMTP) Server - requires TLS or SSL: smtp.gmail.com (use authentication) Use Authentication: Yes Port for TLS/STARTTLS: 587 Port for SSL: 465
John Mitchell wrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost"port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
My guess is that you need to modify your php.ini file with a proper SMTP server.
On Windows installations, you need to setup PHP to connect to a SMTP server in php.ini. Here's what PHP says about it:
*Note*: The Windows implementation of *mail()* differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a /MTA/ is needed listening on a network socket (which can either on the localhost or a remote machine). Second, the custom headers like /From:/, /Cc:/, /Bcc:/ and /Date:/ are /not/ interpreted by the /MTA/ in the first place, but are parsed by PHP. As such, the /to/ parameter should not be an address in the form of "Something someone@example.com". The mail command may not parse this properly while talking with the MTA.
http://php.net/manual/en/function.mail.php
Alternatively you could also use a module like SMTP, which bypasses PHP's mail function:
http://drupal.org/project/smtp
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 4/7/2010 6:26 AM, John Mitchell wrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost"port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
Thanks,
John
I found a mail server to connect to so I updated the php.ini file and I no longer get the "Failed to connect to mailserver at "localhost" port 25", but now I get the below error:
warning: mail(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-4.0/DST' instead in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193.
John
On 4/7/10, John Mitchell mitchelljj98@gmail.com wrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost"port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell
I recommend adding date.timezone to your php.ini file.
For example:
date.timezone = "America/Anchorage"
Here's a list of timezones:
http://nl3.php.net/manual/en/timezones.php
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of John Mitchell Sent: Wednesday, April 07, 2010 11:55 AM To: support Cc: John Mitchell Subject: Re: [support] Unable to send e-mail. Please contact the site administrator if the problem persists.
I found a mail server to connect to so I updated the php.ini file and I no longer get the "Failed to connect to mailserver at "localhost" port 25", but now I get the below error:
warning: mail(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-4.0/DST' instead in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193.
John
On 4/7/10, John Mitchell mitchelljj98@gmail.com wrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost"port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell
I have set up both:
SMTP = mail.mywebsite.com smtp_port = 110
within my php.ini file and I no longer get the errors listed in the below email, but no email is received within the users inbox.
Is their a way to debug to see how far the email went before it failed or why it did not make it to the users inbox?
Thanks,
John
On 4/7/10, John Mitchell mitchelljj98@gmail.com wrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost"port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell
FYI - port 110 is the standard port for POP3. SMTP uses port 25. When you are using port 25 are you sure you are specifying the correct host to connect to? Can the local name service resolve this name properly? Can you connect directly using telnet (to port 25)?
Best Regards,
-- Tim
----- Original Message ----- From: "John Mitchell" mitchelljj98@gmail.com To: "support" support@drupal.org Cc: "John Mitchell" mitchelljj98@gmail.com Sent: Thursday, April 22, 2010 1:40 AM Subject: Re: [support] Unable to send e-mail. Please contact the siteadministrator if the problem persists.
I have set up both:
SMTP = mail.mywebsite.com smtp_port = 110
within my php.ini file and I no longer get the errors listed in the below email, but no email is received within the users inbox.
Is their a way to debug to see how far the email went before it failed or why it did not make it to the users inbox?
Thanks,
John
On 4/7/10, John Mitchell mitchelljj98@gmail.com wrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost"port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell
-- John J. Mitchell -- [ Drupal support list | http://lists.drupal.org/ ]
I changed the smtp_port from 110 to 25 within php.ini and now the emails are sent.
At the point that the emails are successfully sent within Drupal I now get a different drupal error message:
* warning: mail(): SMTP server response: 554 5.5.1 Error: no valid recipients in C:\ms4w\Apache\htdocs\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
John
On 4/21/10, Tim Kehres tim@kehres.com wrote:
FYI - port 110 is the standard port for POP3. SMTP uses port 25. When you are using port 25 are you sure you are specifying the correct host to connect to? Can the local name service resolve this name properly? Can you connect directly using telnet (to port 25)?
Best Regards,
-- Tim
----- Original Message ----- From: "John Mitchell" mitchelljj98@gmail.com To: "support" support@drupal.org Cc: "John Mitchell" mitchelljj98@gmail.com Sent: Thursday, April 22, 2010 1:40 AM Subject: Re: [support] Unable to send e-mail. Please contact the siteadministrator if the problem persists.
I have set up both:
SMTP = mail.mywebsite.com smtp_port = 110
within my php.ini file and I no longer get the errors listed in the below email, but no email is received within the users inbox.
Is their a way to debug to see how far the email went before it failed or why it did not make it to the users inbox?
Thanks,
John
On 4/7/10, John Mitchell mitchelljj98@gmail.com wrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost"port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell
-- John J. Mitchell -- [ Drupal support list | http://lists.drupal.org/ ]
Are you properly populating the To:, Cc:, Bcc: fields of the message and setting the message recipients?
-- Tim
----- Original Message ----- From: "John Mitchell" mitchelljj98@gmail.com To: "Tim Kehres" tim@kehres.com Cc: support@drupal.org Sent: Thursday, April 22, 2010 2:57 AM Subject: Re: [support] Unable to send e-mail. Please contact thesiteadministrator if the problem persists.
I changed the smtp_port from 110 to 25 within php.ini and now the emails are sent.
At the point that the emails are successfully sent within Drupal I now get a different drupal error message:
- warning: mail(): SMTP server response: 554 5.5.1 Error: no valid
recipients in C:\ms4w\Apache\htdocs\drupal\includes\mail.inc on line 193.
- Unable to send e-mail. Please contact the site administrator if
the problem persists.
John
On 4/21/10, Tim Kehres tim@kehres.com wrote:
FYI - port 110 is the standard port for POP3. SMTP uses port 25. When you are using port 25 are you sure you are specifying the correct host to connect to? Can the local name service resolve this name properly? Can you connect directly using telnet (to port 25)?
Best Regards,
-- Tim
----- Original Message ----- From: "John Mitchell" mitchelljj98@gmail.com To: "support" support@drupal.org Cc: "John Mitchell" mitchelljj98@gmail.com Sent: Thursday, April 22, 2010 1:40 AM Subject: Re: [support] Unable to send e-mail. Please contact the siteadministrator if the problem persists.
I have set up both:
SMTP = mail.mywebsite.com smtp_port = 110
within my php.ini file and I no longer get the errors listed in the below email, but no email is received within the users inbox.
Is their a way to debug to see how far the email went before it failed or why it did not make it to the users inbox?
Thanks,
John
On 4/7/10, John Mitchell mitchelljj98@gmail.com wrote:
I get the below error when I initially set up drupal and whenever it tries to send an email:
* warning: mail(): Failed to connect to mailserver at "localhost"port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists. * warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\drupal\includes\mail.inc on line 193. * Unable to send e-mail. Please contact the site administrator if the problem persists.
How do I fix this?
Thanks,
John
-- John J. Mitchell
-- John J. Mitchell -- [ Drupal support list | http://lists.drupal.org/ ]
-- John J. Mitchell -- [ Drupal support list | http://lists.drupal.org/ ]