Guest User

Untitled

a guest
Oct 23rd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $mail =& JFactory::getMailer();
  2. $email_sent = $mail->sendMail(
  3. $from_email,
  4. $from_name,
  5. $to_email,
  6. $subject,
  7. $email_body,
  8. $sendas,
  9. $cc_emails,
  10. $bcc_emails,
  11. $email_attachments,
  12. $reply_to_email,
  13. $reply_to_name );
  14. if($email_sent) {
  15. echo "Mail sent.";
  16. } else {
  17. echo "Mail NOT sent.";
  18. }
  19.  
  20. if($send!==true)
  21. {
  22. $error=$send->__toString();
  23. }
Add Comment
Please, Sign In to add comment