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.
No Email Form in Contact us.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: No Email Form in Contact us.
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
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
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
Re: No Email Form in Contact us.
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?
just code the whole thing like: SmtpClient mailClient = new SmtpClient .. etc?
- m_plugables
- Commander (CMDR)
- Posts: 149
- Joined: Tue Mar 11, 2008 12:44 am
- Contact:
Re: No Email Form in Contact us.
You can use the following as a refferance
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
Code: Select all
Admin/Store/EmailTemplates/SmtpSettingsDialog.ascx
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
Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: No Email Form in Contact us.
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;
}
}
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
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