Jump to content

how can I tell if the mail() is enabled


ballhogjoni

Recommended Posts

Since mail is not an external extension, that line of code always returns "no mail" anyway. Give it a try.

 

What exactly is the question? The mail() function could be disabled by the host, in which case I believe function_exists() might or might not tell you. If you are checking if there is a mail server, your best bet would be to read the SMTP and port settings, and attempt to open a socket connection to the mail server.

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.