Dave Baker
Thu 13th Jul '00, 12:17pm
I'd like to see the ability to configure vB to have the user's name and email address dropped into the "From:" field in the sendtofriend.php3 template, so that people who receive vB-generated emails with recommended message threads won't inadvertently send their replies (for example, "thanks for your email") to the message boards administrator (which is how sendtofriend.php3 is hard-wired now).
I've hacked mine to have the "From:" field be the name and email address of the user who clicked on the "Send this message to a friend" - here's the changed line in sendtofriend.php3:
mail("\"$sendtoname\" <$sendtoemail>",$emailsubject,$message,"From: \"$fromname via BenefitsBoards.net\" <$fromemail>");
Here's the original line:
mail("\"$sendtoname\" <$sendtoemail>",$emailsubject,$message,"From: \"$bbtitle Messenger\" <$webmasteremail>");
I've hacked mine to have the "From:" field be the name and email address of the user who clicked on the "Send this message to a friend" - here's the changed line in sendtofriend.php3:
mail("\"$sendtoname\" <$sendtoemail>",$emailsubject,$message,"From: \"$fromname via BenefitsBoards.net\" <$fromemail>");
Here's the original line:
mail("\"$sendtoname\" <$sendtoemail>",$emailsubject,$message,"From: \"$bbtitle Messenger\" <$webmasteremail>");