Forums / Setup & design / Send Email Code
Dark Dante
Tuesday 05 July 2005 8:20:38 am
Hi, what is the function or code where one templete can send a email, for example feedback form or shop confirm,and where are locate this templetes(not the form to edit an email, the form which i can send an email, code or function.), thanks!!
ludo thomas
Wednesday 06 July 2005 8:05:28 am
hi dark. the code is generally in a workflow:try this:
include_once( 'lib/ezutils/classes/ezmail.php' ); include_once( 'lib/ezutils/classes/ezmailtransport.php' ); $mail = new eZMail(); $emailSender ='info@bazaravenue.com'; $receiver = 'you@test.com; $mail->setBody( $mailTemplateResult); $mail->setSender( $emailSender ); $mail->setReceiver($receiver ); $subject = ' Newsletter'; $mail->setSubject( $subject ); $mailResult = eZMailTransport::send( $mail );
Wednesday 06 July 2005 10:52:35 am
Yea i found this code, i figure this code send 1 email to the receiver mail, but information with sender mail, in this code it's posible send one mail to both, sender and receiver, sender a mail for greetings and receiver the sender message, in one operation or code. thnks.