Sending Email With PHP Problem

Discussion in 'PHP' started by ChristopherLeeMaher.Com, Aug 6, 2010.

  1. #1
    Hello,

    I am trying to setup a php email form but i am having trouble with
    $EmailFrom = "";
    PHP:
    I want it to come up as its from "MyStaticHost Info" not "info@mystatichost.com" when it is viewed in gmail, etc..

    Thanks,
    Chris
     
  2. belltower

    belltower Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this:

    "MyStaticHost Info" <info@mystatichost.com>
     
    belltower, Aug 6, 2010 IP
  3. khan11

    khan11 Active Member

    Messages:
    615
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Use it like this:
    
    $EmailFrom = "From: MyStaticHost Info <info@mystatichost.com>";
    
    PHP:
     
    khan11, Aug 7, 2010 IP