Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Friday 09 February 2007 7:35:05 am - 4 replies
Modified on Friday 09 February 2007 7:36:37 am by Stéphane Bullier
Stéphane Bullier
Wednesday 14 February 2007 11:59:44 pm
Hello,
Update ??
Not clear my question ?
Stéphane
Kristof Coomans
Thursday 15 February 2007 12:10:48 am
Hi Stéphane
Several classes used to send mail are located in lib/ezutils/classes.
You can find several examples of the usage of eZMail in the source code:
# find . -name "*.php" | xargs grep -il "ezmail"
There are also some extensions related to e-mail, take a look at the list on http://ezpedia.org/wiki/en/ez/e_mail
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Thursday 15 February 2007 12:38:32 am
Thank you Kristof for your reply.
*- pike
Friday 09 November 2007 4:14:12 am
I didn't tliterally test this, but it should be something like
include_once( "lib/ezutils/classes/ezmail.php" ); include_once( "lib/ezutils/classes/ezmailtransport.php" ); if (!eZMail::validate($sender) || !eZMail::validate($recipient)) { cry(); } else { $mail = new eZMail(); $mail->setSender( $sender ); $mail->setReceiver( $recipient ); $mail->setSubject( $subject ); $mail->setBody( $body ); $mail->addBcc( $bcc ); $mail->addExtraHeader("X-SpamLevel,"1000"); if ( !eZMailTransport::send( $mail ) { cry(); } }
--------------- The class eZContentObjectTreeNode does.
You must be logged in to post messages in this topic!