Report abuse email issue

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
Hello,

If someone is submitting any form on the site - contact page, report abuse, i get the email which is fine but the client dont get any type of confirmation email that their message has been sent, they only see the text on the page where they submit the form.

I would think that when someone submits atleast a report abuse page, they should get an email saying the report has been submitted and bla bla bla.. but submitter gets no email confirmation. Just the confirmation text he sees after submitting the form..

Can some one help, atleast for the report abuse page, i need submitter to receive a confirmation email to their email address.

Thanks so much.
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
Thanks for your reply.

this is what i have

This line was there already (line 125 on report_file.html)
Code:
coreFunctions::sendHtmlEmail(SITE_CONFIG_REPORT_ABUSE_EMAIL, $subject, $htmlMsg, SITE_CONFIG_REPORT_ABUSE_EMAIL, strip_tags(str_replace("<br/>", "\n", $htmlMsg)));
I added this below it
Code:
coreFunctions::sendHtmlEmail($reported_by_address, $subject, $htmlMsg, $reported_by_address, strip_tags(str_replace("<br/>", "\n", $htmlMsg)));
Sorry i am not that good with php, This line that i added didnt work for me. Anything i am doing wrong or was i supposed to change another line ?

Thanks
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
This should work

Code:
coreFunctions::sendHtmlEmail(SITE_CONFIG_REPORT_ABUSE_EMAIL, $subject, $htmlMsg, SITE_CONFIG_REPORT_ABUSE_EMAIL, strip_tags(str_replace("<br/>", "\n", $htmlMsg)));
coreFunctions::sendHtmlEmail($reported_by_email, $subject, $htmlMsg, SITE_CONFIG_REPORT_ABUSE_EMAIL, strip_tags(str_replace("<br/>", "\n", $htmlMsg)));
coreFunctions::redirect(WEB_ROOT . '/report_file.' . SITE_CONFIG_PAGE_EXTENSION . '?s=1');