6/20/2025 10:35:46 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Sening email from SLX, Office 2007
Posted: 21 Sep 07 1:29 PM
|
The following code snippet works in SLX 6.26 and Outlook 2003, but when testing Office 2007 the annoying Outlook window, "A program is trying to access e-mail address information stored in Outlook." appears.
It happens even you just want to open an outlook send email window, so I am not even using the .Send command yet.
Any know of better code to use or Outlook setting to change to get the existing code to work??? Thanks!
Set OLApp = CreateObject("Outlook.Application") Set mNameSpace = OLApp.GetNamespace("MAPI") Set thisMessage = OLApp.CreateItem(olMailItem) On Error Resume Next thisMessage.Recipients.Add sAllEmails If Err Then msgBox "Error setting Outlook mail properties" Else thisMessage.Subject = sSubject thisMessage.Body = strBody thisMessage.Display End If
|
|
|
| |
|
Re: Sening email from SLX, Office 2007
Posted: 21 Sep 07 1:43 PM
|
If you're running the code from SalesLogix (and you just want to open up the mail window, don't want to automatically send it), then you can use the built in:
Application.BasicFunctions.QueMessage
-Ryan |
|
|
|
Re: Sening email from SLX, Office 2007
Posted: 21 Sep 07 2:10 PM
|
Thanks, I'll try that this afternoon. Also, what are your thoughts on actually sending the email There are some instances were we use the same code and then issue the .send command. |
|
|
| |
|
Re: Sening email from SLX, Office 2007
Posted: 22 Sep 07 5:01 AM
|
If you don't want to use QueMessage, you can try Outlook Redemption. http://www.dimastr.com/redemption/ I use this product extensively in a different application. It's very powerful and pretty simple to use. You can do almost anything in Outlook without the security pop-ups nagging you. Since this would operate outside of the native SLX commands, I believe you would need to be sure to do something the history you needed. Hope this helps.
- Dan |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|