rdcomclient

How to add my Outlook email signature to the COM object using RDCOMClient

家住魔仙堡 提交于 2019-11-30 21:02:48
I am working RDCOMClient into some of my work flow and thanks to agstudy's answer Here I am able to send emails throuhg r, but I can't figure out how to add my Outlook email signature. I'm new to COM objects, but have done a fair share of searching and haven't found anything. Because my reputation hasn't hit 50 yet, I wasn't able to comment on the inital thread to ask there. Can someone show me how I can add my Outlook email signature? library(RDCOMClient) OutApp <- COMCreate("Outlook.Application") outMail = OutApp$CreateItem(0) outMail[["To"]] = "dest@dest.com" outMail[["subject"]] = "some

How to use RDCOMClient to send Outlook email from a secondary account - translate existing VBA code?

纵饮孤独 提交于 2019-11-30 15:33:48
I am trying to send an email from a secondary email address using RDCOMClient . I took the advice from How to retrieve Outlook inbox emails using R RDCOMClient? and tried writing it in VBA and translating, but could not get the right commands. Note: I can't use SentOnBehalfOfName because I don't have the necessary permission. The below VBA and Python code both successfully send email from the secondary inbox. VBA Sub SendUsingAccount() Dim oAccount As Outlook.Account Dim oMail As Outlook.MailItem Set oAccount = Application.Session.Accounts.Item(2) 'Index of Mailbox Set oMail = Application

Extracting Zip+CSV file from attachment w/ Image in Body of Email

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 10:35:20
I receive daily emails where there is an attachment containing 1 zip file containing 1 csv file. In the body of my email, there is an image that is being recognized as another attachment I am pretty sure. The below script works when there is only text in the body of the email but with the "Adobe Marketing Cloud" image, it is screwing up the script. Is there a way I can only read maybe the first attachment read (assuming that will be the zip file)? Here is my script: library(readr) library(RDCOMClient) outlook_app <- COMCreate("Outlook.Application") search <- outlook_app$AdvancedSearch( "Inbox"

How to retrieve Outlook inbox emails using R RDCOMClient?

早过忘川 提交于 2019-11-27 19:56:01
library(RDCOMClient) ## create outlook object OutApp <- COMCreate("Outlook.Application") I want to retrieve today's email from an Outlook folder named 'AUX'. Parse through the email's title and if it meets certain conditions, I want to parse the content of the email for certain strings. I managed to write an email from R and send it out but so far not able to retrieve the emails. Here is some sample code I got to work by trial and error: library(RDCOMClient) folderName = "AUX" ## create outlook object OutApp <- COMCreate("Outlook.Application") outlookNameSpace = OutApp$GetNameSpace("MAPI")

Extracting Zip+CSV file from attachment w/ Image in Body of Email

不羁岁月 提交于 2019-11-27 03:06:15
问题 I receive daily emails where there is an attachment containing 1 zip file containing 1 csv file. In the body of my email, there is an image that is being recognized as another attachment I am pretty sure. The below script works when there is only text in the body of the email but with the "Adobe Marketing Cloud" image, it is screwing up the script. Is there a way I can only read maybe the first attachment read (assuming that will be the zip file)? Here is my script: library(readr) library