ElkArte Community

Elk Development => Feature Discussion => Topic started by: Joshua Dickerson on November 02, 2014, 04:51:43 pm

Title: sendmail() test
Post by: Joshua Dickerson on November 02, 2014, 04:51:43 pm
I think there should be a link on the managemail page to send a test email to ensure you've set it up correctly. I'm kind of concerned that I might not have it setup correctly.

Obviously one can send a message, just think it would be easier if there was a link right there.
Title: Re: sendmail() test
Post by: emanuele on November 02, 2014, 05:07:52 pm
Interesting idea!
Title: Re: sendmail() test
Post by: Keiro on January 08, 2016, 04:49:51 pm
... Why was this idea not already implemented?

It's 2 years ago, it should've been implemented by now. I was looking for something like this just today because I could not figure out why the forum I have SMTP set up was not wanting to send e-mail messages of topic reply notifications, etc because it wasn't showing anything in mail logs.
Title: Re: sendmail() test
Post by: emanuele on January 08, 2016, 05:51:35 pm
O:-)
Title: Re: sendmail() test
Post by: Keiro on January 08, 2016, 06:04:47 pm

Seriously, man... seriously.

Can we get this implemented more or less quickly? :( E-mail troubleshooting is a giant pain in the booty without mail logs... it seems my Elkarte forum isn't doing ANYTHING when it comes to sending test e-mails. Just redirects me to my profile.
Title: Re: sendmail() test
Post by: Spuds on January 21, 2016, 12:19:21 pm
Added it as a feature request on github ... at least that way its visible as a request.
Title: Re: sendmail() test
Post by: Keiro on August 14, 2016, 06:42:07 am
Quote from: Spuds – Added it as a feature request on github ... at least that way its visible as a request.

Can you link me the feature request in question?

I was trying to test e-mail sending again by having someone else send me messages via PMs... so it should've caused the forums to fire off an e-mail. So far, it hasn't and has been producing these in the mail-log:

This is on 1.0.9.

Code: [Select]
 Guest
Apply Filter: Only show the error messages of this URL https://eidolonhost.com/forums/index.php?scheduled=mailq;ts=1471170917
Apply Filter: Only show the errors from this file
File: /chroot/domain.com/html/forums/sources/subs/Mail.subs.php
Line: 1068

... This is starting to seriously aggravate me, yo.
Title: Re: sendmail() test
Post by: emanuele on August 14, 2016, 07:38:14 am
https://github.com/elkarte/Elkarte/issues/2355

Could you please check the mail_queue table, the message_id field what type is it?
Title: Re: sendmail() test
Post by: Keiro on August 14, 2016, 10:49:06 am
Quote from: emanuele – https://github.com/elkarte/Elkarte/issues/2355

Could you please check the mail_queue table, the message_id field what type is it?

Sure. See attached screenshot. And... go figure, I didn't have the right keywords to find issue #2355.

Title: Re: sendmail() test
Post by: emanuele on August 14, 2016, 03:30:15 pm
Okay, let's try to get some more useful error message: open index.php, find:
Code: [Select]
set_error_handler('error_handler');
and move it up before:
Code: [Select]
if (isset($_GET['scheduled']))
I'm not sure, but it should be able to give some more details.
Title: Re: sendmail() test
Post by: ahrasis on August 14, 2016, 07:55:00 pm
And what email are you using again?
Title: Re: sendmail() test
Post by: Keiro on August 14, 2016, 08:21:46 pm
Me? Mailgun.