Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm having problems using the mail command in PHP through an offline server. I've used the mail(to, subject, body) function but the mail wasn't sent to the address. Should I be online?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
271 views
Welcome To Ask or Share your Answers For Others

1 Answer

No, your problem is that you have no SMTP server installed. I suggest you to check on of these:

After successfull setting it up, you'll need to configure your php.ini too, to point at the SMTP you are using.


Or instead of creating your own, you can google how to use someone else's SMTP. The choice is yours.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...