Email System

From PHPDevShell

Jump to: navigation, search

The email system

PHPDevShell has a way to quickly send email using the settings as set by the administrator in the Settings Page.

Sending mail

After the email setup configuration is done correctly in the General Settings GUI page of PHPDevShell, sending mail is rather simple.

// Call email class.
$email = new email();
// Send mail.
$email->sendmail('test@example.com', 'My Subject', 'This is my complete HTML message');

Documentation will be created soon

  • ->email (needs to be called)
    • sendmail ($to, $subject, $message, $from = false, $headers = false, $cc = false, $bcc = false, $attachment = false, $text_only_message = false, $content_type = false, $email_priority = false)
    • validate ($email_string)
    • Extends phpmailer, see http://phpmailer.worxware.com/index.php?pg=examples for more methods.