• Hello everyone,

    I’m using a theme that calls the mail() function to email it’s users after a successful post. The installation is hosted at hostgator with limits the use of mail() so I’m using this plugin for smtp http://wordpress.org/extend/plugins/hgk-smtp/.

    Changed the mail() call to wp_mail() and it’s still not working. I’ve only been able to locate one instance of the call in the template files.

    <?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); }
    
    				?>

    The installation is here: Template

    Reference another thread about same theme here: http://wordpress.org/support/topic/206428

    Where else would I need to change the mail() function? In any of the wordpress template files?

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wp_mail function not working properly???’ is closed to new replies.