Hi there, I have a slight problem with an email script that I have written, i'm using the mail() function. It sends an email a ben@gmail.com (doesn't exist)

I have hosted a website online and created a send us a quick message script that works from the site, this script works perfectly fine when sending it to myself(gmail account) even though it does go into spam email.

The problem however is when sending it to my Mums email(btinternet,uses outlook express), she says it doesn't even appear in her spam inbox.

What could the problem be? Would i need to pay for an email on the hosting so that i can set that as the sender?

It depends on some hosting. When I first had my XAMPP server running the 'mail()' command wasn't working at all. In the end I used SMTP to send mail within PHP.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.