Is this CDO as opposed to CDONT

S

SS

Hi

I have the following script which I thought was CDONT's but looking at the
script it might be CDO?

<%

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")

objCDOMail.To = "(e-mail address removed)"

objCDOMail.From = "NewCallLogger"

objCDOMail.Subject = FP_SavedFields("ManAuthorise")

strBody = strBody & "ID: " & FP_SavedFields("ID") & VbCrLf



I've tried changing it to the following and the information goes through to
the database but not the mail account



<%



Set objMessage = CreateObject("CDO.Message")

objMessage.To = "(e-mail address removed)"



objMessage.From = "NewCallLogger"

objMessage.Subject = FP_SavedFields("ManAuthorise")

strBody = strBody & "ID: " & FP_SavedFields("ID") & VbCrLf

but to no avail?



Any ideas would be great?



Cheers Shona
 
S

Stefan B Rusynko

For a tutorial on CDO see
http://www.interlacken.com/winnt/tips/tipshow.aspx?tip=46

PS
It won't send mail until you add a send command

--

_____________________________________________
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
_____________________________________________


| Hi
|
| I have the following script which I thought was CDONT's but looking at the
| script it might be CDO?
|
| <%
|
| Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
|
| objCDOMail.To = "(e-mail address removed)"
|
| objCDOMail.From = "NewCallLogger"
|
| objCDOMail.Subject = FP_SavedFields("ManAuthorise")
|
| strBody = strBody & "ID: " & FP_SavedFields("ID") & VbCrLf
|
|
|
| I've tried changing it to the following and the information goes through to
| the database but not the mail account
|
|
|
| <%
|
|
|
| Set objMessage = CreateObject("CDO.Message")
|
| objMessage.To = "(e-mail address removed)"
|
|
|
| objMessage.From = "NewCallLogger"
|
| objMessage.Subject = FP_SavedFields("ManAuthorise")
|
| strBody = strBody & "ID: " & FP_SavedFields("ID") & VbCrLf
|
| but to no avail?
|
|
|
| Any ideas would be great?
|
|
|
| Cheers Shona
|
|
|
|
 
S

SS

Thanks

Can you tell me does the CDO script still go on the confirmation page?

Cheers Shona
 
A

Andrew Murray

Whether the script shows a confirmation page, that depends on the script
you're using.


SS said:
Thanks

Can you tell me does the CDO script still go on the confirmation page?

Cheers Shona

Stefan B Rusynko said:
For a tutorial on CDO see
http://www.interlacken.com/winnt/tips/tipshow.aspx?tip=46

PS
It won't send mail until you add a send command

--

_____________________________________________
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
_____________________________________________
 

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

Similar Threads


Top