Regarding MS Office properties

Hi all
If we want to open the outlook & write in it , we use the command

outlook = WIN32OLE.new(‘Outlook.Application’).

message = outlook.CreateItem(0)

message.Subject = ‘Double-Header Today’
message.Body = ‘This is the message body.’
message.To = ‘[email protected]
message.Recipients.Add ‘[email protected]
message.Recipients.Add ‘[email protected]
#The second argument, 1, indicates that this is an attached file, rather
than a #link to the original file.
message.Attachments.Add(‘c:\Update Ruby gems.txt’, 1)
message.Send

But in case if we want to write the message in already opened Outlook
mail, wht should we do :frowning:

I am hvng no clue regarding it. please suggest.

thnks in advance

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs