Page 1 of 1

Lost Password emails failing?

Posted: Sun Jan 23, 2011 12:44 pm
by sfeher
OK -- This one is strange.
Imported an existing 5.5 store into 7.0.6. AC Dataport worked like a champ. Things are going great.

Noticed over this weekend that users cannot get access to the passwords -- the 'lost password' email template appears to be totally failing.
1.) I have the general email settings correct and working.
2.) I am set to authenticate, no problem.
3.) I have the port designation correct and the test of the configuration comes through perfectly.

When I go through the login.aspx page to have my password resent to me, though, there is never an email generated by the server. Nothing arrives at the mail server -- there is absolutely nothing in the logs. I've tested for my own account (Super User), another user account, a customer account, and a brand-new account that was just created today. Nothing ever generates a mail object on the server.

Any recommendations? I'm not sure where to look next as the 'config' sure seems to work just fine.

Re: Lost Password emails failing?

Posted: Sun Jan 23, 2011 12:46 pm
by sfeher
Also noted that the Email a Friend is working just great too ....
Maybe the Lost Password template is bad??

Is there a good place to obtain the default email templates?

Re: Lost Password emails failing?

Posted: Sun Jan 23, 2011 12:51 pm
by jmestep
In order to get them, you have to have an install were particular data was imported when the site was installed. We do that on a test site, then keep the templates for use on others.
I've attached the ones for 7.0.6.

Re: Lost Password emails failing?

Posted: Sun Jan 23, 2011 1:17 pm
by sfeher
Thanks Judy ----
I'll install and see if that helps!

Re: Lost Password emails failing?

Posted: Sun Jan 23, 2011 1:40 pm
by sfeher
No luck, Judy -- the password reminder form still never sends out anything.
I'm thinking that it has to be deeper in the code.

Again -- the configuration test works just fine.

I tried something else --- If I navigate to a user through the ADMIN panel and find an account (used my admin account, of course) I can choose to email that user. I can then select the "Lost Password" link and choose to send that template. When I do this --- the email sends PERFECTLY.

So -- apparently the issue is somewhere in the login.aspx page and codebehind that would make the public-facing use of that template fail.

Mazhar? Naveed? Anyone at AC have any input on this?

AbleCommerce 7.0.6 build 14312

Re: Lost Password emails failing?

Posted: Sun Jan 23, 2011 1:43 pm
by sfeher
Maybe I spoke too soon ---
PERFECT is not quite right.

When I send the Lost Password email template from the Admin user interface, I do NOT actually get the right content in the email. The NVelocity field for the actual password link is not showing the correct link. I get :
${resetPasswordLink}
and not an actual link that a user can click on to get back to the site and reset their account.

Re: Lost Password emails failing?

Posted: Mon Jan 24, 2011 4:22 am
by plugables
I think the Lost password email is not supposed to be sent from Admin side. The user must request it from the store's lost password page. If you are an admin and want to send this to a user you can go to that page and initiate the request on behalf of the user.

Re: Lost Password emails failing?

Posted: Mon Jan 24, 2011 7:30 am
by jmestep
I don't have a live test site to actually check the email, but the lost password template is the same as an older one and it generates the link fine, like
http://localhost/able14312test1/Passwor ... 7qYSdMUznG

That stores the Check string in the comment field in the ac_Users table user record. See if you have any text there. Also,it could be a spam blocker - I've had that happen before. Take the nVelocity out of the email template and see what happens after you send it that way.

Re: Lost Password emails failing?

Posted: Mon Jan 24, 2011 7:53 am
by sfeher
Thanks for the input - I was really concerned that the spam filtering might have been the issue, but I run the mail server also for this domain and I can see no instance of a mail object even being created to send out, much less being blocked by the filter. I've turned the filter off completely and still no email. I've even whitelisted the entire domain with a wildcard (*@domain.com) and it didn't arrive. I'm pretty confident that it's not the filtering.

Re: Lost Password emails failing?

Posted: Mon Jan 24, 2011 10:04 pm
by sfeher
Ok - I finally figured this one out.
I always understood that some event triggers were really not going to be used because certain emails (the lost password and the email a friend come to mind) would only be triggered by actual customer intervention, not by a real 'event' in the code. However, that's not quite true. The Lost Password email still requires that the 'trigger' of the event of "Customer requested password assistance". As soon as I added that trigger, then the email comes through immediately.

That's kind of a hassle -- but I'm glad I figured that point out.