Forums

This topic is locked

thankyou for contacting us - can I?

Posted 20 Sep 2002 12:54:13
1
has voted
20 Sep 2002 12:54:13 Simon Bloodworth posted:
When someone fills in a form on my site, and they click submit, can i do it so that not only does it come to me, but also sends the user an email saying something like thankyou for contacting us, we are dealing with your enquiry?

Can this be done?

Red Leader

Replies

Replied 20 Sep 2002 13:59:51
20 Sep 2002 13:59:51 Martha Graham replied:
Hi Redleader,

Yes, it can be done? What programming language are you using?

Martha Graham
Dynamic Zones
Replied 20 Sep 2002 14:15:35
20 Sep 2002 14:15:35 Simon Bloodworth replied:
ASP/VBScript.

Red Leader
Replied 20 Sep 2002 14:25:23
20 Sep 2002 14:25:23 Martha Graham replied:
If I can remember how to do this, I did this once.

Where you have in your code that it sends you an email, in the same fashion you can add another line of code to send an email to the user too.
Right underneath.

Hope this helps.

Martha Graham
Dynamic Zones
Replied 20 Sep 2002 14:32:40
20 Sep 2002 14:32:40 Simon Bloodworth replied:
What is the code?

I already have the sendmail setup with cdonts.

Red Leader
Replied 20 Sep 2002 14:48:58
20 Sep 2002 14:48:58 Martha Graham replied:
Hi Redleader,

Use the CDONTS new mail.
Here is the code:

Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
On Error Resume Next
With objMail
.From = from
.To = mailto
.Bcc = bcc
.Subject = subject
.Body = message
.Send

I hope this makes sense. Use the Bcc for your email or you can repeat this code to send to the second email.

Martha Graham
Dynamic Zones

Reply to this topic