|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
How do I use CDO? I think it might work.
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
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. |
|
#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.
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Email in ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|