ysco Posted December 10, 2013 Share Posted December 10, 2013 (edited) Hello,Opened this new thread as the one I already replied on is marked as solved and no one seems to have interest in replying on that thread so I hope this will help to solve my problem.Seems a lot off people still have the same issue that I also have.When I try to send this to friend I got the message "Your e-mail could not be sent. Please check the e-mail address and try again."I already try and replace my modules files with the latest from github and does not solve my problems.I cleared cache and installed the module over and over again.So what can be done more to fix this issue ??Regards,ysco.. Edited December 16, 2013 by ysco (see edit history) Link to comment Share on other sites More sharing options...
Radu Posted December 11, 2013 Share Posted December 11, 2013 do the other emails like order confirmation work ok? Link to comment Share on other sites More sharing options...
NemoPS Posted December 11, 2013 Share Posted December 11, 2013 The github package might be broken, have you tried an official one from the prestashop site? Link to comment Share on other sites More sharing options...
ysco Posted December 11, 2013 Author Share Posted December 11, 2013 (edited) Hello Radu and Nemo1, Thanks for replying ;-) @Radu Yes other emails are working ( except I noticed that the blocknewsletter module does not send the email after someone registered for newsletter) all email template files are there. Contact, order confirmation, and all others working just fine. @Nemo I tried the github package but also the module files from original version 1.5.6.1 and still no go. Regards. ysco.. Edited December 11, 2013 by ysco (see edit history) Link to comment Share on other sites More sharing options...
ysco Posted December 12, 2013 Author Share Posted December 12, 2013 Up. Any help please. Regards, ysco.. Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted December 12, 2013 Share Posted December 12, 2013 If you already use "send to a friend" module version 1.2 from prestashop v.1.5.6.1, it should be no problem. If your prestashop use multiple languages, You might try to check the email template send_to_a_friend.html and send_to_a_friend.txt to make sure this files are available in : ../modules/sendtoafriend/mails/LANG_ISO_CODE/ Link to comment Share on other sites More sharing options...
ysco Posted December 12, 2013 Author Share Posted December 12, 2013 Hello Gonebdg, I do not use multi language, and my email template is there. I have NL and the default EN folders so that can not be the problem, strange is that more people are struggling with this issue. Try't several things and can not understand what is the problem. Regards, ysco.. Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted December 12, 2013 Share Posted December 12, 2013 May i know your Prestashop URL ? Link to comment Share on other sites More sharing options...
ysco Posted December 12, 2013 Author Share Posted December 12, 2013 Hello Gonebdg, My website URL is http://www.gadgetshoponline.nl Thanks for taking the time to have a look. Regards, ysco.. Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted December 12, 2013 Share Posted December 12, 2013 the javascript within your file sendtoafriend-extra.tpl look differentit should be like this (sendtoafriend module v.1.2) <script type="text/javascript"> {literal} $('document').ready(function(){ $('#send_friend_button').fancybox({ 'hideOnContentClick': false }); $('#sendEmail').click(function(){ var datas = []; $('#send_friend_form_content').find(':input').each(function(index){ var o = {}; o.key = $(this).attr('name'); o.value = $(this).val(); if (o.value != '') datas.push(o); }); if (datas.length >= 3) { $.ajax({ {/literal}url: "{$module_dir}sendtoafriend_ajax.php",{literal} type: "POST", headers: {"cache-control": "no-cache"}, data: {action: 'sendToMyFriend', secure_key: '{/literal}{$stf_secure_key}{literal}', friend: unescape(JSON.stringify(datas).replace(/\\u/g, '%u'))},{/literal}{literal} dataType: "json", success: function(result) { $.fancybox.close(); var msg = result ? "{/literal}{l s='Your e-mail has been sent successfully' mod='sendtoafriend'}{literal}" : "{/literal}{l s='Your e-mail could not be sent. Please check the e-mail address and try again.' mod='sendtoafriend'}{literal}"; var title = "{/literal}{l s='Send to a friend' mod='sendtoafriend'}{literal}"; fancyMsgBox(msg, title); } }); } else $('#send_friend_form_error').text("{/literal}{l s='You did not fill required fields' mod='sendtoafriend' js=1}{literal}"); }); }); {/literal} </script> Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted December 12, 2013 Share Posted December 12, 2013 Send to a friend module v.1.2 sendtoafriend.zip Link to comment Share on other sites More sharing options...
ysco Posted December 12, 2013 Author Share Posted December 12, 2013 Hello Gonebdg, That's the one from original ps 1.5.6.1 package. I will try your code in 15 min when I'm home again, will let you know the results. Thanks so far. Regards, ysco.. Link to comment Share on other sites More sharing options...
ysco Posted December 12, 2013 Author Share Posted December 12, 2013 Hello Gonebdg, I downloaded your package and replaced the current send to a friend module but it still not works. I Disabled cache and cleared smarty cache, i also uninstalled the module and then reinstalled it again and still no go. Regards, ysco.. Link to comment Share on other sites More sharing options...
Irfan khan Posted December 13, 2013 Share Posted December 13, 2013 A lot more than thanks for spending time this post and comments and making it useful for us web design dubai Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted December 13, 2013 Share Posted December 13, 2013 You might try to use https for ajax URL Modify file sendtoafriend-extra.tpl if (datas.length >= 3) { $.ajax({ {/literal}url: "{$base_dir_ssl}{$module_dir}sendtoafriend_ajax.php",{literal} ... rest of coding Link to comment Share on other sites More sharing options...
ysco Posted December 13, 2013 Author Share Posted December 13, 2013 @ Gonebdg, I try`t your suggestion but when i try to click on the send button it does nothing. Regards, ysco.. Link to comment Share on other sites More sharing options...
ysco Posted December 16, 2013 Author Share Posted December 16, 2013 Well i solved this strange issue myself. The problem is in the php mailer from prestashop that is not working correct. Orders emails/ contact emails/ and others working with php mail enabled but the module send to a friend and the block newsletter module fails and does not send any emails. Solved this by change php mail to smtp mail and now all is working correct. Regards, ysco.. Link to comment Share on other sites More sharing options...
Recommended Posts