Blogs and Bloggers

Go Back

Form Mailer for ASPX

Ok here it is, this is the begininig I have other options being added to the formmailer, but wanted to get this much out there now.

First place the recaptcha library in a BIN folder on the root of your website

Second place the FormMailer.ascx and FormMailer.ascx.vb in a folder of your choice.

 

Then add the following doe to the top of your aspx form:

<%@ Register src="FormMailer.ascx" tagname="FormMailer" tagprefix="uc1" %>

Make sure the src points to the correct folder

The add the following to the bottom of your form:

<input type="hidden" id="redirect" name="redirect" value="redirect-page" />
<input type="hidden" id="recipient" name="recipient" value="email-to-send-to" /> 
<input type="hidden" id="subject" name="subject" value="Email-subject" />
<input type="hidden" id="sort" name="sort" value="alphabetic" />
<uc1:FormMailer ID="FormMailer1" runat="server" />

 

More settings can be made in the FormMailer.ascx.vb file.

 

Recaptcha Library

FormMailer.ascx

FormMailer.ascx.vb

Facebook Twitter DZone It! Digg It! StumbleUpon Technorati Del.icio.us NewsVine Reddit Blinklist Add diigo bookmark

Comments  1

  • scott t 09 Dec

    Subject  should read  subject   for it to work properly.

    Recaptcha Library  actually tries to download  recaptcha(1).dll

    thats it i think
Post a comment!
  1. Formatting options