Email Not send notification

Hallo…
Saya telah mencoba semua saran di grup ini, mengenai cara mengatasi email gagal mengirimkan notifikasi kepada penulis. semua cara telah gagal. Saya membutuhkan bantuan untuk mengatasi hal tersebut. saya sudah mencoba beberapa cara, antara lain:

  1. setting gmail smtp:
    [email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = “ssl:/smtp.gmail.com”
smtp_port = 465

; Enable SMTP authentication
; Supported mechanisms: ssl, tls
smtp_auth = SSL
smtp_username = “myemail@gmail.com
smtp_password = “mypassword”

  1. settingan kedua
    [email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = “tls:/smtp.gmail.com”
smtp_port = 578

; Enable SMTP authentication
; Supported mechanisms: ssl, tls
smtp_auth = TLS
smtp_username = “myemail@gmail.com
smtp_password = “mypassword”

  1. Settingan ketiga
    [email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = “smtp.gmail.com
smtp_port = 465

; Enable SMTP authentication
; Supported mechanisms: ssl, tls
smtp_auth = PLAIN
smtp_username = “myemail@gmail.com
smtp_password = “mypassword”

error log: SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub

dan semuanya gagal. apakah ada cara lain selain setting email ini??

error Log
25-Jun-2020 12:47:52 UTC] PHP Deprecated: Non-static method PKPRequest::getRemoteAddr() should not be called statically in /home/u7129184/public_html/jurnal/lib/pkp/classes/mail/Mail.inc.php on line 546
[25-Jun-2020 12:47:52 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/u7129184/public_html/jurnal/lib/pkp/classes/core/PKPRequest.inc.php on line 427
[25-Jun-2020 12:47:52 UTC] Connection: opening to smtp.google.com:587, timeout=300, options=array()
[25-Jun-2020 12:47:52 UTC] Connection failed. Error #2: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known [/home/u7129184/public_html/jurnal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/SMTP.php line 321]
[25-Jun-2020 12:47:52 UTC] Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.google.com:587 (php_network_getaddresses: getaddrinfo failed: Name or service not known) [/home/u7129184/public_html/jurnal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/SMTP.php line 321]
[25-Jun-2020 12:47:52 UTC] SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
[25-Jun-2020 12:47:52 UTC] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[25-Jun-2020 12:47:52 UTC] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub

Gunakan settingan kedua bos, tapi pastikan bahwa settingan email google tersebut sudah memperbolehkan third party.

Begini Cara Setting SMTP Gmail, Mudah dan Gratis! baca di sini bagian. Bagaimana kalau saya tidak bisa menggunakan SMTP Gmail? khususnya di lessSecureApps

Semoga bisa membantu

terima kasih gan… sy sudah coba dan sudah berhasil. terima kasih.