Posted By

JonnySnip3r on 04/06/11


Tagged

email class functions call


Versions (?)

Call to Email Class


 / Published in: PHP
 

Just a simple script showing how to make calls to an Email script.

  1. require('APEmail.class.php');
  2. $Email = new APEmail();
  3.  
  4. $names = array('[email protected]','[email protected]');
  5.  
  6. $Email->add_recipient($names);
  7. $Email->set_from('[email protected]');
  8. $Email->set_subject('Hello, World | Subject');
  9. $Email->set_message('This is a message.');
  10.  
  11. if($Email->send_email())
  12. {
  13. echo "Email Sent!";
  14. }

Report this snippet  

You need to login to post a comment.