home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1724
Discussions: 188,402, Posts: 2,243,609, Members: 232,632
Old September 15th, 2005, 12:25 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Sep 2005
Posts: 6
WSH CDO Email

Am trying to run the following code:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.Sender = "webdesign@cre8ions.com"
objMessage.To = "webdesign@cre8ions.com"
objMessage.TextBody = "This is some sample message text."
objMessage.Send

Error I'm getting:
The send using configuration is invalid.

I'm brand new to CDO so I have no idea what's causing the error here. I'm on a Windows XP box with Outlook installed. Any help would be greatly appreciated.

jeremychin is offline   Reply With Quote
Old September 16th, 2005, 11:16 AM     #2 (permalink)
Senior Member
 
bwcc's Avatar
 
Join Date: Nov 2001
Location: Central KS
Posts: 830
Since your machine isn't hosting SMTP traffic, I believe you would have to specify a remote SMTP server.

Code:
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.your.com"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "youruserid"

'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "yourpassword"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

bwcc is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript + wsh.... need to open a file dialog... help please? zskillz Webmastering and Programming 2 July 15th, 2008 04:07 AM
Is there an Email reader for *.email attachment? H T I Tech General Tech Discussion 6 April 13th, 2004 05:10 PM
How do you save email addys and email messages in MS Outlook? sucka General Tech Discussion 5 February 7th, 2003 12:49 AM
CDO on XP digital_d_17 Webmastering and Programming 5 February 24th, 2002 11:54 PM
Send email w/attachment - email goes thru, but no attachment?? plucky duck Technical Support 3 February 22nd, 2002 10:32 PM

Most Active Discussions
Is It Just Me? (2906)
3-days in and no threads about Gaza (161)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Futronix has water features? (0)
Laptop proccesor to desktop mob.. (2)
Please help! multiple problems! (4)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 04:49 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28