Good Day to all!
I am trying to resolve an issue when trying to send mail via PHP. Here is my test script
$to = "firstname.lastname@example.org";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "name@domaincom";
$headers = "From:" . $from;
echo "Mail Sent.";
In the PHP.ini here is the following:
; For Win32 only.
SMTP = 192.x.x.x
smtp_port = 1677
Is what is in the old php.ini
I had believed that the smtp_port should be equal to port 25. Am I wrong.
What am I missing here. Can I also specify in my PHP code the server and port?