cdonts to send to form email address?

G

Guest

It must be easy... I am using cdonts to send a FP form to a database and also
by email to myself.

I would like to Cc it to the email field within the form so that a copy goes
to that address as well. so the code would be:

objCDOMail.Cc = ???????????

Any ideas would be apreciated.

Raymondo
 
T

Thomas A. Rowe

In your IE address bar type:

? Sending Email with CDONTS

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Don't think I did not do a search before posting! But none of the responses
helped.

Perhaps someone else knows the answer and can help?

Raymondo
 
T

Thomas A. Rowe

Here is the first result I got doing the search I indicated:

http://digitalcolony.com/01/cdonts/

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

Post your current code for your form and CDONTS script.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Yes I had looked at the digitalcolony site but there was nothing that helped.
Here' the code you requested, thank you for the offer to look at it....

Heres the relevent form code:

form action="--WEBBOT-SELF--" method="POST" name="FrontPage_Form1"
onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
<!--webbot bot="SaveDatabase" startspan SuggestedExt="asp"
U-ASP-Include-Url="../../_fpclass/fpdbform.inc" S-DataConnection="postjob"
S-RecordSource="Results" U-Database-URL="../../fpdb/postjob.mdb"
U-Confirmation-Url="http:www.mysite.com/confirming.asp"
S-Builtin-Fields="HTTP_USER_AGENT REMOTE_HOST Timestamp REMOTE_USER"
S-Builtin-DBFields="Browser_type Remote_computer_name Timestamp User_name"
S-Form-Fields="Company Email Contact"
S-Form-DBFields="Company Email Contact" --><input TYPE="hidden"
NAME="VTI-GROUP" VALUE="0"><!--#include
file="../../_fpclass/fpdbform.inc"--><!--webbot
bot="SaveDatabase" endspan -->
......
<input maxLength="80" size="67" name="Company" onkeypress="return
handleEnter(this, event)"style="font-weight: bold"></td>
</tr>
<tr>
<td valign="top" align="left" width="80"><font face="Arial"><b><font
size="2">Contact Name</font></b><font size="2">:</font></font></td>
<td valign="bottom">
<input type="text" name="Contact" onkeypress="return handleEnter(this,
event)" size="76"></td>
</tr>
<tr>
<td valign="top" align="left" width="80"><b><font size="2"
face="Arial">Contact Email:</font></b></td>
<td valign="bottom">
<input type="text" name="Email" onkeypress="return handleEnter(this,
event)" size="76">
</td>
</tr>


Here's the cdonts code:

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.To = "(e-mail address removed)
objCDOMail.CC = ?????????????
objCDOMail.From = "(e-mail address removed)"
objCDOMail.Subject = "Confirming your posting on my Website"
For Each item in FP_SavedFields
strBody = strBody & item & ": " & FP_SavedFields(item) & VbCrLf
Next
objCDOMail.Body = strBody
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Send
Set objCDOMail = Nothing
%>

Thanks!

Ramondo
 
T

Thomas A. Rowe

ToEmail = Request.Form("Email")

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.To = "(e-mail address removed)
objCDOMail.CC = ToEmail
objCDOMail.From = "(e-mail address removed)"
objCDOMail.Subject = "Confirming your posting on my Website"
For Each item in FP_SavedFields
strBody = strBody & item & ": " & FP_SavedFields(item) & VbCrLf
Next
objCDOMail.Body = strBody
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Send
Set objCDOMail = Nothing
%>

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Thanks for your speedy reply, tried it but it did not seem to work. Sent an
email back to me (as before) but the Cc just had Email in the Cc address
line.

As the cdonts procedure is on a confirmation page and there is another form
within the confirmation page I guess it is getting confused. Do we need to
specify the form name and path?

Raymondo
 
T

Thomas A. Rowe

What page is the CDONTS code on the first page after the form is submitted or a later page?
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

That would be the first page - the confirmation page that is mentioned in the
form properties.
 
T

Thomas A. Rowe

You really need to hand code this and not use the FP database components, because the example I gave
you should work, as long as the form field are being submitted to the confirmation page.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Ok, Thanks for your help.

Thomas A. Rowe said:
You really need to hand code this and not use the FP database components, because the example I gave
you should work, as long as the form field are being submitted to the confirmation page.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
S

Stefan B Rusynko

