PDA

View Full Version : In need of desperate help please



magicman
09-03-2007, 09:13 PM
ok, im so close to launching our site, but i have hit a road block. we have a simple form on our home page, its the dada mail script so customers can subscribe to our list. What i am trying to accomplish is a hidden field which will also send their request to one of our email addresses which has an autoresponder, which in turn will send them back a free report which we are offering. I inserted a hidden field and put the correct values i think. Can someone please take a look at it and see why its not working? here is the code:

<form action="http://magiciansgallery.com/cgi-bin/dada/mail.cgi" method="get">
<div align="center">
<input name="mail_to" type="hidden" id="mail_to" value="mailto:freereport@magiciansgallery.com" />
<input type="hidden" name="list2" value="magiciansgallery" />
<input type="hidden" name="f2" value="subscribe" />
<input type="text" name="email2" value="email address" size="16" onfocus="this.value='';" maxlength="1024" />
<input type="submit" value="Sign me up!" />
</div>
</form>

rolling
09-04-2007, 08:55 AM
My guess would be that dada mail's CGI script doesn't know what to do with the mail_to field.

Rather than embedding this information in the form where spammers can get at it, you might be able to do this by creating a distribution alias within your site manager, or by incorporating the Dada-ised Formmail extension (http://mojo.skazat.com/support/documentation-dada-2_10_15/Dada-ized_FormMail_README.pod.html).

rolling
09-07-2007, 06:59 AM
Ok, I have installed the formmail script on my server and it is working correctly. But what i need to do is send an autoresponse to my customers that enter their email addresses in the form. There is an autoresponder set up for the "recipient" in the code but it doesnt seem to be working. Can someone look at the code below and tell me what im doing wrong or suggest another way to do this if it doesn't work with this script?

<form method="post" action="http://magiciansgallery.com/cgi-bin/dada/extensions/FormMail/FormMail.pl">
<input type="hidden" name="recipient" value="freereport@magiciansgallery.com" />
<input name="subject" type="hidden" id="subject" value="Free_Report" />
<input name="redirect" type="hidden" id="redirect" value="http://www.magiciansgallery.com" />
<input name="feedback" type="text" value="email address" />
<input type="submit" value="Sign me up!" />
</form>

Sorry for the late answer, but I've been really busy with other things of late. I've finally had the chance to look into this a bit more.


How did you set up your autoresponder?
What happens if you email the autoresponder directly?
Dada mail can be configured to send confirmation of list messages to the list owner. You could write a procmail recipe to handle the auto response for you.
The default auto reply messages are saved in /etc/virt_users/$USER/.__msgfile__ You can set this up by logging in to http://www.magiciansgallery.com/users/ as the Auto Reply user and then selecting email/ftp setup. Select Auto Reply from the menu on the left.