PHP SMTP connection to gmail SMTP protocol violation
I am trying to connect to gmail i get this error
Code:
451 4.5.0 SMTP protocol violation, see RFC 2821 y5si1689664tia.8 Code:
220 mx.google.com ESMTP y5si1689664tia.8 Scott. |
Are you using the php mail() function, or doing your own SMTP negotiation?
|
hi thanks for the reply. i am doing my owne conection using fsockopen()
Scott. |
Ok, then you are going to have to explain or show more how you are managing the conversation.
Can I presume you've read the relevant *821 RFCs? |
i have done some more testing i tried to send mail to hotmail.com and go a message back sending me to a website that said because i am using an IP in a dynamic ip block i am being blocked by most mail servers
Scott. |
That sounds like a second reason for the reject. This wouldn't explain gmail's SMTP violation message, which I'm willing to believe is a correct diagnostic.
|
yea i have been using a DNS from dyndns.com now i think i will have a talk to my ISP about getting a static IP and proper DNS entry
Thanks for the help anyway Scott. |
gmail smtp with my host
Hi,
I have a problem with my smtp.Because i'm using free hosting plan.But they have disable smtp server in my host.So I need to use free smtp service such as gmail. Any one can help me,Can I use gmail as smtp in with my host. Note-Host doesn't offer smtp for my plan. Can I use phpmailer or sendmail Bye |
Hi,
I have a problem with my smtp.Because i'm using free hosting plan.But they have disable smtp server in my host.So I need to use free smtp service such as gmail. Here code I use for test my host's ports. PHP Code:
here result Got when I run it on brower. PHP Code:
Any one can help me,Can I use gmail as smtp in with my host. Note-Host doesn't offer smtp for my plan. Can I use phpmailer or sendmail Bye |
Its hard to tell what is not working without output and error codes. Are we to presume that you cannot connect to port 587?
Also, note that sending via gmail requires SMTP AUTH. |
All times are GMT -5. The time now is 10:04 AM. |