Hello,

For a few weeks I have been learning Nim. Now, after I learned some basics, I'd 
like to use it to write actual apps. The one I want to write is for mail 
sending automation using Outlook. I did similar things using Python in the past 
and now I wonder how should I approach this in Nim. My Python code looked like 
this:
    
    
    import win32com.client
    from win32com.client import Dispatch, constants
    
    olMailItem = 0x0
    obj = win32com.client.Dispatch("Outlook.Application")
    newMail = obj.CreateItem(olMailItem)
    newMail.SentOnBehalfOfName = '[email protected]'
    newMail.Subject = "Test mail's subject"
    newMail.BodyFormat = 2
    newMail.HTMLBody = "Test mail's body"
    newMail.To = "[email protected]"
    newMail.CC = "[email protected]"
    newMail.display()
    
    
    Run

I believe that in Nim the winim module might be used to achieve the same goal. 
However, the details on how to use it I found preety poor in details, so I'd 
like ot ask you how should I rewrite this python code so it'll work for Nim.

Reply via email to