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 Dieding@xrow.de

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

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.