开发者

Problem sending mail from PHP page using GMail's SMTP server [duplicate]

开发者 https://www.devze.com 2023-01-24 02:56 出处:网络
This question already has answers here: Sending email through gmail SMTP on GoDaddy [closed] (12 answers)
This question already has answers here: Sending email through gmail SMTP on GoDaddy [closed] (12 answers) Closed 6 years ago.

I'm using the script in the marked answer of this thread: Send email using the GMail SMTP server from a PHP page When I use this script on my hostgator based site, it works perfectly. However, mails are not being sent from the GoDaddy hosted site. Both have versions upwards of PHP 5.2开发者_高级运维.

Any help?


Probably you have a problem sending mail and you get the error.

Usually I'm trying to send email manually using telnet. so try the following on the server console from command line:

1) telent [smtp server] 25 When you are connected type the following: 2) HELO [our full qualified domain name as it appers in email]

3) MAIL FROM: [FromAddress@yourdomail.com]

4) RCPT TO: [recipient@recipientdomain.com]

5) DATA

type any text.

6) click enter and then click ".".

You will see if your server is sending mail or returning you any email.

You can read about those commands here http://www.yuki-onna.co.uk/email/smtp.html

0

精彩评论

暂无评论...
验证码 换一张
取 消