Hi everyone, I'm using a wp template that allows wp to run a job posting site. Part of the template functionality is that the user (job poster) is supposed to receive an email after posting the job listing. Jobpress My host does not have mail() enabled so I had to use a plugin for smtp mail processing. Now that I know that it can mail out, the template still does not process the php mail call. Can someone take a look at this to see if there is something obviously wrong? <?php if ( get_option('successmail') == "Enable" && get_option('publish') == "On" ) { $subject = get_option('mailsubject'); $name = $_POST['address_name']; $name = str_replace("+", " ", $name); $websitename = get_bloginfo('name'); $message = get_option('mailcontent'); $message = str_replace("[buyer_name]", "$name", $message); $message = str_replace("[website_name]", "$websitename", $message); wp_mail($mail, $subject, $message); } ?> Code (markup): Thanks in advance
I doubt if you can specify SMTP details in wp_mail. I believe it picks details from php.ini I would recommend you using PHP Mailer at following link.. http://sourceforge.net/projects/phpmailer/