No Email Form in Contact us.

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

No Email Form in Contact us.

Post by Mike718NY » Sat Jul 05, 2008 11:00 am

Is there an Email Form (using textboxes) on the Contact Us page?
I dont' see one and I'm surprised it's not there.
Has anyone added one to this page? I'm guessing it wouldn't be that hard to do.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: No Email Form in Contact us.

Post by jmestep » Sat Jul 05, 2008 6:26 pm

I made a separate page for one instead of trying to add one to that page. It actually took a couple of hours by the time I got the user controls, the formatting, the field input validation, the other coding done. The next one wasn't as difficult.
Here's one:
http://www.directpaintball.com/contact.aspx

Here's another form I've done that sends an email:
http://www.gravesitemasters.com/funerallisting.aspx
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: No Email Form in Contact us.

Post by Mike718NY » Sun Jul 06, 2008 9:49 am

Did you use a AC7 utility class or function to send the email or did you
just code the whole thing like: SmtpClient mailClient = new SmtpClient .. etc?

User avatar
m_plugables
Commander (CMDR)
Commander (CMDR)
Posts: 149
Joined: Tue Mar 11, 2008 12:44 am
Contact:

Re: No Email Form in Contact us.

Post by m_plugables » Mon Jul 07, 2008 3:32 am

You can use the following as a refferance

Code: Select all

Admin/Store/EmailTemplates/SmtpSettingsDialog.ascx
This control contains some test email code.
i have posted a control for test purpose in the following post
viewtopic.php?f=45&t=7414
you can use it for reference as well
Image
Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: No Email Form in Contact us.

Post by jmestep » Mon Jul 07, 2008 7:45 am

Here is code I used to send the email after I collected the info from the form:
protected void SendButton_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
System.Net.Mail.MailMessage mailMessage = new System.Net.Mail.MailMessage();
mailMessage.From = new System.Net.Mail.MailAddress(txtEmail.Text);
mailMessage.To.Add("orders@directpaintball.com");
mailMessage.Subject = StringHelper.StripHtml(DropDownList1.SelectedItem.Text);
mailMessage.Body = StringHelper.StripHtml(txtMessage.Text);
mailMessage.IsBodyHtml = false;
EmailClient.Send(mailMessage);
SentMessage.Text = "Thank you for your imput. A email has been sent to DirectPaintball";
SentMessage.Visible = true;
}
}
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply