Support Forums

Resend validation emails not being delivered

This is a discussion on Resend validation emails not being delivered within the Technical Support forums, part of the Technical Support Forums category; Hello, I'm having a problem with the "resend" verification emails, and was hoping someone might be able to point me ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 11-04-2009, 11:25 AM   #1
Junior Member
 
Join Date: Jul 2009
Posts: 17
Rep Power: 5
verlierer is on a distinguished road
Default Resend validation emails not being delivered

Hello,

I'm having a problem with the "resend" verification emails, and was hoping someone might be able to point me in the right direction.

I'm getting a lot of people who claim that after clicking the validation link they receive in an email (after initially registering) the login.php page tells them their account is not validated and they are unable to log in. I have gotten a lot of these complaints (30 to 40) but I can't seem to duplicate this problem. It seems to work for me, and has worked for a lot of other users.

But, I can verify that the "resend" validation isn't being delivered. All messages that print to the screen are the default messages if no error has occured. Also, the code is executing, at least, partially because the "uVerify" record is changed for the user after he clicks "resend."

Could this be a problem on the server? Like, the server won't send phpmailer messages to the same address with a certain timeframe? I don't think it could be getting blocked on the client side. I've tested on a couple different email accounts were the Classifieds email is approved. Any ideas?

Thanks
verlierer is offline  
Old 11-04-2009, 11:33 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,290
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

and your 68C version is?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 11-04-2009, 12:48 PM   #3
Junior Member
 
Join Date: Jul 2009
Posts: 17
Rep Power: 5
verlierer is on a distinguished road
Default

I'm using Developer 4.1.6, thanks.
verlierer is offline  
Old 11-04-2009, 02:18 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,290
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Do you have 68C configured in admin to use smtp mail? If not I would do that and see if it helps address the problem.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 11-05-2009, 08:43 AM   #5
Junior Member
 
Join Date: Jul 2009
Posts: 17
Rep Power: 5
verlierer is on a distinguished road
Default

Yes. I'm using SMTP. The initally registration emails are delivered, but the "resend" emails are not.
Thats the most confusing thing, because the two scripts seem to use the exact same "doSend" function in Mailer.php except for the resend first passes through a function which updates the verification code that gets appended to the verification link in the registration email.
verlierer is offline  
Old 11-05-2009, 09:03 AM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,484
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Can you open includes/classes/kernel/Mailer.php and find that doSend function. Next you should see this code:
Code:
return "Message was not sent <br />Mailer Error: " . $this->ErrorInfo;
Change that to echo it out like this:
Code:
echo "Message was not sent <br />Mailer Error: " . $this->ErrorInfo; 
die;
Then try to resend it and it should error out with that message on the screen. Hopefully giving us some more details to go by.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 11-05-2009, 10:32 AM   #7
Junior Member
 
Join Date: Jul 2009
Posts: 17
Rep Power: 5
verlierer is on a distinguished road
Default

Thanks Eric,
I should have thought of that. :-)
I got the following error:
Code:
Message was not sent 
Mailer Error: Language string failed to load: connect_host
At least thats a hint, looks like phpmailer doesn't like something coming from 68c or else some server configuration.
verlierer is offline  
Old 11-05-2009, 10:42 AM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,484
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I found that language string in the phpmailer language file and all it says is this:
SMTP Error: Could not connect to SMTP host.

So my first thought is double check your smtp settings again. If everything looks correct then maybe try to use the standard php mail with smtp turned off or a totally different smtp server. You can use a gmail account for testing.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 11-05-2009, 12:05 PM   #9
Junior Member
 
Join Date: Jul 2009
Posts: 17
Rep Power: 5
verlierer is on a distinguished road
Default

Yeah. I was hoping it was just a matter of my SMTP settings, after I saw I was using "localhost" but changing that to the smtp server name didn't work either.
I turned off smtp, and everything appears to be working using mail(). One thing I missed was the "thank you" email. (the one that gives the user their username and password. That mail also wasn't being delivered using SMTP.
So, I'm glad its now working on a live site, still wondering why SMTP would work for sending the inital registration and the "contact" form but not the "thank you" and "resend" emails? ( I never mentioned that I'm using a hosted (dedicated) LAMP server)
As always, thanks for the help.
verlierer is offline  
Closed Thread

Tags
resend , validation

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation errors Ganineva Templates, HTML, CSS, and Design Help 4 10-01-2009 07:17 PM
How does it get delivered? bowers01 Pre Sales Questions 1 06-03-2008 07:29 AM


All times are GMT -4. The time now is 08:01 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0