mcksly Posted October 18, 2007 Share Posted October 18, 2007 When the sender and receiver e-mail are from hotmail/yahoo/msn the tell-a-friend e-mails are not being sent (although it says they are sucessfully sent). When I put my store e-mail as the sender e-mail, and a hotmail/yahoo/msn as the receiver or friend it sends fine Is there anyway to hardwire my store e-mail address as the sent e-mail, and disable "your e-mail address" from the tell-a-friend page? leaving only the senders name? Thanks in advance! Link to comment Share on other sites More sharing options...
germ Posted October 18, 2007 Share Posted October 18, 2007 In tell_a_friend.php Fine this code: tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); Change to: tep_mail($to_name, $to_email_address, $email_subject, $email_body, 'me', '[email protected]'); Just change me to the name you want the always mail to be from. And change [email protected] to be the email address you want the mail to always be from. ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
mcksly Posted October 20, 2007 Author Share Posted October 20, 2007 In tell_a_friend.php Fine this code: tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); Change to: Just change me to the name you want the always mail to be from. And change [email protected] to be the email address you want the mail to always be from. ;) Great thanks! Is there anyway to still allow them to put their names in? and have it just be from my address Link to comment Share on other sites More sharing options...
germ Posted October 20, 2007 Share Posted October 20, 2007 Sure, just leave this part of the code unchanged: $from_name Like: tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, '[email protected]'); :) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.