Forum Moderators: coopster

Message Too Old, No Replies

mail() and wp mail() not working on wordpress

         

surrealillusions

4:39 pm on Feb 22, 2011 (gmt 0)

10+ Year Member



Hi all,

Got a strange issue.

Trying to implement a custom script into a wordpress site.

When testing the script on a seperate subfolder outside of WP, with the mail() function then it works fine.

When intergrating the script into the index.php of the theme folder, no emails are sent. Neither mail() or wp_mail() work.

The server is running PHP version 5.3.3 and when phoning the host, they dont seem to have any clue about it.

Any thoughts and ideas on why this is happening?

surrealillusions

5:03 pm on Feb 22, 2011 (gmt 0)

10+ Year Member



Nevermind. Issue was found.

Seems wordpress doesn't like $_POST['name'] as a form variable.

:)