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

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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