PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
mail("To:$Todomainname@.com","$Subject","$some message body","From:$Fromdomainname.com");
?>
If i try to execute this, i am getting error reporting like "SMTP server response: 550 5.7.1 Unable to relay for Todomainname.com".
Please help it out.
That is your problem. whats this To: doing there? This section is supposed to be just a e-mail address, the address that you want to send the e-mail to. it should be like
can I recommend PHPmailer? You will likely have a lot of problems sending to hotmail and other email providers becasue of misused headers. PHPmailer is very effective and 99.9% gets the job done