OK, now I have to make this email form usign ASP, which is utterly new to me, so I’m not sure what the heck I’m doing. I have been reading up on it, and looking at tutes
and stuff but i need help on a few issues. I will attatch the ASP form. Here are my questions. (cuz obviously it isn’t working yet)
#1. is it all written out right or did I make any mistakes? #2. at the end, when it says response.write(“Message was sent successfully”), I want it to write back into a dynamic text box with the variable “status” inside a formMC inside contentMC on the main timeline. How do I do that? #3. i think maybe my server doesn’t support ASP, (the one that the site will be on does) but the problem is, i’m not sure if i can test it properly because i do not have access to it’s ‘permanent home’
does anyone know how to work around this issue?
asp still doesn’t work, but i changed the code a wee bit. it still is supposed to do the same thing, i just think it’s easier and neater looking this way. please please please help me! :*(
#1. The only thing I see that is a potential problem is objMail.From = “Court Room Tools Form” This should really contain a valid e-mail address. Many mail servers will reject mail without a valid From address.
#2. I’m not a Flash coder, so I’ll leave this for someone else to address.
#3. You can test most ASP pages locally if you have Microsoft’s Personal Web Server, however a mail script also requires a functioning mail server, so you almost have to upload it to the server where it will be running in order to test it completely.
Also, The “Request.Form” syntax assumes that the form values were passed using the POST method. If you are using the GET method the commands would then be “Request.Querystring”.
When passing form values from a Flash form I always use the GET method because many Mac Flash plugins have a bug where all forms are sent as a GET even if you’ve specified POST. A lesson learned after spending the better part of two days hunting for a bug in my code.
#1 yeah, that cs01 garble was all from the text editor i was using, it messed it up somehow, but the second file i posted doesn’t have any of that stuff. (it’s also slightly different)
now, for the
objMail.From = “Court Room Tools Form”
can i change it to something like
objMail.From = email
or would i have to do something like
objMail.From = "wooliesock@yahoo.com"
#3 so i should use GET instead? it will still function the same?
#3 part 2. is there anyway to upload the site and asp to a different server, and then tell the asp to use a different mail server? i’m sorry, but i’m totally UN knowledgable about this stuff.
#1. Yes, objMail.From = email is the best way to handle that.
#3. Using GET instead of POST is up to you. Macromedia may have finally addressed that problem. In my case the client was using a Mac with the bug.
You might leave it as is and ask some Mac users here to test it once you have it working.
#3 part 2. You can’t upload to a different web server then specify an alternate mail server using CDOmail. The associtated mail server is set upon install of CDOmail COM object on the web server.
ohhh, ok. i got it. thanks!
hey, you wanan hear something totally **@!d up???
i called my ISP, cuz i have some service with them, to see if THEY support it so that i can test this darn thing. the first guy didn’t know what ASP was. so i had to explain. after getting transferred 3 times, i get this chick on the phone who looks it up for me. she says they do support it, but that they can’t tell me the info for it (ex. mail.f*ckyisp.com). so i ask why they can’t tell me the stupid info because every other isp will tell you, and their website was crappy, and i was on it for an hour looking, and now i needed to find out the stupid info and i paid so much extra money for super tech support, and now no one could help me. and so SHE said that it was beyond their “realm of assistance” and i would have to “figgure it out for myself”
my stupid ISP said they support ASP. we know that. i tried logging into the online web help to see the info and it wouldnt let me log in, kept telling me that i didnt exist, (i KNOW I EXIST, i am usign the darn connection!!! )
anywhoo, long story short, i called the idiots back and they ran me around in more circles, so i couldn’t get any relevent info.
maybe you can. how exactly does CDONTS work? i mean, ok, does it use SMTP? don’t i need to have a little file somewhere else on the server? do i need to know where it is?? whaaaaa… omg. can i just stick the darn thing there and expect it to work? because that’s what i did and it’s still not working.
As long as CDOmail is installed on the server you don’t need anything more than what’s already in the code on the ASP page. When you create an instance of the mail object with the command Server.CreateObject(“CDONTS.NewMail”) the web server already knows where the associated mail server is located.
I’ve attached a handy little test script. Change the file extension from .txt back to .asp, upload it to your web space then open it with your browser. It will list the most common COM objects and tell you if they are or aren’t installed on the server.
wow, you rock abzoid. i wish there was a way to give others “brownie points” or something on this forum, cuz i would give you sooooo many… let me try that script right now. :beam:
Thanks, just paying off the debt to those that once helped me.
I just noticed one other potential problem. Your TO address is yahoo.com and your FROM address is a user entered variable. Most mail servers, as a matter of security, only allow mail to be sent if either the TO or FROM is on a list of domains that are hosted by that ISP. For test purposes you can just make sure that one you enter as the FROM in the form is an allowed domain.
holy cow!!! your asp worked!!! im so happy i could cry. and even better is it says that “CDONTS.NewMail
installed!” i’m gonna try now and see if i can get the durned thing to work (my thing).
I just took another look at your updated code. There’s one command line missing, in bold below. It somehow got removed when you cleaned up the code. That’s the line that tells CDOmail to send.
objMail.Body = fullBody objMail.Send
set objMail = nothing
ok, i thought that everything was cool. i was unable to test it cuz i couldnt get access to any servers that suport CDONTS, but i THOUGHT that it was all ok. looked good, blah blah. so i sent this to the head cheese, and lo and behold, no workie.
please take a look at my asp and fla and help me to get this to work. anyone… please… grabs a tissue
asp… you… bastid…