Report this

What is the reason for this report?

Why won't PHP Mail send emails to hyphenated email addresses (e.g. digital-ocean@hotmail.com)

Posted on June 1, 2015

It works fine with email addresses without hyphens (e.g. digitalocean@hotmail.com). Does anyone know a possible cause for this?

Please ask if you need any more information.



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @McCartheee,

This looks like some kind of an encoding issue nothing else. I’m not sure it’s actually part of the phpMailer class or just the way your strings are being saved.

Additionally, try to use the most up to date PHP version and see if the error would be again experienced.

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.