Tuesday 12 September 2006 3:13:54 am
You can simply create your own template operator which sends mail to a given mailadress... The code should look something like:
include_once( 'lib/ezutils/classes/ezmail.php' );
include_once( 'lib/ezutils/classes/ezmailtransport.php' );
$mail = new eZMail();
$mail->setSender( $emailSender );
$receiver = $currentUser->attribute( 'email' );
$mail->setReceiver( $receiver);
$mail->addBcc( $bccreceiver, $name = false );
$subject = "SUBJECT: BLABLA";
$mail->setSubject( $subject );
$mail->setBody( $templateResult );
$mailResult = eZMailTransport::send( $mail );
Take a look at the contributions to have some template operator examples...
Mit freundlichen Grüßen
Best regards
Norman Leutner
____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh
|