Guest User

Untitled

a guest
Aug 17th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. $app = JFactory::getApplication();
  2. $mailfrom = $app->getCfg('mailfrom');
  3. $fromname = $app->getCfg('fromname');
  4. $sitename = $app->getCfg('sitename');
  5.  
  6.  
  7. $mail = JFactory::getMailer();
  8. $mail->addRecipient("[email protected]");
  9. $mail->setSender(array($mailfrom, $fromname));
  10. $mail->setSubject("subjeeect");
  11. //$mailer->isHTML(true);
  12. //$mailer->Encoding = 'base64';
  13. $mail->setBody("Koko body.");
  14. $sent = $mail->Send();
  15. if ( $sent !== true ) {
  16. echo 'Error sending email: ' . $sent->message;
  17. } else {
  18. echo 'Mail sent OK';
  19. }
Advertisement
Add Comment
Please, Sign In to add comment