Welcome! Log In Create A New Profile

Advanced

Outlook and Windev

Posted by Thomas 
Thomas
Outlook and Windev
July 26, 2008 07:52PM
Hello,

I have massiv problems with send Emails with Outook and my Application.
I can only one Email send in a session. When I send two or more emails to a recipient a get a error.
Please look at this code above:

SessionID is int
SessionID = EmailStartOutlookSession("Outlook")
// Reset all the variables of the email structure
EmailReset()
Email.Recipient[1]=" test@test.de "
Email.Recipient[2]=" test2@test.de "
Email.Subject= "TEST"
Email.Message ="TEST TEST TEST"
Email.NbRecipient = 2

// Sends the email
IF EmailSendMessage(SessionID,True) = False THEN
Error(ErrorInfo())
ELSE
EmailUpdate(SessionID)
Info("The email was successfully sent")
END

I get the error: "One or more recipients are ambiguos. No contact in the adress book corresponds to the specified recipient."
But the contact is in the Outlook adress book! PCSoft mean that is a protection setting in Outlook. But I don't know what for a Outlook setting.
I have anybody the same problem?
Milton
Re: Outlook and Windev
July 27, 2008 03:05AM
Hi Thomas,

When you start an email session, as far as I am aware, you need to provide the address of the mail server and a valid login.

In the Help it says

IF EMailStartSession(USER, PASSWORD, "pop3.ifrance.fr", ...
"smtp.ifrance.fr") = True THEN
UserName = USER
ELSE
UserName = ""
Error("Can't establish connection")
END

As fas as I can see you have not opened a vaild session with appropriate rights to give you access to the address book.

Milton
Thomas
Re: Outlook and Windev
July 27, 2008 11:47AM
PCSOFT confirmed to me, the code is correct. I try using Outlook to send and not via SMTP. SMTP works fine but not about Outlook.
Carlo Hermus
Re: Outlook and Windev
July 29, 2008 03:38AM
Quote
Thomas
Hello,

I have massiv problems with send Emails with Outook and my Application.
I can only one Email send in a session. When I send two or more emails to a recipient a get a error.
Please look at this code above:

SessionID is int
SessionID = EmailStartOutlookSession("Outlook")
// Reset all the variables of the email structure
EmailReset()
Email.Recipient[1]=" test@test.de "
Email.Recipient[2]=" test2@test.de "
Email.Subject= "TEST"
Email.Message ="TEST TEST TEST"
Email.NbRecipient = 2

// Sends the email
IF EmailSendMessage(SessionID,True) = False THEN
Error(ErrorInfo())
ELSE
EmailUpdate(SessionID)
Info("The email was successfully sent")
END

I get the error: "One or more recipients are ambiguos. No contact in the adress book corresponds to the specified recipient."
But the contact is in the Outlook adress book! PCSoft mean that is a protection setting in Outlook. But I don't know what for a Outlook setting.
I have anybody the same problem?

It is working here to. Sorry, but maybe you have some restricitons in Outlook?



Edited 1 time(s). Last edit at 07/29/2008 03:41AM by Carlo Hermus.
Thomas
Re: Outlook and Windev
July 29, 2008 10:39AM
Carlo,

Standard Installation, no more. I don't found this restriction. Can you give me tips?
Thomas
Re: Outlook and Windev
July 29, 2008 05:40PM
I can send to one email recipient without any problems:

SessionID is int
SessionID = EmailStartOutlookSession("Outlook")
// Reset all the variables of the email structure
EmailReset()
Email.Recipient[1]="test@test.de"
Email.Subject= "TEST"
Email.Message ="TEST TEST TEST"
Email.NbRecipient = 1

// Sends the email
IF EmailSendMessage(SessionID,True) = False THEN
Error(ErrorInfo())
ELSE
EmailUpdate(SessionID)
Info("The email was successfully sent")
END

Another phenomenon:
When I click more time an the button in a session, than the emails send!
Thomas
Re: Outlook and Windev
July 29, 2008 08:33PM
I tested now with Outlook 2000 and the code works!
I suspect, the mail framework is for Outlook 2000/2002(?) and not for 2003.
Michael Drechsel
Re: Outlook and Windev
July 30, 2008 10:33AM
Hi Thomas,

please check [www.mapilab.com].

I would be helpfull if your problem is the outlook security.

Greetings MD
Bosher
Re: Outlook and Windev
July 30, 2008 05:40PM
Hi,

You are much better of using Outlook Redemption dll via COM. See www.dimastr.com

Cheers

Bob
Michael Drechsel
Re: Outlook and Windev
July 30, 2008 07:40PM
Hi Bosher,

but it´s not free ... or ?

regards michael
Bob Stratton (bosher)
Re: Outlook and Windev
July 30, 2008 11:31PM
Hi Michael,

Sure, it's not free, but it's quite cheap and works completely bypassing Outlook security. Works everytime.

Cheers

Bosho
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: