Hi,
I'm trying to use XMail Server to send mail from a PHP Script that I wrong.
I'm using both mail() function and PHPMailer as my class and methods to
communicate with XMail.
However, both method failed, below is the code snippet that I wrote in PHP
<?php
require("class.phpmailer.php");
require("class.smtp.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->IsHTML(false);
$mail->Charset = "iso-8859-1";
$mail->timezone = date("O");
$mail->From = "[EMAIL PROTECTED]";
$mail->FromName = "ST Ooi";
$mail->Host = "localhost";
$mail->Port = 25;
$mail->Hostname = "localhost";
$mail->Subject = "Send mail from laser-compo.com";
$mail->Body = stripslashes("Send mail trial");
$mail->AddAddress("[EMAIL PROTECTED]", "Patrick Ooi");
$mail->AddReplyTo("[EMAIL PROTECTED]", "ST Ooi");
$mail->Send();
?>
Any help would be appreciated.
Thanks
ST Ooi
________________________________________________
Message sent using UebiMiau 2.7.2
--- Links ---
1 mailto:[EMAIL PROTECTED]
2 mailto:[EMAIL PROTECTED]
3 mailto:[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]