Checking the Mailer.Response property returns “File Access Denied” or “Cannot create file” or “I have a TMP/TEMP var but it still isn working” Whats wrong?
You probably don’t have a TMP or TEMP path set up, or if you do, the IIS User (or any users authenticating under IIS) don’t have read/write access to the this directory. • Make sure the directory exists. • Make sure the TMP or TEMP variable exists in your NT/Win95 environment. Under NT this must be a system environment variable, not a user environment variable. If TShoot (see our tech support page) doesn’t show the var it isn’t a system var. It must be a system var. • Make sure all users which need access to the component (the anonymous IIS user and any other users which authenticate under IIS) have read/write access to this path. How to determine where your TMP/TEMP dir points to AspMail versions 2.5.8 and higher have a method called GetTempPath. To display where your TMP path is set to place the following code in an ASP script and run it. Set Mailer = Server.CreateObject(“SMTPsvg.Mailer”) Response.Write Mailer.GetTempPath Your Win32 OS is designed to find your temporary path in the f