Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
regarding MS Office properties
Pranjal Jain
5/3/2008 11:18:00 AM
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 = 'xxxx.yyyy@gmail.com'
message.Recipients.Add 'abc.Pal@xyz.com'
message.Recipients.Add 'Parveen.123@xyz.com'
#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 :(
I am hvng no clue regarding it. please suggest.
thnks in advance
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
regarding MS Office properties
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password