snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.07k stars 3.18k forks source link

Unable to send email #8789

Closed madkins-fareva closed 3 years ago

madkins-fareva commented 3 years ago

Expected Behavior (or desired behavior if a feature request)

Test email generates the following error: Mail could not be sent. No additional error message provided. Check your mail settings and your app log.


Actual Behavior

When I initial installed and configured Snipe-IT, the email test failed on Pre-Flight. I continued past Pre-Flight to troubleshoot. I click the Test Mail button under Settings > General Settings and it generates the above error. We are using a mail relay to allow email to to be acccepted by our Exchange 2010 server.

PHP email settings are below. A username and password are not required since it is a mail relay. Access is granted by the server's IP address.

MAIL_DRIVER=smtp MAIL_HOST=10.x.x.x MAIL_PORT=25 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null MAIL_FROM_ADDR=snipeit.richmond@fareva.com MAIL_FROM_NAME='Snipe-IT' MAIL_REPLYTO_ADDR=snipeit.richmond@fareva.com MAIL_REPLYTO_NAME='Snipe-IT'


Please confirm you have done the following before posting your bug report:


Provide answers to these questions:

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help

welcome[bot] commented 3 years ago

๐Ÿ‘‹ Thanks for opening your first issue here! If you're reporting a ๐Ÿž bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

samotelf commented 3 years ago

Hello. I believe it is already solved. Check https://github.com/snipe/snipe-it/issues/8746#issue-743099081

madkins-fareva commented 3 years ago

I will read through and see if it resolves my issue.

Thanks!

Matthew C. ADKINS โ€“ Senior Desktop Engineer FAREVA RICHMOND 2248 Darbytown Road Henrico Virginia 23231 E-mail : MAdkins.richmond@fareva.commailto:MAdkins.richmond@fareva.com Website : Fareva.com

[FAREVA logo QUADR EMAIL]

[DOUBLE BANDEAU FAREVA GESTES BARRIERE EN]

The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact the sender of this e-mail and then delete it. For more information on how we process personal data, please see https://www.fareva.com/en-gb/PrivacyPolicy. Please note that neither FAREVA nor the sender accepts any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. This communication is issued on behalf of FAREVA, and individuals or legal entities (other than FAREVA) that are involved in the services provided by, or on behalf of, FAREVA cannot be held liable in any way whatsoever.

From: samotelf [mailto:notifications@github.com] Sent: Thursday, November 19, 2020 1:40 PM To: snipe/snipe-it Cc: Adkins, Matt C; Author Subject: Re: [snipe/snipe-it] Unable to send email (#8789)

Hello. I believe it is already solved. Check #8746 (comment)https://github.com/snipe/snipe-it/issues/8746#issue-743099081

โ€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/snipe/snipe-it/issues/8789#issuecomment-730562803, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR2EA3BT6E46BZPEPEQ6GNTSQVQ65ANCNFSM4T3VLG6A.

madkins-fareva commented 3 years ago

Hello,

Adding a comma to the end of line 76 of mail.php resolved the issue.

Thanks!

Matthew C. ADKINS โ€“ Senior Desktop Engineer FAREVA RICHMOND 2248 Darbytown Road Henrico Virginia 23231 E-mail : MAdkins.richmond@fareva.commailto:MAdkins.richmond@fareva.com Website : Fareva.com

[FAREVA logo QUADR EMAIL]

[DOUBLE BANDEAU FAREVA GESTES BARRIERE EN]

The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact the sender of this e-mail and then delete it. For more information on how we process personal data, please see https://www.fareva.com/en-gb/PrivacyPolicy. Please note that neither FAREVA nor the sender accepts any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. This communication is issued on behalf of FAREVA, and individuals or legal entities (other than FAREVA) that are involved in the services provided by, or on behalf of, FAREVA cannot be held liable in any way whatsoever.

From: Adkins, Matt C Sent: Thursday, November 19, 2020 1:48 PM To: 'snipe/snipe-it'; snipe/snipe-it Cc: Author Subject: RE: [snipe/snipe-it] Unable to send email (#8789)

I will read through and see if it resolves my issue.

Thanks!

Matthew C. ADKINS โ€“ Senior Desktop Engineer FAREVA RICHMOND 2248 Darbytown Road Henrico Virginia 23231 E-mail : MAdkins.richmond@fareva.commailto:MAdkins.richmond@fareva.com Website : Fareva.com

[FAREVA logo QUADR EMAIL]

[DOUBLE BANDEAU FAREVA GESTES BARRIERE EN]

The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact the sender of this e-mail and then delete it. For more information on how we process personal data, please see https://www.fareva.com/en-gb/PrivacyPolicy. Please note that neither FAREVA nor the sender accepts any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. This communication is issued on behalf of FAREVA, and individuals or legal entities (other than FAREVA) that are involved in the services provided by, or on behalf of, FAREVA cannot be held liable in any way whatsoever.

From: samotelf [mailto:notifications@github.com] Sent: Thursday, November 19, 2020 1:40 PM To: snipe/snipe-it Cc: Adkins, Matt C; Author Subject: Re: [snipe/snipe-it] Unable to send email (#8789)

Hello. I believe it is already solved. Check #8746 (comment)https://github.com/snipe/snipe-it/issues/8746#issue-743099081

โ€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/snipe/snipe-it/issues/8789#issuecomment-730562803, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR2EA3BT6E46BZPEPEQ6GNTSQVQ65ANCNFSM4T3VLG6A.

samotelf commented 3 years ago

Cool. Can you mark the issue as closed?

thilinadias commented 10 months ago

This might be helpful. Check this out

https://github.com/thilinadias/thilinadias/discussions/1#discussion-5964598

GitHub
Snipe-IT Email configuration error - Mail could not be sent. No additional error message provided. Check your mail settings and your app log. ยท thilinadias/thilinadias ยท Discussion #1
โœ๏ธ Hi Github peeps, Welcome to my discussion regarding Snipe-IT Email configuration error - Mail could not be sent. No additional error message provided. Check your mail settings and your app log. ...