gamonoid / icehrm

Manage your employees easily with a robust and efficient Human Resource Management System
http://icehrm.com
Other
593 stars 374 forks source link

Mail function not working #261

Closed aaryl closed 3 years ago

aaryl commented 3 years ago

Hello,

i've a problem with mail sending. I tryd SMTP / SMTP Swift and PHP Mailer but non of them are working.

I used an SMTP Server over Plesk, Office365 and an SMTP Relay. There are some messages in the log, but i don't know how to solve the problem.

PHP Mailer Log only gives me this: [2021-06-29 14:59:21] xxxx.INFO: (client=app) Sending email to: xxx@xxxx.de/ from: xxxx xxx@xxx.de [] []

With SMTP Swift i got: Error sending email:Expected response code 354 but got code "503", with message "503-All RCPT commands were rejected with this error: 503-Temporary local problem

or

SMTP Error Response: authentication failure [SMTP: STARTTLS failed (code: 220, response: TLS go ahead)]

or

Error sending email:Expected response code 250 but got code "530", with message "530 5.7.0 Must issue a STARTTLS command first " []

With SMTP i got these errors: Error sending email:Expected response code 250 but got code "451", with message "451 5.7.3 STARTTLS is required to send mail

or

SMTP Error Response: authentication failure [SMTP: STARTTLS failed (code: 220, response: TLS go ahead)]

or

SMTP Error Response:Failed to connect to xxxx:465 [SMTP: Invalid response code received from server (code: -1, response: )]

Could anyone help me get the Mailthing running?

aaryl commented 3 years ago

I got it working with SMTP Swift Port 587 and SMTP Relay.