Jump to content

How to send two emails (customer and seller)


xpumpa

Recommended Posts

I'm trying to modify Mail.php to send two emails, one for customer and one for me with modified ReplyTo parameter. I tried this, but not working for me. Anyone solve this problem ? Thank you.

/* Send mail */
$message->setFrom(array($from => $from_name));
$message2 = clone $message;    
$swift2 = clone $swift;    
$send = $swift->send($message);

$message2->setReplyTo($addr, $to_name);
$message2->addBcc('[email protected]');
$send2 = $swift2->send($message2);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...