Topic: Email not working in FA
Guys, needs some enlightment.
So i setup ssmtp and edit the ssmtp.conf as well as sendmail path in php.ini to be /usr/sbin/ssmtp -t but email funtion in FA is not working
I test with order confirmation, email address is set on the customer contact for order confirmation, then when i click the button "Email this order" there is no notification if the mail is successfull or not
what i did was
1. test the ssmtp function through terminal, it did work
Sep 27 15:53:27 vps661017 sSMTP[8719]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=0 username=root outbytes=363
Sep 27 16:09:21 vps661017 sSMTP[8968]: Creating SSL connection to host
Sep 27 16:09:21 vps661017 sSMTP[8968]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Sep 27 16:09:28 vps661017 sSMTP[8968]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=0 username=root outbytes=359
Sep 27 16:11:55 vps661017 sSMTP[9048]: Creating SSL connection to host
Sep 27 16:11:55 vps661017 sSMTP[9048]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
2. i create this php file to test sending from a php
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "test@hostinger-tutorials.com";
$to = "test@gmail.com";
$subject = "Checking PHP mail";
$message = "PHP mail works just fine";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "The email message was sent.";
?>
it did successfully sent
Sep 27 16:12:02 vps661017 sSMTP[9048]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=33 username=www-data outbytes=387
Sep 27 16:14:20 vps661017 sSMTP[9077]: Creating SSL connection to host
Sep 27 16:14:21 vps661017 sSMTP[9077]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Sep 27 16:14:25 vps661017 sSMTP[9077]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=33 username=www-data outbytes=387
[27-Sep-2019 16:15:57 Asia/Jakarta] mail() on [/var/www/html/FA/testmail.php:9]: To: andi.budiman@gmail.com -- Headers: From:fa@kbn-indo.com -- Subject: Checking PHP mail
Sep 27 16:15:57 vps661017 sSMTP[9090]: Creating SSL connection to host
Sep 27 16:15:57 vps661017 sSMTP[9090]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Sep 27 16:16:02 vps661017 sSMTP[9090]: Sent mail for fa@kbn-indo.com (221 srv76.niagahoster.com closing connection) uid=33 username=www-data outbytes=387
But everytime i test on FA, mail.log did not show anything, it was like the mail function just not run
Please help.
Regards,
SiKumbang