SMFHacks.com

Modifications/Themes => Modifications Talk => Latest Mods => Topic started by: chefe on November 02, 2007, 10:06:47 pm

Title: User Email hack question
Post by: chefe on November 02, 2007, 10:06:47 pm
Hi,
I've installed User Email 1.2 on my SMF 1.1.4, everything works fine - thank you for the hack.
There's one thing I'd like to change:
When a user sends an email using the form, the average recipient will tend to reply to that email, so the Admin will receive the reply instead of the sender.
It would be good if the sender was required to input an email address when filling out the form for replies to be sent to.
How could I do this?
Thanks for your help
 
Title: Re: User Email hack question
Post by: chefe on November 05, 2007, 03:42:48 pm
I think I was just lucky here  ;D
Here's what I managed after some trial and error - it seems to work:

in User_Email.php, find:
Code: [Select]
$m .=  strip_tags($message);
replace with:
Code: [Select]
$m .=  strip_tags($message). "\n";
$m .= $txt['user_email_answerto'] . $sec_email . "\n";

In Modifications.english.php, add:
Code: [Select]
$txt['user_email_answerto'] = 'To reply to this message please write to: ';
This is a partial solution to my problem, because if someone just hits reply it's still the admin that receives the email.
Title: Re: User Email hack question
Post by: treasurenet on December 16, 2007, 05:30:06 am
I agree, I would also REALLY like the reply-to, be the sender of the message!!!!
Title: Re: User Email hack question
Post by: treasurenet on December 22, 2007, 07:40:32 pm
no luck adding the sender to the reply to field?   :-\
Title: Re: User Email hack question
Post by: SMFHacks on December 22, 2007, 10:52:23 pm
Add it to the mod tracker it will go on my list of mod updates to do at a later date
http://www.smfhacks.com/index.php?action=modtracker
Title: Re: User Email hack question
Post by: treasurenet on December 23, 2007, 08:46:40 am
uh oh, I did that - then noticed I was basically saying what someone else said back in September.   :P

When I tried to edit my entry, I just got the tiny portal stuff, and nothing else, no way to edit or delete it!
Title: Re: User Email hack question
Post by: jchopick on February 04, 2008, 05:31:30 pm
Hello,

 Has anyone come up with a solution for this major issue? When user hit reply I get the email not the person it was intended for.  Help!!!



JEFF
Title: Re: User Email hack question
Post by: SMFHacks on February 04, 2008, 09:07:14 pm
Hello,

 Has anyone come up with a solution for this major issue? When user hit reply I get the email not the person it was intended for.  Help!!!



JEFF
Just released an update to fix this issue
Title: Re: User Email hack question
Post by: jchopick on March 21, 2008, 12:37:18 pm
Hello,

    Today I uninstalled version 1.2 and installed 1.3, but I do not get the field for Your Email Still...Help





Jeff
Title: Re: User Email hack question
Post by: SMFHacks on March 21, 2008, 06:45:11 pm
A field was not added it just changes were the email is sent from using the user's email address.
Title: Re: User Email hack question
Post by: jchopick on March 25, 2008, 11:18:25 am
Hello,

     After removing and reinstalling updated files it is now working as it should. Thanks for creating the Fix. Jeff