1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Creating a space between to email headers

Discussion in 'PHP' started by jehzlau, Apr 17, 2007.

  1. #1
    I mean, Creating a space between the email headers

    A simple newbie PHP question...

    Hi, I want to create a space between the email headers of my php form processor.

    What I did is this:

    $header = "From: $FirstName $LastName";

    and this

    $header = "From: $FirstName $LastName";


    but it doesn't work.. I don't know how? :( need help :(
     
    Solved! View solution.
    jehzlau, Apr 17, 2007 IP
  2. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Do you mean between the Firstname and Lastname or between two headers?
     
    Aragorn, Apr 17, 2007 IP
  3. jehzlau

    jehzlau Active Member

    Messages:
    301
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #3
    space between the first name and last name sir :)
     
    jehzlau, Apr 17, 2007 IP
  4. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Use \r\n this will solve your problem.
     
    Subikar, Apr 17, 2007 IP
  5. #5
    Try this
    $header = "From: '$FirstName $LastName'";
    Code (markup):
     
    Aragorn, Apr 17, 2007 IP
  6. jehzlau

    jehzlau Active Member

    Messages:
    301
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #6
    it doesn't work sensei :(
     
    jehzlau, Apr 18, 2007 IP
  7. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #7
    If you are trying to send an email, then try this code
    $header = "From: \"$FirstName $LastName\" <$from_email>";
    Code (markup):
     
    Aragorn, Apr 19, 2007 IP
  8. jehzlau

    jehzlau Active Member

    Messages:
    301
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #8
    hey thanks it works :)
     
    jehzlau, Apr 22, 2007 IP
    Aragorn likes this.