Forums / Developer / Hot send email with ezemail ?!

"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".

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( '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' );

?!?