Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 20, 2025 
 
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!
 Architect Forums - SalesLogix Scripting & Customization
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Sening email from SLX, Office 2007
Paul DeSaro
Posts: 13
 
Sening email from SLX, Office 2007Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Paul DeSaro
Posts: 13
 
Re: Sening email from SLX, Office 2007Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Sep 07 1:32 PM
Sorry for the typos, I was rushing!!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Sening email from SLX, Office 2007Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Paul DeSaro
Posts: 13
 
Re: Sening email from SLX, Office 2007Your last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Paul DeSaro
Posts: 13
 
Re: Sening email from SLX, Office 2007Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Sep 07 2:37 PM
QueMessage worked great.

Thanks! Anyone know of a way then to send without the end user being prompted?
[Reply][Quote]
Dan Zsiga
Posts: 17
 
Re: Sening email from SLX, Office 2007Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/20/2025 10:38:18 AM