Forums / Developer / Multiple form recipients in ezp 3.4.1

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Multiple form recipients in ezp 3.4.1

Author Message

Marco Caldari

Thursday 19 August 2004 10:40:17 am

Hi, I'm trying to set a cc recipient in the form bundled with ezp 3.4.1 with no success. Following the forum thread:
http://ez.no/community/forum/developer/hot_send_email_with_ezemail_
I tried to add to /mysite.it/kernel/form/process.php the line:

$mail->addReceiver( 'pippo@mysite.it' );

and/or

$mail->setReceiver( array( $receiver ,'pippo@mysite.it' );

without any result.
My goal should be to send all the forms, with different recipients on mysite.it, in carbon copy to the same email address over the natural recipient of every form.
Hope You have understood my problem, any help is appreciated.
Thank You. Marco.

Björn X

Wednesday 25 August 2004 3:34:31 pm

http://pubsvn.ez.no/doxygen/classeZMail.html

$array = array( $receiver ,'pippo@mysite.it' );
foreach ($array as $email )
{
$mail->addReceiver( $email );
}
$mail->send();

In the API it looks like it should work

Marco Caldari

Thursday 26 August 2004 2:47:53 am

Thanks Björn for Your suggestion but my scripting knowledge is not so high.. Could You tell me where I should add that lines You wrote, I tried both somewhere in /lib/ezutils/classes/ezmail.php and/or /kernel/form/process.php but i didn't worked.
What happens behind the curtains when I send a feedback form? process.php passes the variables to ezmail.php is that right? Thanks in advance for any further help. Marco.