Call to Email Class


/ Published in: PHP
Save to your folder(s)

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


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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.