Link to home
Start Free TrialLog in
Avatar of bfider2004
bfider2004

asked on

ASP Email - I tried CDONTS methods I've seen here, but didn't work. What to ask host admin?

I need to send results of an ASP page/form that are being submitted to a DB in an email to both myself and the person who submits the form (their email will be in one of the form fields.)

I tried a bunch of examples seen here, and they didn't work.  Now I finnally got an admin at my host on the phone, and he's saying to use CF!  I just did everything up in ASP!  I think it's a communication breakdown.  

What do I need to determine from him to send email from ASP page/form?

TIA
Avatar of avidya
avidya

HI,

Questions
- does your IPS's webserver support asp?
- post your asp code, it is possible to mail more then one person
Avatar of bfider2004

ASKER

yeah, i've got an asp application working on it, but i would like to have a form that users create login credentials on email them (and me just for kicks) a welcome msg with those credentials.  

i tried this cdonts ex:

<%
dim mymail
set mymail=server.CreateObject("CDONTS.Newmail")
mymail.From = "someone@somewhere.com"
mymail.To = Requst.Form(Email)
mymail.Subject = "This is a test mail"
mymail.Body = "Hi Testing"
mymail.Send
set mymail=nothing
%>

the error is on this line:

set mymail=server.CreateObject("CDONTS.Newmail")

this admin didn't even know what cdonts was, let alone if it was avail to me.  he did know it was a *windows* server....

he then said he'd email a CF mail script which he assured me would plug right in...  i'm kind of newbie, so pardon...

ASKER CERTIFIED SOLUTION
Avatar of avidya
avidya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i think i will ask him to install it (although it seemed foriegn to him.)

is that the thing, can i use cdonts *or* cdo?

thanks!
microsoft says in the kb article:
Windows Server 2003 does not install Collaboration Data Objects (CDO) for NTS (CDONTS). Therefore, applications that use CDONTS do not function on Windows Server 2003.

and advises to use CDO.

Maybe its installed already, did you try the example code?
i tried it, by createing test.asp, put that code in it, and uploaded.  

when i fill out the form, i get "page cannot be found" error, with "generateCdo_static.asp?create=1" appended to my url.  do i have to create this page "generateCdo_static.asp".

sorry, must be getting sleepy. So i was sending you an cdonst example...
 the code from this one works, just tested it by my ISP.
(if your not a member, just create an account, its free)

http://www.codeproject.com/asp/cdoex.asp
No, that didn't work either...

Ah well.  I'll give you the puntos, you've been quite patient...

Thanks!
That should work, so your IPS hasn't got cdosys installed. Good luck getting him to install it and thanhs for the point