PDA

View Full Version : How to modify an outgoing email !?



bashiz
06-27-2005, 11:11 PM
Greetings all,
I am new to macro scripting and i need some help.
What i am trying to do is to add some sort of a signature but dependent on the receiver. I have tried the Application_ItemSend it works, but it keeps on asking about security manager or something like this. Is there a way to modify the message without being annoyed by any security manager ?!?!

Another question, How can some one write outlook addins? Lets say i want to add a new tab to the options menu, is that possible ?

Regards

MOS MASTER
06-28-2005, 09:29 AM
Hi & welcome to VBAX! :hi:

The error warning is a security warning of Outlook and you can't program arround it with normal VBA (Outlook Object Model)

On this page you'll find all possible work arrounds: Click here (http://www.outlookcode.com/d/sec.htm)

Outlook Redemption is a good tool to pack within your setup and works great!

Yes it's possible to add a new tab to the Options dialog. I don't know how to do it myself but I have a com add-in which does just that...so that proves it to me.

I think for that question you'd better go to the Outlook VBA newsgroup or better yet the VB newsgroup. (If you can't find the answer here)

Enjoy! :whistle:

Shazam
09-28-2005, 05:29 PM
This code will By-Pass the security warning of Outlook.





Sub Send_Test()
Dim objol As New Outlook.Application
Dim objmail As MailItem
Set objol = New Outlook.Application
Set objmail = objol.CreateItem(olMailItem)
With objmail
.To = "Anybody@home.com"
.Subject = "Who/Me"
.Body = ""
.NoAging = True
.Attachments.Add "C:\A test.xls"
.Display
End With
Set objmail = Nothing
Set objol = Nothing
SendKeys "%{s}", True

End Sub