Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $app = JFactory::getApplication();
- $mailfrom = $app->getCfg('mailfrom');
- $fromname = $app->getCfg('fromname');
- $sitename = $app->getCfg('sitename');
- $mail = JFactory::getMailer();
- $mail->addRecipient("[email protected]");
- $mail->setSender(array($mailfrom, $fromname));
- $mail->setSubject("subjeeect");
- //$mailer->isHTML(true);
- //$mailer->Encoding = 'base64';
- $mail->setBody("Koko body.");
- $sent = $mail->Send();
- if ( $sent !== true ) {
- echo 'Error sending email: ' . $sent->message;
- } else {
- echo 'Mail sent OK';
- }
Advertisement
Add Comment
Please, Sign In to add comment