help in the mail () function!
Posted: Mon Apr 28, 2008 3:28 am
Does anybody know how can I change the name of the sender when using the mail function,
everytime I use this code the name of the sender is the name of the external server and using and other bunch of characters!
everytime I use this code the name of the sender is the name of the external server and using and other bunch of characters!
Code: Select all
<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>