Would Dreamhost allow email sending with PHP without having email binded to domain?

Greetings,

Question is same as in title. I have setup PHP script which sends mail, but it doesn’t work for some reason. I am guessing that problem is that I don’t have email hosted at Dreamhost?

The recommended way to send email is via SMTP. DH has an article on the subject:

This post was flagged by the community and is temporarily hidden.