Email Script problems - what's the easy fix?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Email Script problems - what's the easy fix?

Post by simonmlewis »

Hi
We have major issues with JustHost. They've performed an update and how most of our email scripts fail, and churn out emials with bogus addresses in them - rather than addresses we put into the FROM header.

I've told this is one solution, but it doesn't work.

https://my.justhost.com/cgi/help/206

How should we be setting our email scripts?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Email Script problems - what's the easy fix?

Post by Christopher »

Looks like an anti-spam measure. In addition to the formatting check it also says "the email address does not exist in the cPanel."
(#10850)
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Email Script problems - what's the easy fix?

Post by simonmlewis »

So you think if it's fired out from a valid email address in the cPanel, it will work?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Email Script problems - what's the easy fix?

Post by Christopher »

Only one way to find out...
(#10850)
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Email Script problems - what's the easy fix?

Post by simonmlewis »

That's not it - as we have code that DOES work, as the email address FROM isn't even in the system!

Code: Select all

$headers = "From: $row->supportemail";
This works. Is it "good code"?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply