I have trouble sending email in PHP. I get an error:
SMTP server response: 530 SMTP authentication is required.
$from = "someonelse@example.com"; $headers = "From:" . $from; echo mail ("deyni@gmail.com" ,"testmailfunction" , "Oj",$headers);
You can send email without SMTP to verify. I know that this mail will propably get filtered out, but that doesn't matter right now.
[mail function] ; For Win32 only. ;
http://php.net/smtp SMTP = localhost ;
http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ;
http://php.net/sendmail-from sendmail_from = someonelse@example.com
This is the setup in the php.ini file. How should I set up SMTP? Are there any SMTP servers that require no verification or must I setup a server myself?