• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • 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

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Annoying little PHP email problem

    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 = "[email protected]";
    $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 by xoggoth; 14 June 2009, 08:20.
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

Working...
X