Forums / General Questions / mailto link in emails not working

mailto link in emails not working

Views: 750

Results 1 to 3 of 3
23 Sep 2012, 7:31 PM
#1
ssornai avatar

ssornai

New Zenner

Join Date:
Aug 2012
Posts:
3
Plugin Contributions:
0

mailto link in emails not working

Sorry if this has been addressed, but I can't find it anywhere in the forums. I'm far from expert with code, so please be kind! :smile:

On my emails that are generated by ZenCart, the mailto link has my store url appended to the front of the href. For instance:

In my create_account.php, the EMAIL_CONTACT is defined by a sentence that include the mailto as <a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS ." </a>\n\n" .... seems fine, but:

When the email arrives, that gets changed, and the resulting link becomes <a href="https://domain_name.com/store_directory/mailto:mailbox@domain_name.com" target="_blank">mailbox@domain_name.com </a> </div>

Of course, when the link is clicked, it goes to a 404 since there's no such page as "https://domain_name.com/store_directory/mailto:mailbox@domain_name.com"

My email address is correct in Email Options/Email Address (Displayed to Contact you) and elsewhere. And, for some reason, it is only affecting the STORE_OWNER_EMAIL_ADDRESS in the href, and not the STORE_OWNER_EMAIL_ADDRESS following it, so the address displayed in the email is correct. Only the link connected to it is wrong.

This seems to be happening with all emails coming from ZenCart, and not limited to create_account.php. It happens everywhere STORE_OWNER_EMAIL_ADDRESS is part of an href statement. Any suggestions greatly appreciated!

23 Sep 2012, 10:11 PM
#2
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: mailto link in emails not working

did you manually edit any of the files? what version cart are you using, a link would be helpful too for them to see if there is anything amiss.

is this a fresh install, an upgrade any plugins installed before this started happening.

23 Sep 2012, 10:30 PM
#3
ssornai avatar

ssornai

New Zenner

Join Date:
Aug 2012
Posts:
3
Plugin Contributions:
0

Re: mailto link in emails not working

Up until now, I've been testing via RoundCube as a mail client. Since posting, I've found that it doesn't seem to be happening with Yahoo mail. When I hover over the link in Yahoo mail, it shows the redirect to a compose window appended before the mailto (as it should). For the life of me, I don't know where RoundCube is picking up the url to my store folder rather than to a compose window, but that seems to be what's happening. I'll take it up with my provider and see what they say. Thanks for your help!