mpsn Posted January 6, 2012 Share Posted January 6, 2012 Hi, which options do I change/uncomment to set up a specific email address. I am using localhost Any help appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/ Share on other sites More sharing options...
Pikachu2000 Posted January 6, 2012 Share Posted January 6, 2012 A specific address for what? Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305044 Share on other sites More sharing options...
mpsn Posted January 6, 2012 Author Share Posted January 6, 2012 I thought you have to change the email settings in php.ini in order to use sthe email functionality or maybe that doesn't make sense. You see I just installed Drupal but after I logged out, I can't log in anymore, b/c the valid email address I use, it gives me the message: 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\drupal\includes\mail.inc on line 192. But line 192 is just a closing brace! I'm not sure what to do... Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305047 Share on other sites More sharing options...
Pikachu2000 Posted January 6, 2012 Share Posted January 6, 2012 That message is because you don't have a mail server installed (or if there is one, it isn't running), and haven't specified an external mail server to use. You won't likely have very much luck actually sending any mail from a mail server on your pc. If you specify an external mail server, and it requires authentication, php's mail() function won't be able to use it. Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305049 Share on other sites More sharing options...
mpsn Posted January 6, 2012 Author Share Posted January 6, 2012 So how would I get it working b/c you need that to run drupal, right? Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305050 Share on other sites More sharing options...
Pikachu2000 Posted January 6, 2012 Share Posted January 6, 2012 I have no idea what Drupal requires. Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305052 Share on other sites More sharing options...
Pikachu2000 Posted January 6, 2012 Share Posted January 6, 2012 Did you read this? http://drupal.org/node/157602 Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305057 Share on other sites More sharing options...
mpsn Posted January 7, 2012 Author Share Posted January 7, 2012 Ok, forget drupal, so how do I set up a mail server in php.ini. Any help appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305156 Share on other sites More sharing options...
trq Posted January 7, 2012 Share Posted January 7, 2012 Ok, forget drupal, so how do I set up a mail server in php.ini. You don't. PHP has nothing to do with mail servers. It however requires a mail server in order to be able to send mail. Just like you do. Installing a mail server is not generally a simple task and has nothing to do with php. Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305158 Share on other sites More sharing options...
laffin Posted January 7, 2012 Share Posted January 7, 2012 Whether that mail server is on your computer or on a different host. Quote Link to comment https://forums.phpfreaks.com/topic/254513-how-to-set-up-email-in-phpini/#findComment-1305332 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.