Hi I am new to Php
This is the error I am getting when trying to send an email from my script:
Warning: mail(): SMTP server response: 554 <mervgh@yahoo.com>: Relay access denied in c:\program files\apache group\apache\htdocs\fourandfive\chap8\register.php on line 63
These are the lines of code I have in my script at the top of the page:
ini_set ("SMTP","mail.MyWebSite.com");
ini_set ("sendmail_from","webmaster@MyWebSite.com");
Correct me if I am wrong, It is better to use these lines of code instead of using the php.ini file if the server is shared. This error seems to look like I need authentication to relay the mail, how do I do this, or get around this?
Thanks in advance for your help
This is the error I am getting when trying to send an email from my script:
Warning: mail(): SMTP server response: 554 <mervgh@yahoo.com>: Relay access denied in c:\program files\apache group\apache\htdocs\fourandfive\chap8\register.php on line 63
These are the lines of code I have in my script at the top of the page:
ini_set ("SMTP","mail.MyWebSite.com");
ini_set ("sendmail_from","webmaster@MyWebSite.com");
Correct me if I am wrong, It is better to use these lines of code instead of using the php.ini file if the server is shared. This error seems to look like I need authentication to relay the mail, how do I do this, or get around this?
Thanks in advance for your help