Results 1 to 8 of 8

Thread: Sending email from ASP - **RESOLVED**

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2002
    Posts
    59

    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.

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Norwich, UK
    Posts
    405

    Angry

    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!

  3. #3
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    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

  4. #4

    Thread Starter
    Member
    Join Date
    Nov 2002
    Posts
    59
    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.

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2002
    Posts
    59
    anyone??

  6. #6
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    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

  7. #7
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    post your code.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  8. #8

    Thread Starter
    Member
    Join Date
    Nov 2002
    Posts
    59

    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
  •  



Click Here to Expand Forum to Full Width