Re: CDOSYS Send method fails first time
From: Jonas (jonas_at_nospam.pl)
Date: 08/09/04
- Previous message: Alan Borland: "Re: OnSyncSave and MAPI"
- In reply to: Jonas: "CDOSYS Send method fails first time"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 9 Aug 2004 11:19:22 +0200
I've found a solution, but it is kind of strange. The users must have the
rights to CDOSYS in the registry:
Path: HKEY_CLASSES_ROOT\TypeLib\{CD000000-8B95-11D1-82DB-00C04FB1625D}
Permission: Authenticated Users - Read Control, This key and subkeys
Path:
HKEY_CLASSES_ROOT\TypeLib\{CD000000-8B95-11D1-82DB-00C04FB1625D}\1.0\0\win32
Permission: Authenticated Users - Read Control, Query Value, This key and
subkeys
Why this only is a problem on the first access is still a mystery, but it
works now so I'm happy!
Brgds
Jonas
"Jonas" <jonas@nospam.pl> wrote in message
news:%23VdRmm7eEHA.1692@tk2msftngp13.phx.gbl...
> Hi!
>
> I've got a Windows 2003 Server with IIS and Exchange Server 2003 OWA
> installed as frontend. I run a couple of asp-pages on the server and try
to
> send mail using the CDOSYS.DLL. If I have a newly restarted IIS, the
CDOSYS
> fails on the Send method if I access the web page with a non-admin user.
But
> after having accessed the web page with an administrative account, the
Send
> method works again until IIS is restarted, even for non-admin users. The
> error I get is the following:
>
> -2147319779
>
> The code is taken from a MS sample:
>
> Set iMsg = CreateObject("CDO.Message")
> If Err.number <> 0 Then
> response.Write "[CreateObject] Err:" & Err.number & "-" &
> Err.Description & "<br>"
> End If
>
> iMsg.To = SendTo
> iMsg.From = SendFrom
> iMsg.Subject = Subject
> iMsg.HTMLBody = Body
>
> iMsg.Send
> If Err.number <> 0 Then
> response.Write "[.Send] Err:" & Err.number & "-" & Err.Description &
> "<br>"
> End If
>
> Any tips ??
>
> Brgds
>
> Jonas
>
>
- Previous message: Alan Borland: "Re: OnSyncSave and MAPI"
- In reply to: Jonas: "CDOSYS Send method fails first time"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|