• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Annoying little PHP email problem

xoggoth

More fingers than teeth
Joined
Jul 8, 2005
Messages
17,132
Likes received
4,950
Thanks received
1,184
Location
xoggoth towers
Sorted again - ignore
I just moved the header lines around for no obvious reason. The random programming technique that has served me well for 30 years works again!!!


PS CUK, How come one can't delete a post these days?

*************************************


Customer fills in email order form which I am sending to myself:

$recipient = "me@me.co.uk";
$title etc
$headers etc
$message etc
mail($recipient,$title,$message,$headers);

And sending confirmation email to customer changing title and headers only:

$recipient = "{$_POST['email']}";
$title etc
$headers etc
mail($recipient,$title,$message,$headers);

For some reason multiline messages sent to me are ok but the copy to the customer has extra blank lines stuck in. It isn't the order I'm doing things in, it's always the "{$_POST['email']}" version that gets messed up.

Any ideas why? Thanks for answers.
 
Last edited: 08:58

Advertisers

Back
Top