Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Invoke JMail Class
- $mailer = JFactory::getMailer();
- # Set sender array so that my name will show up neatly in your inbox
- $mailer->setSender($data[βmailfromβ]);
- # Add a recipient β this can be a single address (string) or an array of addresses
- $mailer->addRecipient($user->email);
- $mailer->setSubject(utf8_decode($subject));
- $mailer->setBody($body);
- # If you would like to send as HTML, include this line; otherwise, leave it out
- $mailer->isHTML();
- # Send once you have set all of your options
- $return = $mailer->send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement