1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP mailer help? Anyone? I'm worthless!

Discussion in 'PHP & Perl' started by jdubinc, Aug 14, 2010.

  1. jdubinc

    jdubinc Newbie

    Joined:
    Jul 9, 2010
    Messages:
    12
    Likes Received:
    0
    Occupation:
    Business Owner
    Location:
    Lexington, KY
    I'm new to everything I'm going to try to explain...

    I have sites I use to email from with php, but I want a display name now in my script, is that possible? Like in the from line on email I want it to have a real name like John Smith.

    Below is currently in my script for email display:

    <?php

    //setup
    $my_from = 'email address here';

    Any clues? Sorry for the lack of knowledge and experience to explain farther!
     
  2. jdubinc

    jdubinc Newbie

    Joined:
    Jul 9, 2010
    Messages:
    12
    Likes Received:
    0
    Occupation:
    Business Owner
    Location:
    Lexington, KY
    Anyone that has sent me mail I can't write back because I need more posts... or a donation... sorry, please explain on here.
     
  3. crossroads

    crossroads Newbie

    Joined:
    Oct 23, 2009
    Messages:
    29
    Likes Received:
    5
    Try this:
    Code:
    <?php
    
    //setup
    $my_name = 'My Name here';
    $my_email = 'email address here';
    $my_from = "From: ".$my_name." <".$my_email.">\n";
     
    Last edited: Aug 16, 2010