Go Back   Computer Forums > Web Design | Website Development > Web Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 11-30-2005, 04:28 PM   #1
Daemon Poster
Techy Geek's Avatar
Join Date: Feb 2005
Posts: 1,320
Send a message via MSN to Techy Geek
Default why doesn't this work

I'm trying to make a webpage in asp send an email, here is the code
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.TextBody="This is a message."
set myMail=nothing
But it isn't working, cdont's dont work on my host (www.1asphost.com), but I figured this is a different system, right? Condensed:
1. Should this work?
2. If it should, then why doesn't it?
3. How would I make it do this when a button is clicked?

thanks in advance

"If I seem to act unkind, its only me and not my mind" I Want To Tell You, The Beatles, Revolver
"When I am king, you will be first against the wall" Paranoid Android, Radiohead, OK Computer
There are two types of people, those who hate Microsoft, and those who work for it...
Possibly a Mac Convert
Techy Geek is offline   Reply With Quote
Old 12-01-2005, 08:37 AM   #2
Site Team
root's Avatar
Join Date: Mar 2004
Posts: 7,872
Default Re: why doesn't this work

CDONTS will not work on our servers because it requires the web server to be running SMTP, and we do not run mail services on our web servers, only on our mail servers. This is done for both performance and security reasons.
for the same reason CDONTS doesn't work, the CDO object won't work either...

you can't send messages from webpages because there is no mail server available on your host.
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 01:14 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0