By grtroup on
hello, i'm tring to get the mail function to work on my drupal site and i keep getting the error message
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 D:\ac\enterprisegym\includes\mail.inc on line 195.
I've tried looking aroun the mail.ini file and cant locate the problem at all. Any ideas?!? I've set up the MAil type and Server location to the correct variables in the mail.ini files. though I believe drupal is trying to connect to localhost rather than the variables set in the mail.ini file.
Comments
Are you using a chroot jailed
Are you using a chroot jailed apache/php set up? If you are, then you're options are to either install something like "mini_sendmail" (which defeats the purpose of running a chroot jail... it needs /bin/sh) or use the SMTP module and have that handle mail rather than using the php mail() function.