ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 27th, 2003, 08:59 AM
spanglerco's Avatar
spanglerco spanglerco is offline
www.spanglerco.tk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Georgia
Posts: 36 spanglerco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Post Email in ASP

I need to send an email from my ASP page when a user clicks a button, but my page is on a stupid public education server. I can't use CDONTS and probably not SMTP either. How can I do it without the <form action="mailto:"> thing?

Thanks.
__________________
Paul Spangler
SpanglerCo
www.spanglerco.tk

Reply With Quote
  #2  
Old October 27th, 2003, 11:44 AM
OldJacques's Avatar
OldJacques OldJacques is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: in Orbit mostly
Posts: 148 OldJacques User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
If you are on a WinNT4 Server, I don't know of an alternative.
If you are on a Win2K Server, though, CDO for Windows 2000 allows CDO to use an external SMTP server, even if the internal (local) SMTP Server has been disabled.

Reply With Quote
  #3  
Old October 27th, 2003, 06:12 PM
spanglerco's Avatar
spanglerco spanglerco is offline
www.spanglerco.tk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Georgia
Posts: 36 spanglerco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
How do I use CDO? I think it might work.

Reply With Quote
  #4  
Old October 28th, 2003, 12:19 AM
OldJacques's Avatar
OldJacques OldJacques is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: in Orbit mostly
Posts: 148 OldJacques User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
googling "cdo for windows 2000" smtp server quickly turned up a number of resources (I had checked in Wrox's ASP 3.0 Programmer's Reference earlier)
http://support.microsoft.com/?kbid=286431
http://www.asp101.com/articles/john...lay/default.asp

Reply With Quote
  #5  
Old October 29th, 2003, 06:57 PM
gspiteri gspiteri is offline
Specialise in Asp
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 19 gspiteri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Curiosity

Just out of curiousity why is it that you can use cdonts?
And that is the only thing i would suggest using code or an object taht requires an smtp is crap anyway.

Reply With Quote
  #6  
Old October 30th, 2003, 07:34 AM
spanglerco's Avatar
spanglerco spanglerco is offline
www.spanglerco.tk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Georgia
Posts: 36 spanglerco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I said I use cannot use CDONTS. The NT stands for NT as in Windows NT. My server is not NT. I was asking about CDO which is for non-NT Windows.

Reply With Quote
  #7  
Old October 30th, 2003, 04:33 PM
gspiteri gspiteri is offline
Specialise in Asp
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 19 gspiteri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I use this code on a windows 2000 box not NT and it works fine

Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "</head>"
HTML = HTML & "<body bgcolor=""FFFFFF"">"
HTML = HTML & "<br>" & vbody
HTML = HTML & "</body>"
HTML = HTML & "</html>"
MyCDONTSMail.From= "Server"
MyCDONTSMail.To= "Whoever@blah.com"
MyCDONTSMail.Subject="Subject title"
MyCDONTSMail.BodyFormat=0
MyCDONTSMail.MailFormat=0
MyCDONTSMail.Body=HTML
MyCDONTSMail.Send
set MyCDONTSMail=nothing

Give that a try hope it helps.

Reply With Quote
  #8  
Old November 2nd, 2003, 06:49 PM
spanglerco's Avatar
spanglerco spanglerco is offline
www.spanglerco.tk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Georgia
Posts: 36 spanglerco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Angry

I do not have CDONTS! That's what I have been saying. Windows 2000 IS NT! There are only two kinds of OS from Microsoft: DOS and NT. NT is XP, 2000, and NT. DOS is ME, 98, 95, and MS-DOS.

Last edited by spanglerco : November 3rd, 2003 at 11:03 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Email in ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not 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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT