Email syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keylope
    Junior Member
    • Jun 2004
    • 23

    #1

    Email syntax

    I'm currently trying to send an email via php. The email is done through a form on my website and I'm trying to get the from address to display when it is sent to me.

    I was wondering if anyone knew the syntax?

    I'm currently using: "$from_name" <$from_address>

    But it keeps showing up as my gzo email addres... anyone run into this type of thing before?

    Thanks.
  • mkraai
    Junior Member
    • Mar 2004
    • 21

    #2
    Try using just $from_address, and manually add a From: header as "$from_name" <$from_address> in the extra headers parameter.
    Last edited by mkraai; 07-28-2004, 12:37 PM.
    “Make everything as simple as possible, but not simpler.”
    — Albert Einstein

    “A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.”
    — Antoine de Saint-Exupéry

    Comment

    • keylope
      Junior Member
      • Jun 2004
      • 23

      #3
      okay...

      I got it working.. the correct syntax was $from_name <$from_address>. But I forgot that to append, you have to use .=, NOT +=.

      See what happens when you get frustrated!!! You start missing all the silly little dots.

      Thanks for your suggestion mkraai!

      Comment

      Working...