Dear All, I am on windows and realized that no emails have been sent for instance when a new user is created. Did some googling but haven't found a definitive answer. Anyone had similar experience?
This is likely not Drupal-related, but PHP settings instead. It seems rather involved to get Windoze to actually send PHP email.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Anthony
I am on windows and realized that no emails have been sent for instance when a new user is created. Did some googling but haven't found a definitive answer. Anyone had similar experience?
If it's not showing an error in Drupal, then it's something in your PHP installation. On Windows you do have to set it for a SMTP server in php.ini. I would check that. If you're still having troubles, then I would look at using the SMTP module and a 3rd party STMP service (if not a lot of emails, then GMail can be used):
http://drupal.org/project/smtp
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 7/25/2012 6:11 PM, Anthony wrote:
Dear All, I am on windows and realized that no emails have been sent for instance when a new user is created. Did some googling but haven't found a definitive answer. Anyone had similar experience?
--
*/Anthony Stefan Maciejowski/*
Has the hosting server ever sent email? Are any other emails sent from site? Might not be related to Drupal.
On 07/25/2012 05:11 PM, Anthony wrote:
Dear All, I am on windows and realized that no emails have been sent for instance when a new user is created. Did some googling but haven't found a definitive answer. Anyone had similar experience?
--
*/Anthony Stefan Maciejowski/*
Most windows machines don't have a SMTP Service to forward the email. I believe XAMPP, from apache friends includes a product call Mercury mail for this reason, although I haven't been successful in getting it running.
Good Luck.
Warren Vail
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Matthew Lechleider Sent: Wednesday, July 25, 2012 5:39 PM To: support@drupal.org Subject: Re: [support] emails not being sent by drupal 7
Has the hosting server ever sent email? Are any other emails sent from site? Might not be related to Drupal.
On 07/25/2012 05:11 PM, Anthony wrote:
Dear All, I am on windows and realized that no emails have been sent for instance when a new user is created. Did some googling but haven't found a definitive answer. Anyone had similar experience?
On Bluehost server: get the message user has been created but no email has been sent. I guess I should look it up in the book => where I turn on email sending.
On Wed, Jul 25, 2012 at 6:05 PM, Warren Vail warren@vailtech.net wrote:
Most windows machines don’t have a SMTP Service to forward the email. I believe XAMPP, from apache friends includes a product call Mercury mail for this reason, although I haven’t been successful in getting it running.****
Good Luck.****
Warren Vail****
*From:* support-bounces@drupal.org [mailto:support-bounces@drupal.org] *On Behalf Of *Matthew Lechleider *Sent:* Wednesday, July 25, 2012 5:39 PM *To:* support@drupal.org *Subject:* Re: [support] emails not being sent by drupal 7****
Has the hosting server ever sent email? Are any other emails sent from site? Might not be related to Drupal.
On 07/25/2012 05:11 PM, Anthony wrote: ****
Dear All, I am on windows and realized that no emails have been sent for instance when a new user is created. Did some googling but haven't found a definitive answer. Anyone had similar experience?
-- ****
*Anthony Stefan Maciejowski*****
-- [ Drupal support list | http://lists.drupal.org/ ]
On remote server it works. Locally nada:
Unable to send e-mail. Contact the site administrator if the problem persists. Status message A welcome message with further instructions has been e-mailed to the new user *tonyx*http://localhost:8080/recruitertest/public_html/drupal-7.14/user/4 .
On Wed, Jul 25, 2012 at 8:36 PM, Anthony tony@tony-mac.com wrote:
On Bluehost server: get the message user has been created but no email has been sent. I guess I should look it up in the book => where I turn on email sending.
On Wed, Jul 25, 2012 at 6:05 PM, Warren Vail warren@vailtech.net wrote:
Most windows machines don’t have a SMTP Service to forward the email. I believe XAMPP, from apache friends includes a product call Mercury mail for this reason, although I haven’t been successful in getting it running.***
Good Luck.****
Warren Vail****
*From:* support-bounces@drupal.org [mailto:support-bounces@drupal.org] *On Behalf Of *Matthew Lechleider *Sent:* Wednesday, July 25, 2012 5:39 PM *To:* support@drupal.org *Subject:* Re: [support] emails not being sent by drupal 7****
Has the hosting server ever sent email? Are any other emails sent from site? Might not be related to Drupal.
On 07/25/2012 05:11 PM, Anthony wrote: ****
Dear All, I am on windows and realized that no emails have been sent for instance when a new user is created. Did some googling but haven't found a definitive answer. Anyone had similar experience?
-- ****
*Anthony Stefan Maciejowski*****
-- [ Drupal support list | http://lists.drupal.org/ ]
--
*Anthony Stefan Maciejowski*
On Thu, Jul 26, 2012 at 1:37 AM, Anthony wrote:
On remote server it works. Locally nada:
Unable to send e-mail. Contact the site administrator if the problem persists.
Status message
A welcome message with further instructions has been e-mailed to the new user tonyx.
As others have already stated you need to modify your php.ini file and give it a SMTP server for the mail. Assuming your host name is example.com and you have a MX entry for the DNS of mail.example.com then your SMTP value will be mail.example.com. The common smtp_port value is 25. You also need to set the sendmail_from value to one of the mail users you have on your bluehost system, for my example admin@example.com.
Sorry I didn't get back to this earlier. http://www.php.net/manual/en/mail.configuration.php#ini.smtp
my local wamp php.ini says: [mail function] ; For Win32 only. ; http://php.net/smtp * ; so you are saying this line SMTP = localhost* *; should be changed to* *SMTP = mail.example.com* *;?*
; http://php.net/smtp-port smtp_port = 25
Plus the sendmail_from value.
Perfect and thanks. Tony
On Thu, Jul 26, 2012 at 7:04 AM, Earnie Boyd earnie@users.sourceforge.netwrote:
On Thu, Jul 26, 2012 at 1:37 AM, Anthony wrote:
On remote server it works. Locally nada:
Unable to send e-mail. Contact the site administrator if the problem persists.
Status message
A welcome message with further instructions has been e-mailed to the new user tonyx.
As others have already stated you need to modify your php.ini file and give it a SMTP server for the mail. Assuming your host name is example.com and you have a MX entry for the DNS of mail.example.com then your SMTP value will be mail.example.com. The common smtp_port value is 25. You also need to set the sendmail_from value to one of the mail users you have on your bluehost system, for my example admin@example.com.
-- Earnie
-- https://sites.google.com/site/earnieboyd
[ Drupal support list | http://lists.drupal.org/ ]
Windows doesn't have a mail server on it by default, so you need to point SMTP to a machine that has the server software to send mail (ie: sendmail).
Here's the problem, especially with local testing. Most mail servers won't let you send mail through them without authentication. If you are running a mail server that allows mail to be sent without authentication, then you can plan on being blacklisted by most email providers within a couple of months because you are running a spammers heaven.
So you only have a couple of routes around this. The first is to have whatever IP addresses you are connecting to the SMTP server from to be white listed so they don't need to authenticate. Your hosting provider might set this up for you, but many won't (fear of arbitrary addresses that can be used to connect in and send spam).
The best and much simpler route it to use the SMTP module:
http://drupal.org/project/smtp
No php.ini changes. Instead just upload it, activate it and setup the server settings in the module configuration screen. You can use any mail server you have POP/SMTP access to, including the one from your ISP. That's it.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 7/27/2012 1:04 AM, Anthony wrote:
Sorry I didn't get back to this earlier. http://www.php.net/manual/en/mail.configuration.php#ini.smtp
my local wamp php.ini says: [mail function] ; For Win32 only. ; http://php.net/smtp
; so you are saying this line SMTP = localhost* *; should be changed to* *SMTP = mail.example.com http://mail.example.com* *;?*
; http://php.net/smtp-port smtp_port = 25
Plus the sendmail_from value.
Perfect and thanks. Tony
On Thu, Jul 26, 2012 at 7:04 AM, Earnie Boyd <earnie@users.sourceforge.net mailto:earnie@users.sourceforge.net> wrote:
On Thu, Jul 26, 2012 at 1:37 AM, Anthony wrote: > On remote server it works. Locally nada: > > Unable to send e-mail. Contact the site administrator if the problem > persists. > > Status message > > A welcome message with further instructions has been e-mailed to the new > user tonyx. As others have already stated you need to modify your php.ini file and give it a SMTP server for the mail. Assuming your host name is example.com <http://example.com> and you have a MX entry for the DNS of mail.example.com <http://mail.example.com> then your SMTP value will be mail.example.com <http://mail.example.com>. The common smtp_port value is 25. You also need to set the sendmail_from value to one of the mail users you have on your bluehost system, for my example admin@example.com <mailto:admin@example.com>. -- Earnie -- https://sites.google.com/site/earnieboyd -- [ Drupal support list | http://lists.drupal.org/ ]--
*/Anthony Stefan Maciejowski/*