Help & KnowledgeBase

Sending Email

You send email from our plugin without caring about the mail setup with our mailer library, below shows an example of how to send a mail with the mailer class

# mailer()

This function return you a new instance of Mailer class found in the core.php file and it can be use as below

mailer()->setAddress('email-user@gmail.com')->setSubject('Just testing.....')->setBody("I said am just testing ")->send();

The mail object will make use of the mail setup from the admin panel so you don't need care about that

 

Thanks for reading