I'm using a perl script form that creates allow users to enter info a form field and submit the results. The results are updated to a csv file, which I'm able to convert into an html page. My one and major problem is getting the form results to email to a set of recipients.
I decided to use Matt Wright's FormMail as a sub/secondary-form that will handle emailing the form results to the recipients. I did this by using the following my createcsv.pl perl script
I submitted the form but instead got a "Bad Referer" from FormMail.pl It also told me to add my 'abc.xyz.com' in the @referer, even though it was already there.
I tried moving the $mailresult line above to other sections within the createcsv but keep getting the same "Bad Referer". I've used FormMail.pl to be called from other .pl scripts but never came across this problem.
Anyone can help, it's highly appreciated.