P
Prasad Bhagwat
Hi,
I wanted to save MailItem as OFT file .
I tried the following code with redemption.dll version 3.4.0.337
it gives me warning message when I call mySafeMailItem.SaveAs method by
passing Type parameter as 'OTemplate'.
after that I used same code with redemption.dll version 3.4.0.402
because OTemplate support is added for SaveAs in redemption.dll version
3.4.0.402
it is not giving me any warning message but it saves the file as MSG
but I am passing Type parameter as 'OTemplate'.
I need help .
How can I save MailItem as OFT without warning message?
Thanks in advance
Following is the used code
--------------------------------
Dim myApp As New Outlook.Application
Dim myMail As MailItem, newMail As MailItem
Dim mySafeMail As Object, newSafeMail As Object
Dim mtAtt As Attachments
Set myMail = myApp.CreateItem(olMailItem)
Set mySafeMail = CreateObject("Redemption.SafeMailItem")
mySafeMail.Item = myMail
mySafeMail.To = "(e-mail address removed)"
mySafeMail.Body = "hi this is sample mail for testing"
mySafeMail.Attachments.Add ("c:\mm.bmp")
mySafeMail.Attachments.Add ("c:\Sample.txt")
mySafeMail.SaveAs "c:\mymail.oft"
Set newMail = myApp.CreateItem(olMailItem)
Set newSafeMail = CreateObject("Redemption.SafeMailItem")
newSafeMail.Item = newMail
newSafeMail.To = "(e-mail address removed)"
newSafeMail.Attachments.Add "c:\mymail.oft"
newSafeMail.Attachments.Add "C:\Contacts.xml"
newSafeMail.Send
--------------------------------
I wanted to save MailItem as OFT file .
I tried the following code with redemption.dll version 3.4.0.337
it gives me warning message when I call mySafeMailItem.SaveAs method by
passing Type parameter as 'OTemplate'.
after that I used same code with redemption.dll version 3.4.0.402
because OTemplate support is added for SaveAs in redemption.dll version
3.4.0.402
it is not giving me any warning message but it saves the file as MSG
but I am passing Type parameter as 'OTemplate'.
I need help .
How can I save MailItem as OFT without warning message?
Thanks in advance
Following is the used code
--------------------------------
Dim myApp As New Outlook.Application
Dim myMail As MailItem, newMail As MailItem
Dim mySafeMail As Object, newSafeMail As Object
Dim mtAtt As Attachments
Set myMail = myApp.CreateItem(olMailItem)
Set mySafeMail = CreateObject("Redemption.SafeMailItem")
mySafeMail.Item = myMail
mySafeMail.To = "(e-mail address removed)"
mySafeMail.Body = "hi this is sample mail for testing"
mySafeMail.Attachments.Add ("c:\mm.bmp")
mySafeMail.Attachments.Add ("c:\Sample.txt")
mySafeMail.SaveAs "c:\mymail.oft"
Set newMail = myApp.CreateItem(olMailItem)
Set newSafeMail = CreateObject("Redemption.SafeMailItem")
newSafeMail.Item = newMail
newSafeMail.To = "(e-mail address removed)"
newSafeMail.Attachments.Add "c:\mymail.oft"
newSafeMail.Attachments.Add "C:\Contacts.xml"
newSafeMail.Send
--------------------------------