1. Home
  2. Docs
  3. Developer Documentations
  4. Sending Email

Sending Email

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 this

Was this article helpful to you? Yes No

How can we help?