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

?!?

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

eZ debug

Timing: Jan 31 2025 04:33:55
Script start
Timing: Jan 31 2025 04:33:55
Module start 'layout'
Timing: Jan 31 2025 04:33:55
Module start 'content'
Timing: Jan 31 2025 04:33:55
Module end 'content'
Timing: Jan 31 2025 04:33:55
Script end

Main resources:

Total runtime0.0136 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.1328151.2109
Module start 'layout' 0.00580.0025 739.343836.6484
Module start 'content' 0.00820.0040 775.992294.1406
Module end 'content' 0.01220.0014 870.132837.9922
Script end 0.0136  908.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.0480140.0002
Check MTime0.00118.1625140.0001
Mysql Total
Database connection0.00096.446510.0009
Mysqli_queries0.002719.737930.0009
Looping result0.00000.110510.0000
Template Total0.00107.510.0010
Template load0.00085.844710.0008
Template processing0.00021.589710.0002
Override
Cache load0.00053.849710.0005
General
dbfile0.00031.988080.0000
String conversion0.00000.059740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs