Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-22 Thread Alan Bourke
The thing about CDO is that it's deprecated by Microsoft and not supported on anything after Outlook 2010 as far as I can tell. -- Alan Bourke alanpbourke (at) fastmail (dot) fm ___ Post Messages to: ProFox@leafe.com Subscription Maintenance:

RE: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-22 Thread Richard Kaye
Always start with the simplest solution is my motto...  I've never automated CDO objects so don't have a clue. Should be easy enough to find out if the message object has a UI. If not, you'd need to go with automating Outlook instead of using CDO. -- rk -Original Message- From:

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread MB Software Solutions, LLC
Well that answer sounds like the obvious easy answer but I kinda thought that using this component was all for a seamless emailing and did not have a visible component.  I'll test that out and report back.  Basically, I thought there was no visible email client with this approach? On

RE: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Richard Kaye
So maybe make the loMsg object visible and don’t invoke the Send() method? -- rk -Original Message- From: ProfoxTech On Behalf Of MB Software Solutions, LLC Sent: Wednesday, August 21, 2019 5:31 PM To: profoxt...@leafe.com Subject: Re: Easiest/best way to create an email using local

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread MB Software Solutions, LLC
Hi John, Thanks for your code below.  It's pretty much exactly what I use for my bug reporting where the app automatically sends an email. However, in this case, the customer WANTS to see it in Outlook and review it themselves before pressing the Send button to email it. (Paranoia?) Thanks

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread MB Software Solutions, LLC
On 8/21/2019 9:58 AM, Malcolm Greene wrote: Michael, A better option than Outlook (ugh!): Check out SendGrid (now part of Twilio). Hi Malcolm, But this customer--who uses Outlook currently--wants the email "prepped, ready, and shown" in Outlook so they can review and just press the Send

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread MB Software Solutions, LLC
Yes, thanks...spec calls for user to review everything and they have the responsibility to press Send...the app will not auto-send it. On 8/21/2019 7:40 AM, Frank Cazabon wrote: Mike, along with Alan's code you can use loMsg.Display() to display the email on screen before sending. Frank.

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread MB Software Solutions, LLC
This client is using OUTLOOK, not Gmail. On 8/21/2019 3:10 AM, Koen Piller wrote: If your client is not using Gmail than VFPWinsock is the easiest app to mail with attachments Koen Op wo 21 aug. 2019 om 08:58 schreef John Weller I use CDO to do just that. I’m not in the office until later

RE: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread John Weller
As promised. This example uses a Gmail account. lcErr = "" lcSchema = "http://schemas.microsoft.com/cdo/configuration/; loConfig = CREATEOBJECT("CDO.Configuration") WITH loConfig.FIELDS .ITEM(lcSchema + "smtpserver") = "smtp.gmail.com"

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Malcolm Greene
> SendGrid, MailJet et al are definitely the way to go for bulk emailing, > however are possibly overkill for sending occasional one-off messages from an > application, which is what I took the requirement to be. "I'm already paying > for Office 365, why am I paying for SendGrid on top to send

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Alan Bourke
> A better option than Outlook (ugh!): Check out SendGrid (now part of Twilio). SendGrid, MailJet et al are definitely the way to go for bulk emailing, however are possibly overkill for sending occasional one-off messages from an application, which is what I took the requirement to be. "I'm

RE: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Richard Kaye
I feel better now...  -- rk -Original Message- From: ProfoxTech On Behalf Of Ted Roche Sent: Wednesday, August 21, 2019 9:37 AM To: profoxt...@leafe.com Subject: Re: Easiest/best way to create an email using local MS Outlook with file attachments? And remember, kids, MAPI Bad! SMTP

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Malcolm Greene
Michael, A better option than Outlook (ugh!): Check out SendGrid (now part of Twilio). Malcolm ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list:

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Ted Roche
On Wed, Aug 21, 2019 at 12:22 AM MB Software Solutions, LLC < mbsoftwaresoluti...@mbsoftwaresolutions.com> wrote: > VFP9SP2 app > > Customer uses Outlook and wants the app to generate an email to a given > email address from the app AND attach certain documents to it. Customer > will preview it

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Frank Cazabon
Mike, along with Alan's code you can use loMsg.Display() to display the email on screen before sending. Frank. Frank Cazabon On 21/08/2019 04:17 AM, Alan Bourke wrote: If you want to use Outlook: loOutlook=CreateObject("Outlook.Application") loMsg = loOutlook.CreateItem(0)

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Alan Bourke
If you want to use Outlook: loOutlook=CreateObject("Outlook.Application") loMsg = loOutlook.CreateItem(0) loMsg.BodyFormat= 2 && olFormatHTML loMsg.HtmlBody="HTML body text" loMsg.Body = "Plain body text for clients without HTML mail

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Koen Piller
If your client is not using Gmail than VFPWinsock is the easiest app to mail with attachments Koen Op wo 21 aug. 2019 om 08:58 schreef John Weller > I use CDO to do just that. I’m not in the office until later today but > when I get in I’ll send you some sample code if you wish? > > John > >

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread John Weller
I use CDO to do just that. I’m not in the office until later today but when I get in I’ll send you some sample code if you wish? John John Weller 01380 723235 079763 93631 Sent from my iPad > On 21 Aug 2019, at 05:22, MB Software Solutions, LLC > wrote: > > VFP9SP2 app > > Customer uses

Re: Easiest/best way to create an email using local MS Outlook with file attachments?

2019-08-21 Thread Kurt @ Gmail
Wow - Deja vu! I joined this forum Circa 2008 - and, previously I was at a job and had to do Exactly this! It was maybe circa 2005-06. YEs, I did indeed do this via Office Automation. There was a great book out there - all about doing OA - and that's how I ended up doing the project. I too