Forums
This topic is locked
thankyou for contacting us - can I?
Posted 22 years ago
1
has voted
22 years ago 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 22 years ago
22 years ago Martha Graham replied:
Hi Redleader,
Yes, it can be done? What programming language are you using?
Martha Graham
Dynamic Zones
Yes, it can be done? What programming language are you using?
Martha Graham
Dynamic Zones
Replied 22 years ago
22 years ago Simon Bloodworth replied:
ASP/VBScript.
Red Leader
Red Leader
Replied 22 years ago
22 years ago 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
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 22 years ago
22 years ago Simon Bloodworth replied:
What is the code?
I already have the sendmail setup with cdonts.
Red Leader
I already have the sendmail setup with cdonts.
Red Leader
Replied 22 years ago
22 years ago 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
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