Hello Manuel,
I've found a strange thing, i have the smtp class working fine for what i thought was any kind of server presented. It works ok on gmail, hotmail, yahoo, and standard smtp's.
However, i found this one server where i can not connect through the class.
Let me explain, before i came forward to post the message, i checked that it was not my firewall or the other server's firewall bloacking my ip.. so i tried sending an old fashion telnet mail through my server's terminal.
Server terminal telnet: It connects:
>telnet mail.****.com 25
>Trying 82.98.135.114...
>Connected to mail.****.com (82.98.135.114).
>Escape character is '^]'.
>220 hl35.dinaserver.com SMTP Ready
everything ok until i set RCPT TO: <
[email protected]> when it says it cannot relay message. (So far i understand that this is because i have not authenticated, not even tried just went to check if it connected)
Now, next test, i set up my outlook account and it works ok.. just had to enable "Requires authentication" NO SPECIAL PORTS NO SSL NO NOTHING.. just "Requires authentication."
And this is what i get from the class..
>Resolving SMTP server domain "mail.****.com"...
>Connecting to host address "82.98.135.114" port 25...
>Error: could not connect to the host "mail.****.com": Connection timed out
No connection refused, no authentication error, just timed out. By the way i tried incrementing the timeout value to 90 same result.
This is my current config from the class:
$email_message=new smtp_message_class;
$email_message->localhost="localhost";
$email_message->smtp_host="mail.****.com";
$email_message->smtp_port=25;
$email_message->smtp_ssl=0;
$email_message->smtp_direct_delivery=0;
$email_message->smtp_exclude_address="";
$email_message->smtp_user=$user;
$email_message->smtp_password=$pass;
$email_message->smtp_pop3_auth_host="";
$email_message->smtp_realm="";
$email_message->smtp_workstation="";
$email_message->smtp_authentication_mechanism="";
$email_message->smtp_debug=1;
$email_message->smtp_html_debug=1;