Getting signature from Outlook using python with Redemption RDO
<p>I wrote a program that creates a mail in outlook and saves it as .msg format. I want to add the signature of the user that is sending the mail (so the current account user) at the end of the HTMLBody. So far I haven't been able to find anything.</p>

<p>Any help would be appreacited. Here is an easy example of my code:</p>

<pre><code>win32com.client.gencache.EnsureDispatch("Outlook.Application")
session = win32com.client.Dispatch("Redemption.RDOSession")
session.Logon("Outlook")
signatures = session.Signatures
msg = session.GetMessageFromMsgFile(r"test.msg")
msg.Subject = "test subject"
msg.HTMLBody ="&lt;html&gt;&lt;body&gt; &lt;b&gt; this is a body&lt;/b&gt;&lt;/body&gt;&lt;/html&gt;"
signatures.Item(1).ApplyTo(msg, False)
msg.SaveAs("file.msg")
</code></pre>

<p>It works now thanks for all the answers! :)</p>

<p>You can use RDOSignature.ApplyTo - please see <a href="http://www.dimastr.com/redemption/rdosignature.htm" rel="nofollow">http://www.dimastr.com/redemption/rdosignature.htm</a> </p>

python email outlook outlook-redemption rdo