Solved

Forwarding mail via Outlook VBA script

Posted on 2004-04-15
3
975 Views
Last Modified: 2006-11-17
Hello everyone.

I got some suggestions from others here on a script and it works good except that the Outlook security message pops up with every message.  I seen Stefri had mentioned using Redemption on question Q_20914658 to overcome this problem, but I have yet to get it to work.  Does anyone have any suggestions on how to get this to work?

Sub FwdToMe(Item As Outlook.MailItem)
    Dim myitem As Outlook.MailItem
    Dim address As String
    Set myitem = Item.Forward
    address = "email address"
    myitem.Recipients.Add address
    myitem.Body = "WHATEVER TEXT YOU WANT TO INSERT" & vbCrLf & vbCrLf & myitem.Body
    myitem.Send
End Sub

0
Comment
Question by:rchandler6473
3 Comments
 
LVL 13

Accepted Solution

by:
Mob-bom earned 125 total points
ID: 10833726
I assume you are using Outlook XP with SP3?  If so, you can't avoid it, its a new security feature released with SP3.  You can workaround it with http://www.express-soft.com/mailmate/clickyes.html

This link will give you the background on the security feature: http://www.slipstick.com/outlook/esecup.htm
0
 
LVL 65

Expert Comment

by:rockiroads
ID: 10833791
Ive got outlook 2000, I dont get that msg, might have something to do with outlook security updates

you could try going into Tools/Options and look at the security tab

perhaps look at zone settings/customise,

is anything in there?
0
 

Author Comment

by:rchandler6473
ID: 10835312
I'm using Outlook 2003, but this is for SPAM so I can try it on Outlook 2000, but I was under the impression that I couldn't run scripts from the rules.  Outlook XP you can, but I haven't tried it yet.  I'll get the express-soft.com thing a try.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem with Outlook autocomplete 4 52
Sending email from List Data 2 51
Outlook Disconnected 5 47
Excel copy picture into Outlook email 7 47
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
If you don't know how to downgrade, my instructions below should be helpful.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now