0

sorry to disturb you, but I've made this code, It was longer but I made it to this because this is the part that won't send the right stuff

    <?php
    mail('mitchg345@yahoo.com', "Welcome!", "Welcome", "FROM: Mitch");
    echo "Good";
    ?>

The From just keeps saying it's from "Nobody" but the "Welcome!" part works, but after that doesn't work. Please help!

Mitch
  • 21
  • 5
  • I believe From: needs to have a email, not just a name, or name and email: From: Mitch – kennypu Dec 07 '12 at 02:53
  • You should check out this question / answer: [http://stackoverflow.com/questions/2014081/problem-with-php-mail-from-header][1] [1]: http://stackoverflow.com/questions/2014081/problem-with-php-mail-from-header – tonino.j Dec 07 '12 at 02:57

1 Answers1

0

Try this: PHP mail

if(mail('mitchg345@yahoo.com', 'Subject', 'Message', 'From: Mitch <mitchg345@yahoo.com>'))
{
    echo 'Sent';
}
SeanWM
  • 16,789
  • 7
  • 51
  • 83