Jump to content

Sendmail: how do i get my name next to my email address.


nadz

Recommended Posts

what i mean is when the person reads the email i sent them through my sendmail form it just shows the email address i am choosing to display:

 

From: [email protected]

 

but i want it to show:

 

From: <[email protected]> My Name

 

i think its really simple but im a total noob.

thank for the reply, now to make it slightly more complicated, the emails are sent by different users so im using this as the "from" header in the form:

 

$from = trim($_POST['sender']);

 

where the user supplies the email address they want it to be from. The name of the person sending it is defined by

 

$_POST['name']

 

so I tried this:

 

$from = $_POST['name'] <trim($_POST['sender'])>;

 

and

 

$from = trim($_POST['name']) <trim($_POST['sender'])>;

 

and i got this error:

 

Parse error: syntax error, unexpected '>' in /home/.loekie/nexman/*********.co.uk/import/import.php on line 108

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.