<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once "Mail.php"; $from = "[email protected]"; $to = "[email protected]"; $subject = "Mail.php test email"; $body = "Test email sent using Mail.php."; $host = "m##.internetmailserver.net"; $username = "[email protected]"; $password = "password"; $headers = array ('Date' => date('r'), 'From' => $from, 'To' => $to, 'Subject' => $subject, 'Message-ID' => '<' . time() . md5($from . $to) . '@domain.com>'); $smtp = Mail::factory('smtp', array ('localhost' => $host, 'host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); echo "Mail.php test" ?>
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add support@winhost.com to your trusted senders list in your email software.