|
|
| |
1. Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Nstiac | 2009-12-14 15:19:54 |
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: <anyaddress@anything.com> 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; |
| |
2. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Manuel Lemos | 2009-12-14 17:45:20 - In reply to message 1 from Nstiac |
| If it says it requires authentication to relay the messages to certain domains, that is because you need to pass it the right user name and password. |
| |
3. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Nstiac | 2009-12-14 18:51:36 - In reply to message 2 from Manuel Lemos |
Hello Manuel,
I think i didnt made myself clear, the class is not connecting.
>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
Is not the user and password becasue they work ok in outlook. The class times out even before it's able to send user & pass. i dont receive a connection error just a time out? is not the time out setting because i've changed it to 90 with same results, and port or ip are not blocked because i can telnet and connect ok from terminal.
|
| |
4. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Nstiac | 2009-12-15 18:04:47 - In reply to message 2 from Manuel Lemos |
Hello Manuel,
Any news on why i cant connect to that server ?
|
| |
5. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Manuel Lemos | 2009-12-15 18:16:18 - In reply to message 3 from Nstiac |
| That may mean that either the port number is not correct, or that the machine on which you are running PHP has blocked connections to the SMTP server. You need to ask your systems administrator. |
| |
6. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Nstiac | 2009-12-15 18:24:09 - In reply to message 5 from Manuel Lemos |
Hello Manuel.
Both things are correct since i can telnet from my server through that port and connect ok. Is only the smpt_class is not connecting. |
| |
7. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Manuel Lemos | 2009-12-15 19:40:13 - In reply to message 6 from Nstiac |
| If it takes a while to connect, it may be a matter of adjusting the timeout. Otherwise, PHP may have been configured to not allow TCP connections. |
| |
8. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Nstiac | 2009-12-15 19:54:09 - In reply to message 7 from Manuel Lemos |
Hello Manuel,
Is not the timeout value for i've changed it up to 90 seconds without success. And i dont think is the TCP connections because i can read the emails with your pop3 class. Is not my server because ports are open and everything is configured ok. Can you try to connect to the server through the smtp_class?, i just need to confirm is the class not working. the ip is on the first post of this thread.
|
| |
9. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Manuel Lemos | 2009-12-15 20:09:25 - In reply to message 8 from Nstiac |
| I can connect with SMTP class to that IP address and port 25 perfectly. If you are using Windows, it can be your Windows firewall or anti-virus blocking the connection. |
| |
10. Re: Could not connect NOT gmail, hotmail.. IS mail.****.com |
|
Reply |
|
|
 Nstiac | 2009-12-16 01:20:19 - In reply to message 9 from Manuel Lemos |
Hello Manuel,
Thank you for your help. I just needed to know it was not the SMTP class not working on that specific server. As it turns out it wont let me connect through port 25 but it worked a treat with 587. Weird isn't it?
It is not my firewall nor antivirus.
Anyways, thanks a million.
Owe you one. ;-) |
|