Jump to content


Photo
- - - - -

Calling MS Outlook E-Mail


23 replies to this topic

#1 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 13 November 2005 - 05:17 PM

I want to be able to pass e-mail parameters to MS Outlook and have the New Mail Message window open up with these parameters, ready to send. If anyone has done this I would appreciate the system call and parameters to do this. Thanks.

Edited by Ross Bevin, 13 November 2005 - 05:18 PM.


#2 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 211 posts
  • Gender:Male
  • Location:Netherlands

Posted 14 November 2005 - 08:39 AM

We tried calling the proiv email active x component to send an email out to outlook.
it works, but outlook will ask for a user confirmation for each email you send out that way (security patches). Before you can confirm there is a delay build in for 5-10 seconds. All that time, the pro-iv client cannot be used.
We are considering building our own active x component that won't have that 'feature'
Tried to report it to pro-iv, but they reffered to a microsoft answer: http://support.micro....com/kb/262634/

"After you apply the Outlook E-mail Security Update, various Outlook features and programs that integrate with Outlook cause a warning message to appear that asks you to confirm the action. You must confirm the action for the feature to work. Unless an administrator has overridden these default settings for you, you cannot alter this behavior. In some situations, the prompts may cause a feature to take longer to complete because you must approve the action repeatedly."

#3 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 14 November 2005 - 02:04 PM

Hi Wim,

Thanks for the response. Where do I get the Pro-IV E-Mail Active X component from? I have looked on the Pro-IV web site and can find no reference to any Active X controls.

Ross

#4 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 211 posts
  • Gender:Male
  • Location:Netherlands

Posted 14 November 2005 - 02:44 PM

It is called PROIVMail.ocx and supplied with the standard (Windows) distribution

#5 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 14 November 2005 - 02:46 PM

Thanks, I have found it. Is there any documentation on how to use it and pass parameters?

#6 Vol Yip

Vol Yip

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male
  • Location:Hong Kong

Posted 14 November 2005 - 04:30 PM

Is this mail ocx only works for v5.5? How about v4.6?

#7 Rob Donovan

Rob Donovan

    rob@proivrc.com

  • Admin
  • 1,640 posts
  • Gender:Male
  • Location:Spain

Posted 14 November 2005 - 04:51 PM

Hi,

You cant call an ActiveX ocx from version 4.6...

Rob D.

#8 mdexter

mdexter

    Advanced

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male

Posted 14 November 2005 - 07:19 PM

You can call the MAPI.DLL from v4.6. We wrote an interface DLL in C++ that in turn calls MAPI. We call our interface DLL using LINK_CLIENT command. It works well, but if we were starting with 5.5 we'd just use the Active-X. Mark Dexter

#9 Mike Schoen

Mike Schoen

    Expert

  • Members
  • PipPipPipPip
  • 198 posts
  • Gender:Male
  • Location:Guelph, Canada

Posted 15 November 2005 - 02:10 PM

We use a C++ program on windows platforms, and a perl script on *nix platforms, that take standard arguments and generate email with message body or attachments.

This allows us to generate automated emails for batch jobs from the server, without having to call outlook at all.

#10 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 15 November 2005 - 02:14 PM

Can someone who is using the Pro-IV E-Mail Active X tell me how to use it; I'm an Active X virgin.

#11 Vol Yip

Vol Yip

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 393 posts
  • Gender:Male
  • Location:Hong Kong

Posted 15 November 2005 - 02:31 PM

You can call the MAPI.DLL from v4.6. We wrote an interface DLL in C++ that in turn calls MAPI. We call our interface DLL using LINK_CLIENT command. It works well, but if we were starting with 5.5 we'd just use the Active-X. Mark Dexter

Could you please give me an example on how to call the MAPI.DLL? Thank, Vol

#12 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 211 posts
  • Gender:Male
  • Location:Netherlands

Posted 15 November 2005 - 02:56 PM

Load the active X component, and give it a control id in VIP

Then, create a screen function with that active x module in the statics.

In logic set the following items:

Mail.From = 'info@test.com'
Mail.To = 'sales@test.com'
Mail.Subject = 'test email'
Mail.SenderName = 'pro-iv'
Mail.UseRedemption = False
Mail.ID = @TERM
Mail.Format = 1
$$TEXT = 'Test message line'
Mail.AddBodyText(text)
#S = Mail.Send()

Edited by Wim Soutendijk, 15 November 2005 - 02:57 PM.


#13 Ross Bevin

Ross Bevin

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Manzanillo, Colima, Mexico

Posted 15 November 2005 - 03:00 PM

Thanks Wim.

#14 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 08 June 2006 - 06:48 PM

Has anyone been able to send attachments with the PROIV email activex?
I have tried

#A = Mail.AddAttachment(attach)
and passing in the file name and path parameters

and also

#A = Mail.AddAttachment("filename","networkpath")

neither of which work

Any help/advice would be grealy appreciated.

#15 deepghosh

deepghosh

    Member

  • Members
  • PipPip
  • 37 posts
  • Gender:Male

Posted 11 June 2006 - 02:52 AM

To bypass this message you need to buy a product called Redemption.

In case you use redemption, you wont get the security message.

Redemption.dll is available from http://www.dimastr.com/ , a Microsoft MVP. Many outlook books mention this solution.

To use redemption, you need to set UseRedemption to True.

PROIV Outlook ActiveX control is a "prototype" and should be used in "As is" condition.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users