Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 04-29-2008, 05:08 PM CDO Objects form?
yanksno1's Avatar
Novice Talker

Posts: 5
Trades: 0
Hi all. I just moved to a new web host and on their Windows 2008 server they use CDO Objects for forms. I was curious to see if anyone had one as an example I can use. It looks like they do require server authentication when sending the mail, so that'd need to be built in. They did post a code sample of how the programming should look like (which I can post if you guys want it) but it didn't give an example with a form so it really doesn't help me lol. If someone could do one with the normal form fields: Name, Email address, Subject, Message. I'd really appreciate it if you guys could help me out. Much thanks if you can.
yanksno1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-29-2008, 06:49 PM Re: CDO Objects form?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.candsdesign.co.uk/article.../show-form.asp

http://www.candsdesign.co.uk/article...-email/cdosys/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-30-2008, 12:16 AM Re: CDO Objects form?
yanksno1's Avatar
Novice Talker

Posts: 5
Trades: 0
CDOSYS is the same as CDO Object (that's what my hosting company is calling it)?
yanksno1 is offline
Reply With Quote
View Public Profile
 
Old 04-30-2008, 08:55 AM Re: CDO Objects form?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It should be.

CDO is Collaboration Data Objects and CDOSYS is the name of the DLL.

The earlier version of CDONTS was deprecated in server 2003.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-01-2008, 09:42 AM Re: CDO Objects form?
yanksno1's Avatar
Novice Talker

Posts: 5
Trades: 0
Code:
Dim ObjSendMail
Set ObjSendMail = CreateObject( "CDO.Message" )

'This section provides the configuration information for the remote SMTP server.
ObjSendMail.Configuration.Fields.Item ( "http://schemas.microsoft.com/cdo/configuration/sendusing" ) = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ( "http://schemas.microsoft.com/cdo/configuration/smtpserver" ) = "mail.example.com"
ObjSendMail.Configuration.Fields.Item ( "http://schemas.microsoft.com/cdo/configuration/smtpserverport" ) = 25
ObjSendMail.Configuration.Fields.Item ( "http://schemas.microsoft.com/cdo/configuration/smtpusessl" ) = False
ObjSendMail.Configuration.Fields.Item ( "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout" ) = 60

' The mail server requires outgoing authentication use a valid email address and password.
ObjSendMail.Configuration.Fields.Item ( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" ) = 1 'basic (clear-text) authentication
ObjSendMail.Configuration.Fields.Item ( "http://schemas.microsoft.com/cdo/configuration/sendusername" ) =" your_email@domain.com"
ObjSendMail.Configuration.Fields.Item ( "http://schemas.microsoft.com/cdo/configuration/sendpassword" ) = "password"
ObjSendMail.Configuration.Fields.Update
'End remote SMTP server configuration section==

ObjSendMail.To = " sample@domain.com"
ObjSendMail.Subject = "this is the subject"
ObjSendMail.From = " your_address@domain.com"

' we are sending a text email.. simply switch the comments around to send an html email instead
'ObjSendMail.HTMLBody = "this is the body"
ObjSendMail.TextBody = "this is the body"
ObjSendMail.Send
Set ObjSendMail = Nothing
This is the sample code they give to use (I'm assuming it works). Would it be possible for someone to point me in the direction of getting this working with the form? I really just need to know how to setup the input names. I would also like when the email is sent that the reply address is the senders email address, subject the subject they typed in and so on. Any help would be greatly appreciated.
yanksno1 is offline
Reply With Quote
View Public Profile
 
Old 05-03-2008, 04:27 AM Re: CDO Objects form?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Look at the code I linked to in post #2
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to CDO Objects form?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28397 seconds with 12 queries