This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

save for later


  1. msavi
    Member

    can you tell where i should make the change to add the admin email?

    Posted 11 years ago #
  2. yuniar

    Do you mean you would like to resume email being sent to admin as well?


    MachForm Founder

    Posted 11 years ago #
  3. msavi
    Member

    yes

    Posted 11 years ago #
  4. yuniar

    You can edit the "includes/helper-functions.php" file. Search around line 1281 for this code:

    $s_message = Swift_Message::newInstance()
    			->setCharset('utf-8')
    			->setMaxLineLength(1000)
    			->setSubject($subject)
    			->setFrom(array($from_email => $from_name))
    			->setSender($from_email)
    			->setReturnPath($from_email)
    			->setTo($resume_email)
    			->setBody($email_content, 'text/html');

    change it to become:

    $s_message = Swift_Message::newInstance()
    			->setCharset('utf-8')
    			->setMaxLineLength(1000)
    			->setSubject($subject)
    			->setFrom(array($from_email => $from_name))
    			->setSender($from_email)
    			->setReturnPath($from_email)
    			->setTo($resume_email)
    			->setBcc("admin@example.com")
    			->setBody($email_content, 'text/html');

    That should send a BCC to "admin@example.com". You can adjust the above email.


    MachForm Founder

    Posted 11 years ago #
  5. msavi
    Member

    not working - any suggestions?

    Posted 11 years ago #
  6. csamuel69
    Member

    Works for me with the latest version 3.4

    Posted 11 years ago #
  7. msavi
    Member

    my mistake. i made the change at the wrong place. it works now - thank you

    Posted 11 years ago #

RSS feed for this topic

Reply