Share » Forums » Setup & design » Send Email Code

Send Email Code

Send Email Code

Tuesday 05 July 2005 8:20:38 am - 2 replies

Author Message

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

Dark Dante

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.

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

36 542 Users on board!

Forums menu