|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
scripting question (permissions?)
I'm using an ASP script that sends email via a web browser...i've used the exact same code on other servers and it works just fine, but it will not send from my IIS server! I've played with the permissions, it all seems right! Any suggestions?!?!?!?!
Thanks, |
|
#2
|
||||
|
||||
|
You have to make sure that SMTP is setup correctly, and this varies with every site. So, I couldn't tell you exactly what settings you need. One thing you can do, is send an email, and go to the c:\inetpub\mailroot folder. Look under those folders and see where your email is stored. If it's going to badmail folder, for example, you might be sending to an invalid email address. Also make sure that your "FROM" address is a valid email in your system. Hope this helps.
|
|
#3
|
|||
|
|||
|
I didn't think an ASP script required SMTP to be active to send an email. If you do it with HTML it doesn't have to be. I'm sure it is a valid email address as well...
Thanks, |
|
#4
|
||||
|
||||
|
Are you speaking about sending an email via a form or are you speaking of having a user click on a url, that has an email address, and send the email after outlook opens...?
If you want a user to fill out a form and have that form be submitted to you (or someone else) via email, you need a mechanism to send the email itself. SMTP does exactly that. HTML does nothing but display text, graphics, links, etc. Typically people use CDONTS objects with ASP to send mail. HTML itself can't send an email. When you click on a url that is an email address, it will launch outlook (or whatever your mail client is) to send the email. Hope this helps. Last edited by dcarva : July 22nd, 2003 at 03:54 PM. |
|
#5
|
|||
|
|||
|
here i'll just show you the code i'm using... it won't let me paste the code... go to http://jshayden.dynu.com/list/test.txt to see the code...
i have it running at http://jshayden.dynu.com/list/test.asp from what i understand this does not require any SMTP server. Thanks for your help man... |
|
#6
|
||||
|
||||
|
Your example uses CDONTS. CDONTS interfaces with SMTP. CDONTS is just an object that relies on SMTP as a transport. The HTML/ASP itself won't do anything. You may already have SMTP setup. By the way, your FROM address should be a valid email address. Sometimes it can cause problems if it isn't. (example: objMail.From = "JSHayden@email.com")
Danny |
|
#7
|
|||
|
|||
|
wow...thanks alot man...can i use the smtp within IIS? when i try to start it IIS crashes...
|
|
#8
|
||||
|
||||
|
Yes. You can use SMTP within IIS. Here's one page I found that explains it with SMTP. (see bottom)
<http://support.microsoft.com/defaul...&NoWebContent=1> What is the error IIS is giving you? |
|
#9
|
|||
|
|||
|
i'm working on that error...do you have AIM?
|
|
#10
|
|||
|
|||
|
the service did not respond to the start or control request in a timely fashion. Check the Windows Event Viewer for details.
|
|
#11
|
||||
|
||||
|
No sorry. I don't use it at work. You can email me at dcarvajal@houston.rr.com. I am not an IIS expert though. But I'll help.
|
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > scripting question (permissions?) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|