Not able to send emails from phplist on localhost

Hello Everyone,

I have installed phplist on my laptop locally and I am trying to use smtp.gmail.com as smtp server for sending emails. I have done necessary changes in config.php as well, however when I am trying to send am email it is showing error as “sending email failed”.
So I am not able to send any email . Please help if how to use Google/Gmail smtp? or is there any other way for sending emails from phplist?

In the logs it is showing error: “Error sending email to leleamey@gmail.com Invalid address: (From): root@localhost”

Thanks in advance!

Hello ,

I have tried with smtp relay also however getting same error - “Error sending email to Invalid address: (From): root@localhost”
25 number port is already allowed on SMTP server.
Please help so that I am able to send the email from phplist.
IS it possible to send email without adding username password (for SMTP) in config.php fie?

Debug logs while sending the email from phplist

2021-03-16 08:11:25 Connection: opening to <my smtp server’s ip address>, timeout=5, options=array()
2021-03-16 08:11:25 Connection: opened
2021-03-16 08:11:25 SERVER -> CLIENT: <220 SMTP Server name >ESMTP service ready
2021-03-16 08:11:25 CLIENT -> SERVER: EHLO
2021-03-16 08:11:25 SERVER -> CLIENT: 250- says hello250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250-8BITMIME250-XACK250-SIZE 4096000250-VERP250 DSN
2021-03-16 08:11:25 CLIENT -> SERVER: STARTTLS
2021-03-16 08:11:25 SERVER -> CLIENT: 220 2.0.0 ready to start TLS
2021-03-16 08:11:25 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [C:\Bitnami\phplist-3.6.1-1\apps\phplist\htdocs\admin\PHPMailer6\src\SMTP.php line 455]
SMTP Error: Could not connect to SMTP host.
2021-03-16 08:11:25 CLIENT -> SERVER: QUIT
2021-03-16 08:11:25
2021-03-16 08:11:25
2021-03-16 08:11:25 Connection: closed

Please Help.

@ameylele This has been reported before with phpmailer https://github.com/PHPMailer/PHPMailer/issues/1022