ankitgala Posted July 5, 2008 Posted July 5, 2008 Hello My website link is www.buzzpublishing.net there is some problem in tell a friend, when somebody fills tell a freind, the recepient does not get any email. please help me to configure that problem..
CutieCute2 Posted June 24, 2009 Posted June 24, 2009 there is some problem in tell a friend, when somebody fills tell a freind, the recepient does not get any email. I'm working on my second shopping cart at the moment and when I test the tell a friend feature, no emails arrive. I removed it from my first shopping cart because I had the same problem. This indicates to me it is caused by the default setup rather than something I have changed. So, does anyone know why the tell a friend feature does not send emails to the friend?
multimixer Posted June 24, 2009 Posted June 24, 2009 This indicates to me it is caused by the default setup rather than something I have changed. If you look at the tell_a_friend.php, you will find tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); mails are getting send to the $to_email_address from the $from_email_address. Some hosts require that at least one of the mail addresses need to be from the hosting account. You need to change the $from_email_address to be your own. If you want to do this, then define a new lets say $from_email and set it to be the (STORE_OWNER_EMAIL_ADDRESS) You can work out a solution similar to what I did for the contact us form here Just an idea, I don't know if it helps My community profile | Template system for osCommerce - New: Responsive | Feedback channel
CutieCute2 Posted June 25, 2009 Posted June 25, 2009 Some hosts require that at least one of the mail addresses need to be from the hosting account. Thanks for your reply George. Now I understand the problem, I think the best solution will be to 1-enter the store owner's address to be the from email address, and 2-remove the (input) box so the customer cannot enter their email address. For the first task, I guees I need to put (STORE_OWNER_EMAIL_ADDRESS) somewhere but I haven't worked it out yet. Thanks again for your help. Any more assistance will be greatly appreciated.
multimixer Posted June 26, 2009 Posted June 26, 2009 I would 1) Include the $from_email_address into the body of the message $email_body 2) Define a $from_email to be the STORE_OWNERS_EMAIL_ADDRESS 3) Change the tep mail function to send emails using the $from_email instead of _from_email_address Maybe you want the sender of the mail to receive a copy of what he send? You just need to define a $to_email and make it to include the $to_email_address and the $from_email_address The solution is similar like the solution for the contact us form. Just adjust the steps there to the tell_a_friend.php If you want to remove the input box, you need to do it in the html part of the page Don't forgett to backup the original file before doing any changes My community profile | Template system for osCommerce - New: Responsive | Feedback channel
CutieCute2 Posted June 26, 2009 Posted June 26, 2009 The solution is similar like the solution for the contact us form. Just adjust the steps there to the tell_a_friend.php Hi George. Thanks a lot for your help. I will study the contact us page and try to learn enough to fix up my tell a friend page.
CutieCute2 Posted July 17, 2009 Posted July 17, 2009 I would 1) Include the $from_email_address into the body of the message $email_body I haven't looked at a computer for a month, but I've finally had a chance to gt back to this subject. Step 1 seems quite easy just change $email_body = sprintf(TEXT_EMAIL_INTRO, $to_name, $from_name, $product_info['products_name'], STORE_NAME) . "\n\n"; to $email_body = sprintf(TEXT_EMAIL_INTRO, $to_name, $from_name, $from_email_address, $product_info['products_name'], STORE_NAME) . "\n\n"; (Sorry, insert codebox doesn't work on my new computer.)
CutieCute2 Posted July 17, 2009 Posted July 17, 2009 I would 2) Define a $from_email to be the STORE_OWNERS_EMAIL_ADDRESS I have very little idea about this one. I looked at the contact_us page and found the line below. Do I just need to paste this into the tell_a_friend page? $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); or do I need to create a line like this? $from_email = sprintf(TEXT_FROM_EMAIL, $from_email, STORE_OWNERS_EMAIL_ADDRESS);
CutieCute2 Posted July 17, 2009 Posted July 17, 2009 I would 3) Change the tep mail function to send emails using the $from_email instead of _from_email_address Do I need to change tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); to tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email); Thanks in advance for any help?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.