Send contact form email info to the sender

Discussion in 'Local Business WordPress Theme' started by nicksimmons, Aug 24, 2015.

  1. nicksimmons

    nicksimmons New Member

    Joined:
    Mar 10, 2015
    Messages:
    6
    Likes Received:
    0
    I have read all the threads about contact form under Local Business Theme and have not found an answer. Is it possible to send a copy of the contact form information to the contacts email? In other words we would like to send the business owner the contact information (which is currently functioning well) and send the contact person a copy of their information.

    I have looked in the leads_class.php and found:

    PHP:
    for ($i 0$i count($explode_emails); $i++) {   
        
    $email_to=$explode_emails[$i];   
        
    $email_subject "Message Received from a New Lead";
        
    $headers "Content-type: text/html; charset=UTF-8\r\n";
        
    $headers .= 'From: '.$this->email."\r\n".
        
    'Reply-To: '.$this->email."\r\n" .
        
    'X-Mailer: PHP/' phpversion();
        
    mail($email_to$email_subject$email_message$headers); 
    I would like to email to:

    $email to=$explode_emails[$i], $this->email;

    but it throws and error for the comma after the brackets. How can I include the $this->email in the $email to= ?


    Regards,

    Nick
     
  2. priya

    priya Guest

    Hello Nick,

    Greetings from InkThemes!

    You can resolve your issue by adding a code (given below) in your 'leads_class.php' page under the Function file.

    $explode_emails[] = $this->email;

    Here I am sending you screenshot of that page where you have to put the code....

    email_sender.png


    Hope it will resolve your issue.

    Thanks & Regards!
    Priyanka
    Inkthemes.com
     
  3. nicksimmons

    nicksimmons New Member

    Joined:
    Mar 10, 2015
    Messages:
    6
    Likes Received:
    0
    Priyanka-

    Many thanks, works perfectly! One related question, if I modify line 88 of lead_class.php, can I specify the From text? For example

    From "enter my text here";

    What would that syntax look like?

    You all provide excellent support.

    Nick
     
  4. priya

    priya Guest

    Hello Nick,

    Greetings from InkThemes!

    Yes, you can specify the 'From text' after modification in lead_class.php.

    For you, here I am providing you screenshots of the modified section:

    email2.png



    email1.png


    Hope it will resolve your issue :)

    Thanks & Regards!
    Priyanka
    Inkthemes.com
     
  5. nicksimmons

    nicksimmons New Member

    Joined:
    Mar 10, 2015
    Messages:
    6
    Likes Received:
    0
    Perfect, thank you very much for such a swift, well described reply.

    Nick
     
  6. nicksimmons

    nicksimmons New Member

    Joined:
    Mar 10, 2015
    Messages:
    6
    Likes Received:
    0
  7. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hi Nick,

    Please send us your website WordPress login details at [email protected] along with the thread link.
    Also, provide me the text that you want in place of "From" text.

    Regards!
    Praveen
    InkThemes.com
     

Share This Page