Appnitro Software Forums » MachForm

TO and BCC email addresses??

(2 posts)
  • Started 2 months ago by deaddingo
  • Latest reply from redityo

  1. Hi.

    Is it possible to have the emails go to a TO email address, but then also have it BCC other email addresses as well?

    Cheers

    Posted 2 months ago #
  2. Hi,

    Machform have not this feature yet, however you can do that manually by editing "includes/helper-functions.php". Search between line 468 ~ 475, you'll find this code :

    $has_email = false;
    foreach ($email_address as $email){
    	$email = trim($email);
    	if(!empty($email)){
    		$mail->AddAddress($email);
    		$has_email = true;
    	}
    }

    replace with this one

    $i = 1;
    $has_email = false;
    foreach ($email_address as $email){
    	$email = trim($email);
    	if(!empty($email)){
    		if ($i == 1)
    			$mail->AddAddress($email);
    		else
    			$mail->AddBCC($email);
    		$has_email = true;
                    $i++;
    	}
    }

    and don't forget this code on line 483

    $mail->ClearBCCs();

    next, what you have to do is set email notification on "email" menu setting with multiple email format (ex: test@test.com,test1@test.com). This modification will send first email as "TO Email" and next email with "BCC Email".

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.