PHP mailer help? Anyone? I'm worthless!

jdubinc

Newbie
Joined
Jul 9, 2010
Messages
12
Reaction score
0
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!
 
Anyone that has sent me mail I can't write back because I need more posts... or a donation... sorry, please explain on here.
 
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!

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:
Back
Top