-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send mail issue in SnipeIt #802
Comments
Can you tell me what's in your logs? |
Hi, I am new to the Snipe-IT app. Could you tell me how to view the log? |
i am having same problem. when i use Gmail SMTP setting it work. but when i use my office SMTP setting it shows the error. here is what log show [2015-05-19 04:56:18] production.ERROR: exception 'ErrorException' with message 'stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: |
@shafrax can you show me your |
Hi, I have attached the mail.php file for your reference. The file is placed under “inetpub\wwwroot\snipe-it\app\config” Thanks & Regards, Nagamani E | Cenza Technologies Pvt Ltd | #4, Industrial Estate, Perungudi, Chennai – 600 096 | Tel: +91 44 24960050/38 | Fax: +91 44 24960032 | Mail: systemadmin@cenzatech.com | Website: www.cenzatech.com http://www.cenzatech.com/ CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this E-mail or any attachment is prohibited. If you have received this E-mail in error, please notify us immediately on +91 44 24960038/50 or by email and delete this copy from your system. Thank you for your cooperation. P Please do not print this email unless it is absolutely necessary. Save paper. Save trees. Spread environmental awareness From: snipe [mailto:notifications@github.com] @shafrax https://github.com/shafrax can you show me your mail.php settings (without the actual email address and password, of course) — |
@enagamani You can't send attachments through GH issues. You'll have to copy+paste it into the web form on Github. |
Hi, I have pasted the configuration file below.
Thanks & Regards, Nagamani E | Cenza Technologies Pvt Ltd | #4, Industrial Estate, Perungudi, Chennai – 600 096 | Tel: +91 44 24960050/38 | Fax: +91 44 24960032 | Mail: systemadmin@cenzatech.com | Website: www.cenzatech.com http://www.cenzatech.com/ CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this E-mail or any attachment is prohibited. If you have received this E-mail in error, please notify us immediately on +91 44 24960038/50 or by email and delete this copy from your system. Thank you for your cooperation. |
@enagamani I think you need to use a named mail server, since it's looking for an SSL certificate. Something like mail.yourserver.com |
Hi, My mail server doesn’t require SSL certificate to send the mails. Also I change the configuration as below. Still the problem exists. 'smtp', /* |-------------------------------------------------------------------------- | SMTP Host Address |-------------------------------------------------------------------------- | | Here you may provide the host address of the SMTP server used by your | applications. A default option is provided that is compatible with | the Postmark mail service, which will provide reliable delivery. | */ 'host' => 'censun.cenzaa.com', /* |-------------------------------------------------------------------------- | SMTP Host Port |-------------------------------------------------------------------------- | | This is the SMTP port used by your application to delivery e-mails to | users of your application. Like the host we have set this value to | stay compatible with the Postmark e-mail application by default. | */ 'port' => 25, /* |-------------------------------------------------------------------------- | Global "From" Address |-------------------------------------------------------------------------- | | You may wish for all e-mails sent by your application to be sent from | the same address. Here, you may specify a name and address that is | used globally for all e-mails that are sent by your application. | */ 'from' => array('address' => Sniptit@cenzaa.com, 'name' => Snipeit), /* |-------------------------------------------------------------------------- | E-Mail Encryption Protocol |-------------------------------------------------------------------------- | | Here you may specify the encryption protocol that should be used when | the application send e-mail messages. A sensible default using the | transport layer security protocol should provide great security. | */ 'encryption' => 'null', /* |-------------------------------------------------------------------------- | SMTP Server Username |-------------------------------------------------------------------------- | | If your SMTP server requires a username for authentication, you should | set it here. This will get used to authenticate with your server on | connection. You may also set the "password" value below this one. | */ 'username' => XXXXXXX, /* |-------------------------------------------------------------------------- | SMTP Server Password |-------------------------------------------------------------------------- | | Here you may set the password required by your SMTP server to send out | messages from your application. This will be given to the server on | connection so that the application will be able to send messages. | */ 'password' => XXXXXXX, /* |-------------------------------------------------------------------------- | Sendmail System Path |-------------------------------------------------------------------------- | | When using the "sendmail" driver to send e-mails, we will need to know | the path to where Sendmail lives on this server. A default path has | been provided here, which will work well on most of your systems. | */ 'sendmail' => '/usr/sbin/sendmail -bs', /* |-------------------------------------------------------------------------- | Mail "Pretend" |-------------------------------------------------------------------------- | | When this option is enabled, e-mail will not actually be sent over the | web and will instead be written to your application's logs files so | you may inspect the message. This is great for local development. | */ 'pretend' => false, ``` ); Thanks & Regards, Nagamani E | Cenza Technologies Pvt Ltd | #4, Industrial Estate, Perungudi, Chennai – 600 096 | Tel: +91 44 24960050/38 | Fax: +91 44 24960032 | Mail: systemadmin@cenzatech.com | Website: www.cenzatech.com http://www.cenzatech.com/ CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this E-mail or any attachment is prohibited. If you have received this E-mail in error, please notify us immediately on +91 44 24960038/50 or by email and delete this copy from your system. Thank you for your cooperation. P Please do not print this email unless it is absolutely necessary. Save paper. Save trees. Spread environmental awareness From: snipe [mailto:notifications@github.com] Sent: Saturday, May 23, 2015 08:22 To: snipe/snipe-it Cc: enagamani Subject: Re: [snipe-it] Send mail issue in SnipeIt (#802) @enagamani https://github.com/enagamani I think you need to use a named mail server, since it's looking for an SSL certificate. Something like mail.yourserver.com — Reply to this email directly or view it on GitHub https://github.com//issues/802#issuecomment-104822588 . https://github.com/notifications/beacon/ALZzzfFK8eIQWtQki56i-8JN8pAY2wcDks5oL-LIgaJpZM4Eejcl.gif |
That's weird, your configuration looks fine. Here, maybe you can try this? on your webserver, install the telnet client. I think this is part of the add/remove components, but I haven't used Windows in a while so I can't be sure. From your webserver try:
The result you should get from that is an SMTP banner or greeting. If you get absolutely nothing, then it's possible you're dealing with a networking issue between your webserver and mailserver. Let us know what you find. |
@snipe this is my mail.php setting. 'smtp', /* |-------------------------------------------------------------------------- | SMTP Host Address |-------------------------------------------------------------------------- | | Here you may provide the host address of the SMTP server used by your | applications. A default option is provided that is compatible with | the Postmark mail service, which will provide reliable delivery. | */ 'host' => 'mail.mydomain.com', /* |-------------------------------------------------------------------------- | SMTP Host Port |-------------------------------------------------------------------------- | | This is the SMTP port used by your application to delivery e-mails to | users of your application. Like the host we have set this value to | stay compatible with the Postmark e-mail application by default. | */ 'port' => 587, /* |-------------------------------------------------------------------------- | Global "From" Address |-------------------------------------------------------------------------- | | You may wish for all e-mails sent by your application to be sent from | the same address. Here, you may specify a name and address that is | used globally for all e-mails that are sent by your application. | */ 'from' => array('address' => null, 'name' => null), /* |-------------------------------------------------------------------------- | E-Mail Encryption Protocol |-------------------------------------------------------------------------- | | Here you may specify the encryption protocol that should be used when | the application send e-mail messages. A sensible default using the | transport layer security protocol should provide great security. | */ 'encryption' => 'TLS', /* |-------------------------------------------------------------------------- | SMTP Server Username |-------------------------------------------------------------------------- | | If your SMTP server requires a username for authentication, you should | set it here. This will get used to authenticate with your server on | connection. You may also set the "password" value below this one. | */ 'username' => 'shafrax@mydomain.com', /* |-------------------------------------------------------------------------- | SMTP Server Password |-------------------------------------------------------------------------- | | Here you may set the password required by your SMTP server to send out | messages from your application. This will be given to the server on | connection so that the application will be able to send messages. | */ 'password' => '**********', /* |-------------------------------------------------------------------------- | Sendmail System Path |-------------------------------------------------------------------------- | | When using the "sendmail" driver to send e-mails, we will need to know | the path to where Sendmail lives on this server. A default path has | been provided here, which will work well on most of your systems. | */ 'sendmail' => '/usr/sbin/sendmail -bs', /* |-------------------------------------------------------------------------- | Mail "Pretend" |-------------------------------------------------------------------------- | | When this option is enabled, e-mail will not actually be sent over the | web and will instead be written to your application's logs files so | you may inspect the message. This is great for local development. | */ 'pretend' => false, ``` ); |
@shafrax you need to fill out the from settings |
@snipe i filled from setting but not working. this is what log shows. [2015-05-25 03:59:43] production.ERROR: exception 'ErrorException' with message 'stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: |
Hi, I filled the from settings. But still I have the same problem. I getting the below error in the log file. [2015-05-25 05:20:34] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'syntax error, unexpected '@', expecting ')'' in C:\inetpub\wwwroot\snipe-it\app\config\mail.php:57 Stack trace: #0 [internal function]: Illuminate\Exception\Handler->handleShutdown() #1 {main} [] [] Thanks & Regards, Nagamani E | Cenza Technologies Pvt Ltd | #4, Industrial Estate, Perungudi, Chennai – 600 096 | Tel: +91 44 24960050/38 | Fax: +91 44 24960032 | Mail: systemadmin@cenzatech.com | Website: www.cenzatech.com http://www.cenzatech.com/ CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this E-mail or any attachment is prohibited. If you have received this E-mail in error, please notify us immediately on +91 44 24960038/50 or by email and delete this copy from your system. Thank you for your cooperation. P Please do not print this email unless it is absolutely necessary. Save paper. Save trees. Spread environmental awareness From: snipe [mailto:notifications@github.com] @shafrax https://github.com/shafrax you need to fill out the from settings — |
@enagamani it looks like you have a typo in your from address:
Missing single quotes around the values. Should be:
|
Hello , im still trying to get email up and running with no luck. using exchange smtp address no authentication required at all. any help will be appreciated i get this on the page Server Error: 500 (Internal Server Error) when trying to using forgot my password and this is what i see in the logs. [Fri Sep 11 07:56:12.710920 2015] [:error] [pid 8499] [client xxx.xxxx.xxxx.xxxx:57629] PHP Parse error: syntax error, unexpected '{' in /var/www/snipe-it-develop/app/config/mail.php on line 44, referer: http://xxx.xxx.xxx.xxx/auth/forgot-password and here is mail.php config
|
Your host IP should not be wrapped in {{ }}. |
@ddreier is correct. Values in the config should be in single quotes, never braces |
@snipe i have issue with send email i get this logs
this is my mail.php
any idea what is wrong ? |
Hi Snipe-it, I also had same problem, but couldn't able to fix it please help me this.
|
@Sathish5470 what version of Snipe-IT are you using? |
v2.1.0-47-g39f40a3 |
Hi Team, Can you please help me to fix my mail send issue? |
I am using the snipe IT in windows 2008 R2 server and I don't have the send mail in my server. I am using the SMTP drivers in snipe It. But I am unable to send the mails. I am getting the below error every time I try open a page using the mail option.
Ouch.
Server Error: 500 (Internal Server Error)
What does this mean?
Something went wrong on our servers while we were processing your request. We're really sorry about this, and will work hard to get this resolved as soon as possible.
Perhaps you would like to go to our home page?
Could some on help to solve this issue?
The text was updated successfully, but these errors were encountered: