Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i tried the basic email sending with the coding belowCode: Select all
<?php
//Load in the files we'll need
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
//Start Swift
$swift =& new Swift(new Swift_Connection_SMTP("smtp.tm.net.my"));
//Create the message
$message =& new Swift_Message("My subject", "My body");
//Now check if Swift actually sends it
if ($swift->send($message, "xxx@yahoo.com", "xxx@yahoo.com")) echo
"$message Sent";
else echo "Failed";
?>i tried on 2 pc s...
first pc:
window vista installed, McAfree antivirus software
and i get the error message from McAfree
Warning: mail(): SMTP server response: 550 5.7.1 Authentication required Refer guideline http://webmail.tm.net.my/smtpauth.html: xx@tm.net.my in c:\program files\easyphp1-7\www\e-chinese\thank.php on line 45
second pc:
window xp, norton antivirus
but the result return "fail" when i m trying to send the email.
Can anyone help me solve my problems? It's urgent
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]