Cuppa Documentation

Find information related with: installation, user interface, best practices, improve and extend de functionalities, front-end integration and more.
Mail

send($fromName, $fromEmail, $affair, $sentTo, $body = "", $altBody = "" )

$cuppa->mail->send("Tufik Chediak", "noreply@gmail.com", "Test message", 'email1@gmail.com', 'Message', 'Message');
// Send a email from noreply@gmail.com to email1@gmail.com


---

$emails = array();
array_push($emails, array('email', 'name'));
array_push($emails, array('email', 'name'));

$cuppa->mail->send("Tufik Chediak", "noreply@gmail.com", "Test message", emails, 'Message', 'Message');

// Send a email from noreply@gmail.com to an email list

configure($user = "", $pass = "", $host = "localhost", $port = 25, $security = null )

$cuppa->mail->configure("user@gmail.com", "password", "smtp.gmail.com", 465, "ssl"); // configure the email outgoing using SMTP configuration