title: SMTP server response: 550 Invalid recipient to a simple email feature
body: <p>i am creating a website using php that sends confirmation messages through emails..</p>
  
  <p>to edit my php.ini, i followed this walkthrough:</p>
  
  <p><a href="http://php.net/manual/en/ref.mail.php" rel="nofollow">http://php.net/manual/en/ref.mail.php</a></p>
  
  <p>i downloaded a free smtp server to test the connections, i used port 25, and the DNS server as localhost. I use this server to test if the email i send is being connected</p>
  
  <p>i used this simple code to test the mail() function:</p>
  
  <pre><code>&lt;?php
  $to = 'myownemail@yahoo.com';
  $subject = 'the subject';
  $from = 'email@domain.com';
  $message = 'hello';
  
  if(mail($to, $subject, $message, "From: $from"))
    echo "Mail sent";
  else
    echo "Mail send failure - message not sent"; ?&gt;
  </code></pre>
  
  <p>when running, the smtp server indicates that the current active connection is the "myownemail@yahoo.com".</p>
  
  <p>but the website shows this error message:</p>
  
  <p>SMTP server response: 550 Invalid recipient</p>
  
  <p>what should i do? i am very new to development and used smtp for the first time so i have no idea what is happening</p>
  
  <p>PS. I got the smtp server here> softstack.com/freesmtp.html</p>