Hot send email with ezemail ?!

Author Message

Selmah Maxim

Saturday 02 August 2003 7:52:51 am

Hi..

How can I send email to users by 'Ezemail' ?
Or should I use just mail() ?

Jan Borsodi

Monday 04 August 2003 12:48:56 am

A small example:

$mail = new eZMail();
$mail->setReceiver( '[email protected]' );
$mail->setSender( '[email protected]' );
$mail->setSubject( 'A nice subject' );
$mail->setBody( 'Here we go' );
$mailResult = eZMailTransport::send( $mail );

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Selmah Maxim

Monday 04 August 2003 1:54:52 am

Ok .. thx

Bruce Morrison

Tuesday 05 August 2003 4:56:26 pm

Is it possible to send the message to multiple recipients with a single ezMail instance?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Bruce Morrison

Thursday 07 August 2003 12:53:24 am

To answer my own question.....

$mail->addReceiver( '[email protected]' );

Does the trick!

Cheers
Bruce
designIT

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Selmah Maxim

Thursday 07 August 2003 1:58:56 am

Or maybe :

$mail->setReceiver( array('[email protected]','[email protected]' );

?!?

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