Support Forum

Subscription email notification not working

37 Answers

New Answer

MP Mr Papa
Mr Papa
Member

so not really a direct answer…  I was specifically asking about posts via the admin bar vs in topic?  do I interpret your reply to say you get the same result whether you post via admin bar or in the topic?

as to debugging, if you put what I said, die(‘here’); you will get a white screen with just the word ‘here’ on it…  all it really is doing is telling you got to a specific location in the code…  first step is just to see if its trying to send the emails…

CF Conrad_Farlow
Conrad_Farlow
Member

Sorry Steve I never post from the admin bar, in fact at the moment I don’t have it enabled. I will give the debug suggestion a go later tonight.

MP Mr Papa
Mr Papa
Member

okay, thanks for the clarification…

the debugging would be the next step and see if the emails are being sent…  dumb question, but I assume you checked your spam folder? wink

CF Conrad_Farlow
Conrad_Farlow
Member

Dumb questions are entirely appropriate for me Steve but yes I have checked my junk folder. Still not had time to do the debug stuff.

MP Mr Papa
Mr Papa
Member

okay, that is the next step…  find out how where in the process its deviating…

CF Conrad_Farlow
Conrad_Farlow
Member

Steve I have done what you suggested and put a die debug message in sp-subscriptions-components.php and the script is completing the email routine.

Does wordpress keep a log of emails sent anywhere? Or is there a plug-in?

I could use some help with this one now I’m afraid. Do you fancy having a dig around at some point?

Conrad

MP Mr Papa
Mr Papa
Member

so at the bottom of the routine is a line like this:

                    $email_status = sp_send_email($email, __(‘Forum Post’, ‘sp-subs’).’: ‘.substr($topicname, 0, 30).’…’.’ [‘.get_option(‘blogname’).’]’, $msg);

might be different as I have been rewriting this as part of 5.1..

lets see what the return value is….  so right after it, add

ashow($email_status);

die();

and see what is returned…

if that works, then we can go into sp_send_email() and see whats up…

CF Conrad_Farlow
Conrad_Farlow
Member

Steve

Array 
( 
[0] => 1
[1] => Email notification sent 
)

is returned.

MP Mr Papa
Mr Papa
Member

well, that says that wp returned that it sent the email…

so can you look on your server control panel (ie whm or cpanel) and see if the email is stuck?

but not sure what to do since wp says it sent the email…

CF Conrad_Farlow
Conrad_Farlow
Member

I can see some mail folders for the relevant email address using file manager but they appear to mimic my IMAP sent folder. I do not see anything that has been sent any later than the last message I sent using IMAP. In other words nothing sent from WP is showing in there.

We know that the PM notifications are working so I guess I can try that and see if I can see anything.

Conrad

CF Conrad_Farlow
Conrad_Farlow
Member

No idea where they go Steve. The HGK_SMTP Options are working fine because I can send a test mail using it.

CF Conrad_Farlow
Conrad_Farlow
Member

Steve I found an email logging program for WP and sent one test post from HGK and a PM both of which arrived np. I also posted into a subscribed topic and there appears to be duplicate mails being sent. The emails in this case are not being sent.

Conrad

PS next post has correct screen grab. I can’t remove the other attachment.

YS Yellow Swordfish
Yellow Swordfish
Member

Are the emails correctly formed?
Are you simply saying they are not being sent once they arrive at your mail server? Maybe it would be worth talking to your host if that is the case…?

CF Conrad_Farlow
Conrad_Farlow
Member

That is exactly what I decided to do Andy. They are looking at it as we speak.

I have a feeling that for some reason the server is just not accepting the email formatting as it is sent from WP. However I am a bit concerned that there appears to be duplicate posts from the subscribe plug-in. Any ideas what that might be?

Conrad