Skip to main content
Legend
July 4, 2017
Answered

php email - strange problem

  • July 4, 2017
  • 1 reply
  • 246 views

This one is quite strange.

I'm mailing out a short run eshot for a client using php from my server. If I use as the $headers From: tommy@blah_blah.co.uk or fred@blah_blah.co.uk, practically any name prefacing the @7431982 part the email From header comes through with the tommy@blah_blah.co.uk, or fred@blah_blah.co.uk, which is what I really require.

HOWEVER if I change it to mark, as below, which is the clients name/email address it arrive as just Mark the name has been capped up and the @9345664.co.uk removed???

$headers  = 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

$headers .= "From: mark@blah_blah.co.uk";

What gives?

I mean if the guys name was anything but mark it seems to work.

    This topic has been closed for replies.
    Correct answer osgood_

    Ok I know why now.

    It's because my email client has this guys name/email address stored and it replaces anything from that email address with how the original is set up, which is just Mark - I don't have any entries for tommy or fred so it uses what I send.

    I need asprins.

    1 reply

    osgood_AuthorCorrect answer
    Legend
    July 4, 2017

    Ok I know why now.

    It's because my email client has this guys name/email address stored and it replaces anything from that email address with how the original is set up, which is just Mark - I don't have any entries for tommy or fred so it uses what I send.

    I need asprins.