Share » Forums » Developer » Hot send email with ezemail ?!

Hot send email with ezemail ?!

Hot send email with ezemail ?!

Saturday 02 August 2003 7:52:51 am - 5 replies

Author Message

Jan Borsodi

Monday 04 August 2003 12:48:56 am

A small example:

$mail = new eZMail();
$mail->setReceiver( 'person@company.com' );
$mail->setSender( 'me@mysite.com' );
$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( 'bruce@somecompany.com' );

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('person@company.com','test@mm.com' );

?!?

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu