Jump to content

how to set up email in php.ini


mpsn

Recommended Posts

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...

 

 

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.