Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, July 9, 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: QueMessage with Attachment
Sherri Waite
Posts: 17
 
QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Sep 08 3:04 PM
Trying to add an attachment to the QueMessage Call. Have tried several ways to include the following which is similiar to the Attachment Support in a SLX 7 database.

Dim Shell
Dim ShellEnv
Dim strAttach
Dim FSO

Set FSO = CreateObject("Scripting.FileSystemObject") 'DNL
Set Shell = CreateObject("WScript.Shell") 'DNL
Set ShellEnv = Shell.Environment("PROCESS") 'DNL

strAttach = FSO.GetFolder(ShellEnv("TEMP")) & "\" & "ABC" 'DNL
FSO.CopyFile strAttachment, strAttach
Application.BasicFunctions.QueMessage strEmail, strCCEmail, "", strSubject, strHTMLBody, strAttach

FSO.DeleteFile(strAttach)
Set Shell = Nothing
Set ShellEnv = Nothing
Set FSO = Nothing

Where I copy the desired file into a dummy file named "ABC". The Outlook email pops with desired email addresses and body but no file attached. I have tried UNC file structure along with Saleslogix Attachments. I would like to pull one file off the drive and email it out.

Does the email body support HTML formatting. I have the tags but it seems to be straight text going out. Just a side note.

Your direction will be greatly appreciated.
Sherri
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Sep 08 3:21 PM
How about ABC.txt instead of ABC?

It has been awhile (2004) but we used to do this all of the time.....
[Reply][Quote]
Sherri Waite
Posts: 17
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Sep 08 5:47 PM
Did not matter what the name was. I have used GIF, JPG, PDF, and DOC and none of them were attached. I tried copying it and do it straight from the drive, as well. Thanks for the suggestion. Sherri
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Sep 08 7:07 PM
Where is the variable strAttachment declared?

Phil
[Reply][Quote]
John Foster
Posts: 18
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Sep 08 6:55 AM
I beleive that the issue is that BasicFunctions.QueMessage basically invokes a MailTo: command, which does not actually support attachments. It's not really a SLX issue. You will find many people perplexed by MailTo and attachments if you google it, because it doesn't pop an error, but it doesn't support it either.
[Reply][Quote]
Paul Cannon
Posts: 23
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Sep 08 9:43 AM
Just a thought Sherri, but would it work if you used CDO instead to send the message?
[Reply][Quote]
Sherri Waite
Posts: 17
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Sep 08 10:56 AM
I have heard of examples of the QueMessage working for attachments but its just not working in my case. Which makes me think that it might be an Outlook version issue. Currently on Outlook Express version 6. Does anyone know if there is an incompatibility issue between Outlook Express v 6 and this QueMessage?

Your replies are much appreciated.
Sherri
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Sep 08 7:11 AM
Quote:
Originally posted by Sherri Waite

I have heard of examples of the QueMessage working for attachments but its just not working in my case. Which makes me think that it might be an Outlook version issue. Currently on Outlook Express version 6. Does anyone know if there is an incompatibility issue between Outlook Express v 6 and this QueMessage?

Your replies are much appreciated.
Sherri

Sherri,
I believe you answered your own question:
Outlook Express
SalesLogix is "friendly" with "full" Outlook but guarenteed to work with Express....
[Reply][Quote]
Sherri Waite
Posts: 17
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Sep 08 12:17 PM
But.... I get the same results with Outlook 2003. HHMMM. No attachment and no HTML. And when I say attachment, I am talking a PDF file from the drive and not a Saleslogix attachment. Still working it. Thanks for your help.

Thanks again,
Sherri
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Sep 08 6:29 PM
Just ran a few tests:
A - Searched the entire OOTB plugin table.. SalesLogix does NOT use the Attachment "argument" anywhere. So there is NO working example available.
B - Ran a test myself and it just does not work... looks like a bug to me.
[Reply][Quote]
Stephen Redmond
Posts: 190
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Sep 08 2:47 AM
I created this code snippet when writing DevLogix:

Dim ToAddress, CC, BCC, Subject, Body, Attach

ToAddress = "john@abbott.demo"
CC = ""
BCC = ""
Subject = "Information Request"
Body = "Hi John" & chr(13) & chr(13) & "Info attached"
Attach = "C:\Temp\Test.txt"

Application.BasicFunctions.QueMessage _
ToAddress, CC, BCC, Subject, Body, Attach


And it worked at the time (there is a screenshot!)

Can't test it right now though.

BTW, if you are using Outlook Express then you can use the SalesLogix Mail Client configured for MAPI to sent emails - you do get lots of security warnings though.



Stephen
[Reply][Quote]
Stephen Redmond
Posts: 190
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Sep 08 2:48 AM
But I would probably just try and script this using the Outlook COM model instead.



Stephen

[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Sep 08 7:39 AM
I just ran a NEW set of tests and it worked fine.

Here's how to NOT have it work:
1 - use OE - does not seem to work here
2 - make sure Outlook is the Default Email system and it's fully configured in SalesLogix

Here's the "code" IO used:


Sub SendmailOC(Sender)
Dim bRetVal
bRetVal = Application.BasicFunction.QueMessage("RJL@whatever.com","","","Test","Hello","c:\TheToolBoxX.sxb")
End Sub
[Reply][Quote]
Sherri Waite
Posts: 17
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Sep 08 11:08 AM
I went with the COM object for not only the attachment but to be able to do HTML in the email body. Ultimately, we wanted to insert a JPG into the email body and the Outlook signature and I was able to accomplish that using the COM.

Thank you again to everyone for their suggestions.
Sherri
[Reply][Quote]
Kris Halsrud
Posts: 88
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Sep 08 9:23 AM
Sherri, glad to hear you got it to work. I am guessing the following was your issue:
The queuemessage operation will only add an attachment if you have SalesLogix configured to work with the Outlook profile installed on the machine. This is done through Tools...Options menu in the client. If you do not have this configured, you will get an email dialog to open but no file will be attached.
[Reply][Quote]
alexUA
Posts: 23
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Nov 09 9:54 AM
Hi all, I use

Application.BasicFunctions.QueMessage "asdasd","asdasd","asdasdasd","test","asdasdad","C:\sleep.js"

with LotusNotes, the mail is created but without attachments

What is the problem?
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: QueMessage with AttachmentYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Nov 09 11:27 AM
Does QueMessage and attachments work with Lotus Notes?

we use Linkpoint 360 and/or direct manipulation of Notes objects in vbscript....and use attachments. this has been working for awhile, current version of notes is 8.



[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): 7/9/2025 1:00:27 AM