Leads Capture Error

Discussion in 'Local Business WordPress Theme' started by zeewon30, Mar 29, 2014.

Thread Status:
Not open for further replies.
  1. zeewon30

    zeewon30 Member

    Joined:
    May 7, 2012
    Messages:
    41
    Likes Received:
    1
    Hello,

    After sending a message with the lead capture form I got the following error message
    Code:
    Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/35/12151035/html/wp-content/themes/localbusinesstheme/functions/leads_class.php on line113
    This is the code on line 113
    Code:
    mail($email_to, $email_subject, $email_message, $headers);
    Can I get some help to figure out what is wrong here?

    Thanks.
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Replace that code with code given below
    Code:
     wp_mail($email_to, $email_subject, $email_message, $headers); 
    I hope it will solve your issue.

    Thanks & Regards
    Gourav Shrivastava
     
  3. zeewon30

    zeewon30 Member

    Joined:
    May 7, 2012
    Messages:
    41
    Likes Received:
    1
    Thank you. Problem solved.
     
    freddie3782 likes this.
Thread Status:
Not open for further replies.

Share This Page