Checking if PHP/WordPress can send mails

Checking if PHP/WordPress can send mails

If you are facing problems like these, you should do the following:First check if PHP-scripts can send emailsphp -amail ‘admin@rtcamp.com’, “Test Postfix”, “Test mail from postfix”;exit ;Note: if after running php -a, you get “Interactive mode enabled” message but no php> prompt, then your PHP is not compiled with readline support. If its working nice, you will get only “Interactive mode” message with php> prompt.You can still run test though. Just create a testmail.php with following lines of codes:

via Checking if PHP/WordPress can send mails.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s