We are creating invoices in PDF form and then emailing them via Outlook With OutMail .To = lcEmail .Subject = lcSubject .HTMLBody = Message .Attachments.Add(xinvoice) .Display .Send Endwith Our client wants to be able to add to the body of the email but Outlook will not stay up. Just flashes by on ".Display", Is there a way to keep Outlook up? If I do not issue the ".Send" command, the email will reside in Outlook drafts. Client does not want this. Wes
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
We did this sort of thing with no problems: o=Createobject("outlook.application") oitem=o.createitem(0) oitem.subject=csubject oitem.to etc.. oitem.Display
Regards
Mark
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of wes.wilson@yahoo.com Sent: Wednesday, October 16, 2019 12:58 PM To: profoxtech@leafe.com Subject: Outlook automation
We are creating invoices in PDF form and then emailing them via Outlook With OutMail .To = lcEmail .Subject = lcSubject .HTMLBody = Message .Attachments.Add(xinvoice) .Display .Send Endwith Our client wants to be able to add to the body of the email but Outlook will not stay up. Just flashes by on ".Display", Is there a way to keep Outlook up? If I do not issue the ".Send" command, the email will reside in Outlook drafts. Client does not want this. Wes
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
_______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/344535987.2293894.1571227078114@mail.yahoo.... ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. Report [OT] Abuse: http://leafe.com/reportAbuse/344535987.2293894.1571227078114@mail.yahoo.com
This works for me in the Command Window:
loOutlook = CreateObject("Outlook.Application") loMessage = loOutlook.CreateItem(0) loMessage.To = "someone@test.com" loMessage.Subject = "Message subject" loMessage.Body = "message body" loMessage.Attachments.Add("myfile.pdf") loMessage.Display(.t.)
It will display the message and you can Send or Cancel from there.
Outlook version is 1902
Anyone done it with Thunderbird?
On 16-Oct-2019 6:28 PM, Alan Bourke wrote:
This works for me in the Command Window:
loOutlook = CreateObject("Outlook.Application") loMessage = loOutlook.CreateItem(0) loMessage.To = "someone@test.com" loMessage.Subject = "Message subject" loMessage.Body = "message body" loMessage.Attachments.Add("myfile.pdf") loMessage.Display(.t.)
It will display the message and you can Send or Cancel from there.
Outlook version is 1902
On Thu, Oct 17, 2019 at 2:22 AM AndyHC andy@hawthorncottage.com wrote:
Anyone done it with Thunderbird?
I don't think Thunderbird implements the COM interface, see here: http://codeverge.com/mozilla.dev.apps.thunderbird/thunderbird-automation/110...
The mention of command-line options lead me here: http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29
So, you can't use COM, but can probably compose a command line and access it via RUN.
Dne 17.10.2019 v 12:33 Ted Roche napsal(a):
On Thu, Oct 17, 2019 at 2:22 AM AndyHC andy@hawthorncottage.com wrote:
Anyone done it with Thunderbird?
I don't think Thunderbird implements the COM interface, see here: http://codeverge.com/mozilla.dev.apps.thunderbird/thunderbird-automation/110...
The mention of command-line options lead me here: http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29
So, you can't use COM, but can probably compose a command line and access it via RUN.
To use BLAT.DLL is more simple and independent from any mail client.