View Full Version : not getting emails for submits
trailblaza
07-11-2005, 07:02 PM
i just installed RC4 this morning & it's great!
the notification emails work just fine for the ppl that submit links.... but whenever i submit a link, i (the administrator) am not receiving an email saying that a new link has been submitted...
any ideas why?
also... are the variables available for the notification emails or just the emailer emails? i tried inserting them for the notifications, but they didn't work
lj.
David
07-11-2005, 07:19 PM
I'm still learning the new stuff with RC4 myself. I'll try to see if I can figure out the answer...
Go to System>Profile and set your notifications.
It is done this way because in future we'll support multiple users.
trailblaza
07-11-2005, 07:39 PM
i did that... but it's still not sending
lj.
Hm... strange... in my tests everything went ok. I've asked David to check on one of his installations too.
Dumb question, I know, but I have to ask: have you also checked that the email set for the admin user is ok?
trailblaza
07-11-2005, 07:52 PM
yup... it's the correct email... i'll keep trying :)
David
07-11-2005, 08:03 PM
Yep, we are working on this now. This could be a bug.
Let me take this opportunity to thank you for helping us debug the script! :twisted:
Don't worry, we'll figure this out soon. :)
trailblaza
07-11-2005, 08:05 PM
no problem :)
it's nothing urgent on my end...
Any anti-spam app on the server that might stop the email?
I'm using BCC to send the admin emails (again, because multiple users will be supported) and that might be a problem with anti-spam apps.
trailblaza
07-11-2005, 08:37 PM
hmm... not that i'm aware of... my anti-spam settings are currently set very low
lj.
David
07-11-2005, 08:45 PM
I did not get the email either, but I am thinking Spam Assassin might have captured it at the server level due to it being BCC. Maybe there is a simple way to make "regular" (or whatever you call "non-BCC"). :lol:
springdot
07-11-2005, 09:32 PM
Hi guys
For my 2 pence - I am not getting emails on submission of new links either.
As far as I'm aware, there is nothing on the server that would stop the email sending, but I can't be 100% sure as it isn't under my control
Thanks
James
Yep, that sounds like a bug.
Can you try use SMTP as emailer method?
Set Emailer Method to SMTP server and fill in your email server address (probably localhost) in Email server field. That should do it.
trailblaza
07-11-2005, 11:06 PM
tried that... didn't get any emails... sent to me or the person submitting the link
lj.
minstrel
07-12-2005, 03:47 AM
I had a problem using phpmailer or SMTP with certain users on my phpBB forum -- the solution was to set the board to use SMTP and then set the SMTP information to just localhost.
Try that and see if it works.
minstrel
07-12-2005, 04:06 AM
Update:
I wasn't getting notifications either so I just tried the "localhost" trick above -- that worked for me.
Update 2:
I'm using the terms sloppily here. Changing to localhost solved a problem with the submitter not getting emails (using dummy sites and my own email addresses as test submitter).
However, the BCC function does NOT seem to be working -- I tried two different email accounts as admin and neither received notifications of any of the test submissions, even though they were different email addresses than the admin addresses.
springdot
07-12-2005, 09:11 AM
I tried the localhost trick above, and that made no difference to me....Whether I use the PHP mailer or SMTP, I get the same results....
The submitter is getting an email to notify them they have submitted to my directory.
I, as the directory admin, do not get one to say someone has submitted a link for me to check....
Thanks
James
trailblaza
07-12-2005, 01:46 PM
ok... i can say that i've officially tested ALL possible email settings...
php mail function --> submitter gets emails, but directory admin does not
smtp (with my mail domain & localhost) --> no emails to anyone
sendmail --> no emails to anyone
and i'm sure that my address is correct, as well as the smtp settings....
also, another thing i noticed... on the submit notification email, the name of the sender (me) is not included in the email's From line.
lj.
springdot
07-12-2005, 02:11 PM
Content visible to registered users only.
I have this happening to me too, although weirdly the name DOES show up on the accept or reject email!
Thanks
James
trailblaza
07-12-2005, 02:13 PM
exactly springdot... same here
lj.
David
07-12-2005, 04:38 PM
Yes, this is a problem. I apologize.
We'll be working on this.
One thing...dcb is getting married and today is his last day here, so please wish him well.
In the meantime, it would be great if we can solve this one as a community. If we don't have this one fixed shortly, I'll pay someone to have a look.
springdot
07-12-2005, 04:48 PM
dcb - Congratulations and good luck for the future! I'm sure everyone here wishes you well..... :)
Everyone else - you got any ideas about the email thing? I've been wracking my brain to think why the name shows up on acceptance/rejection emails but not on the submission ones and I've drawn a blank so far.
As for the other problem, where the directory admin (all of us!) don't get emailed when someone submits a new link, I can only think this is something to do with the specifics of that email. The submitter/owner of the link receives an email, so the actual notification system works. It must be something specific to that particular email.
David - you mentioned BCC earlier - does that mean that when the submitter/owner gets their link submission email, the directory admin is BCC'd on the same email? Or is it a completely separate email, but just with the recipient BCC's on it .
I ask because I know there are some email systems that won't send an email if there are no recipients in the "To" field - perhaps this could be one of those cases?
Cheers
James
David
07-12-2005, 05:02 PM
In includes/functions.php, this is probably the code we need to change:
(starting around line 487)
Content visible to registered users only.
springdot
07-12-2005, 05:36 PM
Could it be this line
Content visible to registered users only.
I notice that the section above creates (I think) the email to the submitter of the link, and it calls the "OWNER_NAME" and "OWNER_EMAIL" variables
Are the admin details entered really called with the "EMAIL" and "NAME" variables, or are they called something different maybe - if these variables don't exist, that would explain why the email wouldn't be sent!
springdot
07-12-2005, 05:58 PM
OK, I have a little more information on this....
Firstly, I checked my unknown email and for each link submitted, I am getting an undeliverable email bounced back to me. In each case, the undeliverable email address is :
a@thefullyqualifiedservername (ie, not the actual domain, but the name of the server itself (it's a shared hosting account)
I'm not sure where the "a" is coming from, but it can't be from my admin email as that is info@MYDOMAIN.
Secondly, I don't think the problem is caused by the BCC'ing of the email, as I changed the line 508 from
Content visible to registered users only.
to
Content visible to registered users only.
and I still receive no email, and get the same bounceback.
Dariusz
07-12-2005, 11:04 PM
I had a problem with the phpmailer but it works with SMTP. At least receive and approve confirmations are working. It did not send a reject email.
There is also a problem with {EMAIL_NAME} and {EMAIL_URL} tags.
They do not show content but show themself instead
I'll see if I can sqeeze some time between my wedding preparations to solve this.
Dariusz here (http://www.phplinkdirectory.com/forum/viewtopic.php?t=252) is a brief explanation of the email templates tags.
springdot, your info is quite usefull. I think that somehow the script tries to send the email at the address "a", hence the server adds the full domain name.
Also for debugging you can go to System>Admin and set Debug to Yes and then add debugging messages in the code with error_log(....);
The log file will be created in the temp folder of the script.
springdot
07-13-2005, 01:59 PM
Hi all
Just one other thing I have noticed - when you accept a link, it emails the owner/submitter, but when you reject a link, no email is sent.
I will turn on the debugging, and see if anything interesting shows up in the logs with my tests
minstrel
07-13-2005, 04:24 PM
springdot, I'm having the same problems.
Re: the lack of a "rejection" email -- isn't this because there is currently no option to reject per se in the admin panel? The options are: accept, edit, or delete.
"Delete" doesn't send a rejection email. I've tried setting the link from "pending" to "invalid" and that doesn't work either.
And... I'm also not getting ANY notifications when a link is submitted. Anyone figure this out yet?
springdot
07-13-2005, 04:35 PM
Well, I was assuming the delete option implies a rejection of the link, and it would be treated as such.
Please let me know if this is wrong!
Cheers
James
springdot, your logic is absolutelly right but I missed that. So, notifications are sent when link is set active or when is set inactive (accept/reject) but not when the link is deleted. Sorry, my mistake, it will be corrected.
Also you should note that notifications are sent only once, no matter how many times you activate/inactivate the link.
springdot
07-13-2005, 10:51 PM
Hi dcb - you are correct in saying that a reject email isn't sent if the link is just deleted, but I think the main issue is still that the directory admin doesn't receive any notification when a new link is submitted.
At least, this is the more important issue from my point of view! I had a look at it yesterday, but couldn't work out quite what was causing it to fail, and haven't had a chance to re-look today yet.
I think we were definitely on the right track though when we are saying that it seems to be emailing a@..... and that is where the email is failing. As far as I am aware though, it is only the email sent to the directory admin to give notification of a new link that sends to a@.... - As far as I can see, there is no email sent at all when a submitted link is just deleted from the directory in the admin panel.
Cheers
James
minstrel
07-14-2005, 03:04 AM
Content visible to registered users only.
No, not for me.
No notification is sent when the link is set inactive. The only time a notification is sent is when the link is set active (approved).
Ap0s7le
07-14-2005, 06:57 AM
Hey all, check this out and see if it helps the problem with admin not getting the emails.
Maybe this is a fix, maybe it isn't. Try her out and tell me what you think. (http://www.phplinkdirectory.com/forum/viewtopic.php?p=1398#1398)
thanks
later
yktan
07-14-2005, 09:04 AM
Great fix Ap0s7le!
However, please note that this line is erronous too:
Content visible to registered users only.
It should be:
Content visible to registered users only.
There is no field in the links table with the name "NAME".
Also, if the submission notification emails you're getting are from "Unknown" email address, have a look at this fix:
http://www.phplinkdirectory.com/forum/viewtopic.php?t=274
yktan
07-14-2005, 09:56 AM
Also, here's a Mod to send out notifications when a link is deleted:
http://www.phplinkdirectory.com/forum/viewtopic.php?t=276
Regards,
YK
springdot
07-14-2005, 12:44 PM
Content visible to registered users only.
Hi yktan - just tried this, and it does exactly what it says on the tin!!
Thanks very much to you, Ap0s7le and achafik for all your help fixing these couple of small bugs the last couple of days....
minstrel
07-14-2005, 03:22 PM
Fixes work as advertised! Thanks, guys! :D
trailblaza
07-14-2005, 03:23 PM
yup :D worked for me
lj.
Ap0s7le
07-14-2005, 05:30 PM
springdot, not a problem. I'm just looking forward to the steak dinner David said you're treating us to. :D
later
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.