| 
<?php 
 require_once 'Classes/Mail.php';
 
 //Example using php mailer
 $mail = new Mail;
 //Set subject and sender of the mail.
 $mail->setSubject('Example mail');
 $mail->setSender('[email protected]');
 //Set the plain content of the mail.
 $mail->setContentPlain('Example plain-content!');
 //Add a receiver of the mail (you can add more than one receiver too).
 $mail->addReceiver('[email protected]');
 //Finally send the mail.
 var_dump($mail->send());
 
 //Example using smtp
 $mail = new Mail;
 
 //Set subject and sender of the mail.
 $mail->setSubject('Example mail');
 $mail->setSender('[email protected]');
 //Set the plain content of the mail.
 $mail->setContentPlain('Example plain-content!');
 //Add a receiver of the mail (you can add more than one receiver too).
 $mail->addReceiver('[email protected]');
 
 $mail->isSMTP(true,['host'=>"mx1.hostinger.ae
 ",'user'=>'[email protected]','pass'=>'hostinger','port'=>587]);
 //Finally send the mail.
 var_dump($mail->send());
 |