|
-
Sep 11th, 2003, 06:35 AM
#1
Thread Starter
Member
Sending email from ASP - **RESOLVED**
Hi,
I want to send email from an ASP page after user fills out a form. Actually it is going to be a problem submission form and i want to send the problem details filled out by the user to a fixed email address.
I have tried the Server.CreateObject("CDONTS.NewMail") method but i got permission denied error message. I found out from another site that if a permission denied message is received the permissions for IUSR_servername on InetPub\mailroot should be checked. As I do not have admin. access, I have confirmed with my ITManager and he says that the account has full permissions.
Any suggestions are appreciated.
Regards,
Urvi.
Last edited by Urvi; Sep 17th, 2003 at 05:28 PM.
-
Sep 12th, 2003, 11:08 AM
#2
Hyperactive Member
I've got exactly the same problem at the moment.
Someone mentioned to me that it might be cos the page is accessed by anomymous access, and that you should set it to authenticate the user.
This is something you can change in iis under the virtual folders properties i think.
I've just had a fiddle a couple of hours agop and it didn't work, still getting the same error. but it might work for you.
Its a bit gutting isn't it, cos it seems such an easy way to send mail, but then you get a bloody permissions error arrrrggghhh!
-
Sep 12th, 2003, 11:23 AM
#3
Frenzied Member
This is usually the result of the IUSR_{machinename} NT account not having the appropriate permissions on the mail directories. When the mail service goes to write the file to the directory on the drive it doesn't have access and the script bombs.
You can fix this by ensuring that the account name in question has write access to the pickup directory. This is usually something like c:\inetpub\mailroot\pickup It probably wouldn't hurt to give the account access to mailroot and everything underneath.
Another possible cause of this is if you've set the application from which you're trying to send the email to run out of process.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Sep 14th, 2003, 07:03 PM
#4
Thread Starter
Member
i have checked the permissions on mailroot folder. it says everyone has full permissions and also the 'allow permissions to propogate to subfolders' checkbox is selected.
-
Sep 15th, 2003, 10:45 PM
#5
Thread Starter
Member
-
Sep 17th, 2003, 03:36 AM
#6
Frenzied Member
Might be a bit offtopic, but I always use a stored procedure when I send mail from my asp pages. I use Oracle DB and the SP is written in PL/SQL. It is fast and works every time...
kind regards
Henrik
-
Sep 17th, 2003, 08:27 AM
#7
Frenzied Member
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Sep 17th, 2003, 05:27 PM
#8
Thread Starter
Member
CDO worked!!
hi guys,
first of all thank you for your support. forums are the best way to resolve problems.
i have tried CDO instead of CDONTS. and after a bit of experimenting i finally seem to have got it to work. i hope i don't get any more problems with it.
thanks again,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|