Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
BC #1
CDO
We are in the process of upgrading our Intranet server to
Windows 2K with SP 3 (from NT4.0). We have tons of ASP
pgaes using CDONTS to send mail. I understand that we
will need to recode all of these pages to use CDO,
however, I can not get it to work and am very frustrated.
Here is my code - can any one tell me what I am doing
wrong.
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "This is a test subject"
objMessage.Sender = "me@ourplace.com"
objMessage.To = "me@ourplace.com"
objMessage.TextBody = "This is me testing the email"
objMessage.Configuration.Fields.Item_
("http://schemas.microsoft.com/cdo/configuration/sendusing"
) = 2
objMessage.Configuration.Fields.Item_
("http://schemas.microsoft.com/cdo/configuration/smtpserver
") = "smtp.ourplace.com"
objMessage.Configuration.Fields.Item_
("http://schemas.microsoft.com/cdo/configuration/smtpserver
port") = 25
objMessage.Configuration.Fields.Update
objMessage.Send
BC Guest
-
Atrax #2
Re: CDO
> I understand that we
no, CDONTS is still supported under Windows 2000 - though it is> will need to recode all of these pages to use CDO,
deprecated, and therefore upgrading is recommended. However it's not
essential.
there's a useful article at [url]www.aspfaq.com[/url] on the subject of
CDO.Message, actually....
________________________________________
Atrax. MVP, IIS
[url]http://rtfm.atrax.co.uk/[/url]
newsflash : Atrax.Richedit 1.0 now released.
[url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Atrax Guest
-
Bullschmidt #3
Re: CDO
Don't know if this helps any but:
Instead of:
objMessage.Sender
I've used this and it worked:
objMessage.From
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
[url]http://www.Bullschmidt.com[/url]
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest
-
Jon Pankhurst #4
CDO
Hello, I'm trying to add a stored procedure to my server
<%
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "<mail.photo4me.com>"
.update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "mail@photo4me.com"
.To = "jon@spl.at"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
But I'm getting syntax error? any ideas?
Thanks
jon
--
Upgrade your 6mb to a 25mb mail box!
[url]http://www.spl.at[/url]
Jon Pankhurst Guest
-
Ray at #5
Re: CDO
"Jon Pankhurst" <photographers@photo4me.com> wrote in message
news:%23C0h1iCIEHA.3240@TK2MSFTNGP12.phx.gbl...?????> Hello, I'm trying to add a stored procedure to my server
> <%
> sch = "http://schemas.microsoft.com/cdo/configuration/"
> [snip]
> Set cdoConfig = Nothing
> %>What line gives you the error? I don't see any syntactical errors.> But I'm getting syntax error? any ideas?
Ray at home
Ray at Guest
-
Jon Pankhurst #6
Re: CDO
Thanks I have sorted it now...
Regards
Jon
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:ud85CPDIEHA.3444@TK2MSFTNGP11.phx.gbl...>
> "Jon Pankhurst" <photographers@photo4me.com> wrote in message
> news:%23C0h1iCIEHA.3240@TK2MSFTNGP12.phx.gbl...>> > Hello, I'm trying to add a stored procedure to my server
> ?????
>
>>> > <%
> > sch = "http://schemas.microsoft.com/cdo/configuration/"
> > [snip]
> > Set cdoConfig = Nothing
> > %>
>>> > But I'm getting syntax error? any ideas?
> What line gives you the error? I don't see any syntactical errors.
>
> Ray at home
>
>
Jon Pankhurst Guest
-
gtsilimigkas #7
cdo
The solution that you give it was ok but actually I have another problem with
the same application _when I try to submit the email I have this message in
explorer
? Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/ptesiki/www/email_02.asp, line 11
And probably the problem is with the SMTP server
gtsilimigkas Guest
-
danilocelic *TMM* #8
Re: cdo
gtsilimigkas wrote:
And what is at line 11?> The solution that you give it was ok but actually I have another problem with
> the same application _when I try to submit the email I have this message in
> explorer
>
> ? Error Type:
> Server object, ASP 0177 (0x800401F3)
> Invalid class string
> /ptesiki/www/email_02.asp, line 11
>
> And probably the problem is with the SMTP server
If that is within the script that the extension inserts, then the issue is likely that your web host does not have the CDONTS email component installed on thier system. I'd check with them to find out which components they do support and then go from there.
--
Danilo Celic
| Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
| Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
danilocelic *TMM* Guest
-
pixelbill #9
Re: cdo
Hi danilocelic :)
First I like to say how much I learned from reading your book " Dreamweaver MX
2004 Magic ".
the truth is where can I get the " DW magic mailer"? I know is on the CD cover
but I read it from an ebook and trying to follow the lesson. "Project 8 Sending
a Form to Email". Its any other way that I can continue the lession without the
Xtension?
Thanx
pixel
pixelbill Guest
-
gtsilimigkas #10
cdo
I try to develop the application in my computer. I have installed the SMTP
service in windows XP and I think that it works. After that I Will put it in
the web host.
The message in the explorer as I tell you isAnd in line 11 in the code is> ? Error Type:
> Server object, ASP 0177 (0x800401F3)
> Invalid class string
> /ptesiki/www/email_02.asp, line 11
Set objCDO = Server.CreateObject("CDONTS.NewMail")
I have the same message also with other CDONTS email component that I try
(different line and name for the also CDONTS email component)
I have this message when I try to submit the email form in preview page
Thanks again for the help
gtsilimigkas Guest
-
danilocelic *TMM* #11
Re: cdo
pixelbill wrote:
Glad you liked it.> Hi danilocelic :)
> First I like to say how much I learned from reading your book " Dreamweaver MX
> 2004 Magic ".
> the truth is where can I get the " DW magic mailer"? I know is on the CD cover
> but I read it from an ebook and trying to follow the lesson. "Project 8 Sending
> a Form to Email". Its any other way that I can continue the lession without the
> Xtension?
From what I understand , the extension is part of the support files for the book and in hard cover comes only on the CD. For an eBook version of it, I'm not sure where the support files go. Where did you read the eBook version of it? I'm pretty sure that Safari (a subscription ebook service) has the files avialble for the books they offer, and I know that they had the book available, so the file sshoul have been available there.
If you were just reading the chapter that was posted as an example of the books contents, then the support files for it are not available.
In case it matters, the code inserted by that extension is quite similar to the CDO extension that you're using, and for an ASP page, would give you the same error that you're seeing now, so it wouldn't be of any assistance to you.
You do need to check with your host to see which email components that you can use. Report that back to the forum and someone should be able to suggest an extension that fits your specific needs.
--
Danilo Celic
| Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
| Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
danilocelic *TMM* Guest
-
danilocelic *TMM* #12
Re: cdo
gtsilimigkas wrote:
> I try to develop the application in my computer. I have installed the SMTP
> service in windows XP and I think that it works. After that I Will put it in
> the web host.That means that you do not have the CDONTS component on your system. Having the SMPT service is not the same thing as a email component such as CDOONTS. I think that Windows XP does not come with CDONTS, or the newer versionof it, CODSYS. You probably have to get them at Microsoft's. Not sure where.> I have the same message also with other CDONTS email component that I try
> (different line and name for the also CDONTS email component)
> I have this message when I try to submit the email form in preview page
I'd suggest that you upload the pages to the host's server, and test them, they may just work for you.
--
Danilo Celic
| Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
| Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
danilocelic *TMM* Guest
-
ric stryker #13
Re: cdo
Hello everyone, Im ric and i'm just wondering why i still haven't receive a
single email eventhough i already added some items on the database. I used CDO
Mail component, running on IIS Server (for now...to be uploaded on an ASP
server), and ASP VBScript. I tried to test it locally using my IIS and it seems
that it doesn't work...any suggestions?
ric stryker Guest



Reply With Quote

