Situation
Drupal was installed on an intranet (windows system) however no email server software was installed on the server making it impossible for Drupal to email users. This was reported by drupal.
Durpal Reported
warning: mail() [function.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:\xampp\htdocs\includes\mail.inc on line 193. Unable to send e-mail. Please contact the site admin, if the problem persists.
Solution
PHP.ini was edited to
[mail function]
; For Win32 only.
SMTP = 192.168.1.3
smtp_port = 25
; For Win32 only.sendmail_from = [user a local domain]
Then Apache was restarted to reload the PHP modules and attributes to enable the change.
Note:
If the external email server is on a domain the SMTP line would read:
smtp.somedomain.com
No comments:
Post a Comment