PS
and it won't work unless (e-mail address removed) is a valid mailbox at your hosted site

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|
|
| ToEmail = Request.Form("Email")
|
| Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
| objCDOMail.To = "(e-mail address removed)
| objCDOMail.CC = ToEmail
| objCDOMail.From = "(e-mail address removed)"
| objCDOMail.Subject = "Confirming your posting on my Website"
| For Each item in FP_SavedFields
| strBody = strBody & item & ": " & FP_SavedFields(item) & VbCrLf
| Next
| objCDOMail.Body = strBody
| objCDOMail.BodyFormat = 0
| objCDOMail.MailFormat = 0
| objCDOMail.Send
| Set objCDOMail = Nothing
| %>
|
| --
| ==============================================
| Thomas A. Rowe (Microsoft MVP - FrontPage)
| ==============================================
| If you feel your current issue is a results of installing
| a Service Pack or security update, please contact
| Microsoft Product Support Services:
| http://support.microsoft.com
| If the problem can be shown to have been caused by a
| security update, then there is usually no charge for the call.
| ==============================================
|
| | > Yes I had looked at the digitalcolony site but there was nothing that helped.
| > Here' the code you requested, thank you for the offer to look at it....
| >
| > Heres the relevent form code:
| >
| > form action="--WEBBOT-SELF--" method="POST" name="FrontPage_Form1"
| > onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
| > <!--webbot bot="SaveDatabase" startspan SuggestedExt="asp"
| > U-ASP-Include-Url="../../_fpclass/fpdbform.inc" S-DataConnection="postjob"
| > S-RecordSource="Results" U-Database-URL="../../fpdb/postjob.mdb"
| > U-Confirmation-Url="http:www.mysite.com/confirming.asp"
| > S-Builtin-Fields="HTTP_USER_AGENT REMOTE_HOST Timestamp REMOTE_USER"
| > S-Builtin-DBFields="Browser_type Remote_computer_name Timestamp User_name"
| > S-Form-Fields="Company Email Contact"
| > S-Form-DBFields="Company Email Contact" --><input TYPE="hidden"
| > NAME="VTI-GROUP" VALUE="0"><!--#include
| > file="../../_fpclass/fpdbform.inc"--><!--webbot
| > bot="SaveDatabase" endspan -->
| > .....
| > <input maxLength="80" size="67" name="Company" onkeypress="return
| > handleEnter(this, event)"style="font-weight: bold"></td>
| > </tr>
| > <tr>
| > <td valign="top" align="left" width="80"><font face="Arial"><b><font
| > size="2">Contact Name</font></b><font size="2">:</font></font></td>
| > <td valign="bottom">
| > <input type="text" name="Contact" onkeypress="return handleEnter(this,
| > event)" size="76"></td>
| > </tr>
| > <tr>
| > <td valign="top" align="left" width="80"><b><font size="2"
| > face="Arial">Contact Email:</font></b></td>
| > <td valign="bottom">
| > <input type="text" name="Email" onkeypress="return handleEnter(this,
| > event)" size="76">
| > </td>
| > </tr>
| >
| >
| > Here's the cdonts code:
| >
| > Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
| > objCDOMail.To = "(e-mail address removed)
| > objCDOMail.CC = ?????????????
| > objCDOMail.From = "(e-mail address removed)"
| > objCDOMail.Subject = "Confirming your posting on my Website"
| > For Each item in FP_SavedFields
| > strBody = strBody & item & ": " & FP_SavedFields(item) & VbCrLf
| > Next
| > objCDOMail.Body = strBody
| > objCDOMail.BodyFormat = 0
| > objCDOMail.MailFormat = 0
| > objCDOMail.Send
| > Set objCDOMail = Nothing
| > %>
| >
| > Thanks!
| >
| > Ramondo
| >
| > "Thomas A. Rowe" wrote:
| >
| >> Here is the first result I got doing the search I indicated:
| >>
| >> http://digitalcolony.com/01/cdonts/
| >>
| >> --
| >> ==============================================
| >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| >> ==============================================
| >> If you feel your current issue is a results of installing
| >> a Service Pack or security update, please contact
| >> Microsoft Product Support Services:
| >> http://support.microsoft.com
| >> If the problem can be shown to have been caused by a
| >> security update, then there is usually no charge for the call.
| >> ==============================================
| >>
| >> | >> > Don't think I did not do a search before posting! But none of the responses
| >> > helped.
| >> >
| >> > Perhaps someone else knows the answer and can help?
| >> >
| >> > Raymondo
| >> >
| >> > "Thomas A. Rowe" wrote:
| >> >
| >> >> In your IE address bar type:
| >> >>
| >> >> ? Sending Email with CDONTS
| >> >>
| >> >> --
| >> >> ==============================================
| >> >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| >> >> ==============================================
| >> >> If you feel your current issue is a results of installing
| >> >> a Service Pack or security update, please contact
| >> >> Microsoft Product Support Services:
| >> >> http://support.microsoft.com
| >> >> If the problem can be shown to have been caused by a
| >> >> security update, then there is usually no charge for the call.
| >> >> ==============================================
| >> >>
| >> >> | >> >> > It must be easy... I am using cdonts to send a FP form to a database and also
| >> >> > by email to myself.
| >> >> >
| >> >> > I would like to Cc it to the email field within the form so that a copy goes
| >> >> > to that address as well. so the code would be:
| >> >> >
| >> >> > objCDOMail.Cc = ???????????
| >> >> >
| >> >> > Any ideas would be apreciated.
| >> >> >
| >> >> > Raymondo
| >> >> >
| >> >> >
| >> >>
| >> >>
| >> >>
| >>
| >>
| >>
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top