By Herbigerd
Hi,
first of all thanks for your great tutorials!
However, with this one (https://www.digitalocean.com/community/tutorials/how-to-use-gmail-or-yahoo-with-php-mail-function) I encounter an issue I could not solve so far.
If I do: cat sample_email.txt | msmtp --debug -a gmail bob@domain.com
There is a lot of console output, ending with: reading recipients from the command line
If I wait long enough (approx. 2 minutes) I receive the mail. However, the problem propagates to phps mail function. This means, if a user fills out a contact form he has to wait for approx. 2 minutes until he receives feedback.
(When googling, I usually find that the /etc/hosts file needs to be properly set, however, this is not the issue here).
Any ideas?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Probably your SMTP port is closed, you need to make sure that port 587 is open for outgoing TCP connections via your firewall. You also might have to get in touch with DigitalOcean Support and ask them to open the port for you as well.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.