i have to send email where email “from” having ‘firstname”lastname’.
For ex: first_name=”john”
last_name=”Dime”
email_id=”john@john.com”
then from should be like this in the sent mail: From: john dime.
Please help me if u find any solution.
This is taken from php.net website:
You can specify the from field in the additional headers.
You just need to change the webmaster@example.com with the desired string
http://php.net/manual/en/function.mail.php – this can be useful for you