Dolphin email (MAPI) usage

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Dolphin email (MAPI) usage

Andrew Lawson-3
Gents
    I've got to the point where I'd like my current project to send out
    emails automatically. Looking at the libraries available
    (DelfinMAPI) it seems easy enough except for the fact that the user
    requires a MAPI profile on the machine in use. I basically need two
    questions answered if anyone knows how;

    1) Is there a way of detecting the names of profiles already in
    existence from within Dolphin.

    2) Is there a way of creating new profiles from within Dolphin.

    The 'within Dolphin' part is quite important as my company has it's
    own email client so users will not have any reason to setup or use
    Outlook/Express.

                thanks

                        Andrew


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin email (MAPI) usage

Udo Schneider
Andrew,

is using MAPI a must? I decided against MAPI in one of my projects because
it has it's only problems (enumerate profiles, timeouts ...).

I decided to go with plain old SMTP using a goodie which I found here:
http://www.smalltalking.net/Goodies/Dolphin/

CU,

Udo


On Tue, 30 Mar 2004 14:23:06 +0000, Andrew Lawson wrote:

> Gents
>     I've got to the point where I'd like my current project to send out
>     emails automatically. Looking at the libraries available
>     (DelfinMAPI) it seems easy enough except for the fact that the user
>     requires a MAPI profile on the machine in use. I basically need two
>     questions answered if anyone knows how;
>
>     1) Is there a way of detecting the names of profiles already in
>     existence from within Dolphin.
>
>     2) Is there a way of creating new profiles from within Dolphin.
>
>     The 'within Dolphin' part is quite important as my company has it's
>     own email client so users will not have any reason to setup or use
>     Outlook/Express.
>
>                 thanks
>
>                         Andrew


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin email (MAPI) usage

Dmitry Zamotkin-5
In reply to this post by Andrew Lawson-3
I use Microsoft Collaboration Data Objects (CDO) as alternative, look at CDO
package.

Dmitry Zamotkin


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin email (MAPI) usage

Sebastián Sastre
In reply to this post by Andrew Lawson-3
"Andrew Lawson" <[hidden email]> escribió en el mensaje
news:[hidden email]...
> Gents
>     I've got to the point where I'd like my current project to send out
>     emails automatically. Looking at the libraries available
>     (DelfinMAPI) it seems easy enough except for the fact that the user
>     requires a MAPI profile on the machine in use. I basically need two
>     questions answered if anyone knows how;
>
>     1) Is there a way of detecting the names of profiles already in
>     existence from within Dolphin.

It depends on the client (OE, Outlook, Netscape mail, eudora, etc)

>
>     2) Is there a way of creating new profiles from within Dolphin.

The only way I know to use (may be create) profiles programatically, is
using the information of the windows registry. There is stored the profiles
configured for the mail client program. Have in mind that each client
program stores it in a different way

    regards,

Seb

>
>     The 'within Dolphin' part is quite important as my company has it's
>     own email client so users will not have any reason to setup or use
>     Outlook/Express.
>
>                 thanks
>
>                         Andrew


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin email (MAPI) usage

Theo Pronk
In reply to this post by Dmitry Zamotkin-5
Hi Dmitry,
I've also tested this before and just now I need it for a real
application, but if hit a problem you may know the answer to.

running a test I het this error:
======================================================================
a HRESULTError('HRESULT Error: The "SendUsing" configuration value is
invalid. (FACILITY_ITF)')
======================================================================

and inspecting the object's configuration shows me this which doesn't
look right.

======================================================================
a CDOIConfiguration(an ADOCollection(an
ADODBField('http://schemas.microsoft.com/cdo/configuration/languagecode'='en-au')
an
ADODBField('http://schemas.microsoft.com/cdo/configuration/postusing'=0)
an
ADODBField('http://schemas.microsoft.com/cdo/configuration/sendusing'=0)
an
ADODBField('http://schemas.microsoft.com/cdo/configuration/usemessageresponsetext'=true)
an ADODBField('urn:schemas:calendar:timezoneid'=18)))
======================================================================

Thanks,
Theo
=================

Dmitry Zamotkin wrote:
> I use Microsoft Collaboration Data Objects (CDO) as alternative, look at CDO
> package.
>
> Dmitry Zamotkin
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin email (MAPI) usage

Dmitry Zamotkin-5
Theo Pronk <[hidden email]> wrote in message news:<[hidden email]>...
> Hi Dmitry,
> I've also tested this before and just now I need it for a real
> application, but if hit a problem you may know the answer to.
>
> running a test I het this error:
> ======================================================================
> a HRESULTError('HRESULT Error: The "SendUsing" configuration value is
> invalid. (FACILITY_ITF)')
> ======================================================================

It's a problem of server but not code.

Try to look there:
http://groups.google.com/groups?num=30&hl=ru&lr=&ie=UTF-8&safe=off&c2coff=1&q=%22SendUsing%22+%22configuration+value+is+invalid%22+cdo

D.Zamotkin


Reply | Threaded
Open this post in threaded view
|

Re: Dolphin email (MAPI) usage - WinXP problem?

Theo Pronk
Thanks Dmitry,
Found the code (two versions see below One: and Two:), but the fields in
the CDOIconfig after executing the a test seems to be missing something.

One: ===============
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
         .Item(cdoSendUsingMethod) = cdoSendUsingPort
         .Item(cdoSMTPServer) = "<enter_mail.server_here>"
         .Update
     End With

Two: ==============
myMailServer = "smtp.catamaranco.com"
     sch = "http://schemas.microsoft.com/cdo/configuration/"
     Set cdoConfig = Server.CreateObject("CDO.Configuration")
     cdoConfig.Fields.Item(sch & "sendusing") = 2
     cdoConfig.Fields.Item(sch & "smtpserver") = myMailServer
     cdoConfig.fields.update

My test to set the configuration is:
        config:= CDOIConfiguration new.
        x:= config fields
        x inspect

====== cut from inspector====
an ADOCollection(an
ADODBField('http://schemas.microsoft.com/cdo/configuration/languagecode'='en-au')
an ADODBField('http://schemas.microsoft.com/cdo/configuration/postusing'=0)
an ADODBField('http://schemas.microsoft.com/cdo/configuration/sendusing'=0)
an
ADODBField('http://schemas.microsoft.com/cdo/configuration/usemessageresponsetext'=true)
an ADODBField('urn:schemas:calendar:timezoneid'=18))
====== end cut=============

As you can see there is no field with the required "cdoSMTPServer", is
this a problem with WindowsXP and thew CDO setup for Windows 2000 Active
X components? or have I missed something?

Regards,
Theo

=============================
D. Zamotkin wrote:

> Theo Pronk <[hidden email]> wrote in message news:<[hidden email]>...
>
>>Hi Dmitry,
>>I've also tested this before and just now I need it for a real
>>application, but if hit a problem you may know the answer to.
>>
>>running a test I het this error:
>>======================================================================
>>a HRESULTError('HRESULT Error: The "SendUsing" configuration value is
>>invalid. (FACILITY_ITF)')
>>======================================================================
>
>
> It's a problem of server but not code.
>
> Try to look there:
> http://groups.google.com/groups?num=30&hl=ru&lr=&ie=UTF-8&safe=off&c2coff=1&q=%22SendUsing%22+%22configuration+value+is+invalid%22+cdo
>
> D.Zamotkin