Upgraded to EE 2.2.1 / The get’s send to the email address the user enters in the form, but not to email address specified with the hidden recipients=”#” parameter.
Thanks for your help. markus
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
August 05, 2011 6:51am
Subscribe [3]#1 / Aug 05, 2011 6:51am
Upgraded to EE 2.2.1 / The get’s send to the email address the user enters in the form, but not to email address specified with the hidden recipients=”#” parameter.
Thanks for your help. markus
#2 / Aug 06, 2011 6:44pm
Hello Markus,
I’m sorry to see this stopped working for you. Is there anyway you can post your template code? Of course, feel free to use dummy addresses in the recipients parameter. Are you running any add-ons? If so, are those up-to-date as well? I’ll try to replicate your issue in the meantime.
Cheers!
#3 / Jan 04, 2012 4:45pm
Hi,
I have exactly the same problem. My code is
{exp✉️tell_a_friend charset="{charset}” allow_html=‘no’ channel=”{my_channel}” recipients=“[email protected]” redirect=“5” return=”|Zurück zum Artikel”}
Running v2.3.1 - Build: date 20111017 with a lot of addons:
assets
cp_analytics
dry_accessible_captcha
firemail
gwcode_categories
navee
playa
template_variables
tracker
twitter_timeline
wygwam
afaik it never worked since I moved to EE 2.1.x
Is there any advice for me?
Thanks a lot!
#4 / Jan 05, 2012 6:09pm
Hi lehrerfreund,
Can you provide more of the template that you are using for your Tell-a-frined form? Have you made sure the Email Module is installed in Add-ons->Modules? Can you send email inside the Control Panel using the form at Tools-> Communicate?
#5 / Jan 05, 2012 6:22pm
Hi Dan,
here is a more complete, but somewhat reduced part of the tell-a-friend-template (you need more? 😊 I translated a little bit to make it more understandable.
{exp:channel:entries channel="{my_channel}" limit="1" disable="member_data|trackbacks|pagination|categories|custom_fields"}
<h2>Recommend entry</h2>
<p>Send entry <strong><a href="http://{title_permalink=%27{my_template_group}/1s%27}/{entry_id}/" title="{htmlcomment}">{title}</a></strong> via mail. <br />
{/exp:channel:entries}</p>
<p>{exp:email:tell_a_friend charset="{charset}" allow_html='no' channel="{my_channel}" recipients="[email protected]" redirect="5" return="|back to article"}<br />
<span>your mail</span></p>
<p><input type="text" id="from" name="from" size="70" maxlength="35" value="{member_email}" /></p><br />
<span>your name:</span></p>
<p><input type="text" id="name" name="name" size="70" maxlength="35" value="{member_name}" /></p><br />
<span>to</span></p>
<p><input type="text" id="to" name="to" size="70" maxlength="180" /></p><br />
<span>subject:</span></p>
<p><input type="text" id="subject" name="subject" size="70" value="I recommend: {title}" /></p><br />
<span>message</span></p>
<p><textarea id="message" name="message" rows="18" cols="70"><br />
hi,<br />
i recommend this entry:<br />
---<br />
{summary}<br />
---<br />
read whole entry at<br />
{permalink={my_template_group}/1s}<br />
</textarea></p></p>
<p><input name="submit" type='submit' value='Abschicken' /></p><br />
{/exp:email:tell_a_friend}E-Mail-module is installed; if I use the tell-friend-form it works, just the BCC is not send.
#6 / Jan 06, 2012 5:13pm
lehrerfreund,
Is there anyway I can get in for a closer look? Be on the lookout for an email from me.
Cheers!
#7 / Jan 07, 2012 3:53pm
Thanks Dan, relevant data is on its way!
#8 / Jan 10, 2012 7:24pm
lehrerfreund,
Excellent.
To let everyone know, we will be working with lehrerfreund behind the scenes and post back here when we have a resolution.
#9 / Jan 13, 2012 3:29pm
Hi lehrerfreund,
I’ve logged in and went through some troubleshooting. At this point, I’m going to bring in one of our developers to get a better idea of what might be preventing this from working as expected.
Thanks for your patience!
#10 / Jan 13, 2012 5:07pm
Hrm- I think it’s a bug, basically double encoding the recipients in the tell-a-friend form.
Can you try this? Go to system/expressionengine/modules/email/mod.email.php and look around line 351:
$tagdata = str_replace($LB, "\n", $tagdata);
//$recipients = $this->_encrypt_recipients($recipients);
$allow = ($allow_html !== FALSE) ? TRUE : FALSE;
return $this->_setup_form($tagdata, $recipients, 'tellafriend_form', $allow);You’ll note in the above that I have commented out a line by putting // in front of it. Edit to match- just add the // before $recipients = $this->_encrypt_recipients($recipients);.
Does it work for you now?
#11 / Jan 19, 2012 8:30pm
Hi Robin,
nice to have you again on my server 😊
I commented out the line with //$recipients ... but this doesn’t work. You can try yourself, I added you with “recipients=‘[email protected],[email protected]’ “. Example-link could be : http://www.lehrerfreund.de/in/schule/tell_friend/3608
#12 / Jan 19, 2012 8:33pm
Mh, the code there looks a litte different from yours. It’s for me at line 370:
$tagdata = str_replace($LB, "\n", $tagdata);
// $recipients = $this->_encrypt_recipients($recipients); // this is the line which i commented out
$allow = ($allow_html == 'y') ? TRUE : FALSE;
return $this->_setup_form($tagdata, $recipients, 'tellafriend_form', $allow);It seems to have the same functionality, just wanted to let you know.
#13 / Jan 20, 2012 6:29am
Some add-on:
I just got a copy of a mail a user sent via the tell-friend-form.
But when I try myself (recommending from mail-adress1 to mail-adress2 which I both own, blind copy in the tell-friend-tag to mail-adresse3) I always get only ONE mail - I guess it’s the one which I enter into the field “to”.
#14 / Jan 23, 2012 1:33pm
And last remark, 3 days later:
It seems that it works now. I get notifications about people sending recommendation-mails. I still have not been able to get TWO mails. When I recommend a page to a mailaddress which I own, I don’t get the notification to the webmaster (for sure I tried in logged-out status).
So this is a bit strange.
(Robin, I deleted your mail from my template, just log in yourself and change it when necessary).
#15 / Jan 26, 2012 7:45pm
Hey lehrerfreund,
I’m not entirely sure where you are here. Are you satisfied, or would like Robin and I to keep looking at this?
Thanks!