Windows Support Tools

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 23 December 2008

How to add a disclaimer to outgoing SMTP messages in Visual Basic script

Posted on 02:33 by Unknown
Create the event sink
To create an event sink, paste the following code in a new file and save it as EventSinkScript.vbs.
Register the event sink
To register your event sink, use the Smtpreg.vbs file, which is installed with the Exchange SDK. From a command prompt, browse to the ...\Exchange SDK\SDK\Support\CDO\Scripts folder and type the following (make sure that the path to EventSinkScript.vbs is correct):
cscript smtpreg.vbs /add 1 onarrival SMTPScriptingHost CDO.SS_SMTPOnArrivalSink "mail from=*@your-domain-here.com"
cscript smtpreg.vbs /setprop 1 onarrival SMTPScriptingHost Sink ScriptName "C:\EventSinkScript.vbs"
If the command succeeds, you receive a success message generated by the script.

To unregister this event, type the following:
cscript smtpreg.vbs /remove 1 OnArrival SMTPScriptingHost
For more information on registering events with Smtpreg.vbs, see the "Managing Event Bindings" topic on the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/ms526620(EXCHG.10).aspx For more information, click the following article number to view the article in the Microsoft Knowledge Base:
324021 How to create a "catchall" mailbox sink for Exchange Server

Test the event sink
To test your sink, send an e-mail message to an SMTP recipient who is external to your organization. The recipient should receive a modified message with the disclaimer added to the end of the message.

Note If you use a MAPI client such as Microsoft Outlook to send the e-mail and if the Exchange mailbox resides on the same server as the event sink binding, the recipient may not receive the modified message. This is because messages that are submitted by using MAPI are not in SMTP format when the e-mail triggers the SMTP transport event. Therefore, changes that are made by the event's code are not persisted.


This is working for me....
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • What is Cloud Computing ?
  • Setting up a DHCP server in Windows 2003
    The DHCP server assigns a client an IP address taken from a predefined scope for a given amount of time. If an IP address is required for lo...
  • Cartoons of the Week
  • Manage your home network better with Network Magic 5.0
    Cisco announced on Thursday Network Magic 5.0, a suite of network management software. This is is the first product released by Cisco since ...
  • Google Sinks Cash into Undersea Cable
    Google has joined the Unity consortium, which will build a $300 million fiber optic cable linking the US and Japan. The 7.68 Tbps, 10,000 ki...
  • Battle Progress Map
  • Exchange Server 2010 Beta available
    Microsoft Exchange Server 2010 brings a new and rich set of technologies, features, and services to the Exchange Server product line. This t...
  • Nambara Sanda Wage
  • Complete Wireless Design (McGraw-Hill, 2008, English)
    ON THE CD-ROM *PUFF RF/Microwave circuit simulation software *Sonnet Lite electromagnetic simulation software *National's PLL Design Pro...
  • Keyshia Cole - Just Like You (2007)
    1- Let It Go feat Missy Elliot and Lil Kim [03:58] 02- Didn't I Tell You feat Too Short [03:52] 03- Fallin Out [04:27] 04- Give Me More ...

Categories

  • ISA Firewall
  • ISA Server 2006
  • Quick Tips
  • Reports
  • Tips

Blog Archive

  • ►  2013 (7)
    • ►  October (6)
    • ►  February (1)
  • ►  2012 (10)
    • ►  September (3)
    • ►  August (3)
    • ►  July (3)
    • ►  June (1)
  • ►  2011 (16)
    • ►  August (2)
    • ►  July (4)
    • ►  June (3)
    • ►  May (1)
    • ►  April (1)
    • ►  March (4)
    • ►  January (1)
  • ►  2010 (12)
    • ►  December (3)
    • ►  October (4)
    • ►  March (1)
    • ►  January (4)
  • ►  2009 (67)
    • ►  August (2)
    • ►  July (18)
    • ►  June (23)
    • ►  April (3)
    • ►  March (6)
    • ►  February (7)
    • ►  January (8)
  • ▼  2008 (319)
    • ▼  December (30)
      • graphic viewer for Windows 9x/ME/NT/2000/XP/2003/V...
      • Wish you a Happy New Year !!!!!
      • A Benchmark Strategy to Search Engine Marketing (SEM)
      • Google Analytics Interface Tutorial
      • SEO Tips - improve Google ranking of your website
      • How to Become an SEO Specialist?
      • Free Clipboard Manager for keeping the clipboard h...
      • ClipX
      • Universal Extractor
      • CD/DVD Drive Letter Missing from My Computer
      • PayPal XSS Vulnerability Undermines EV SSL Security
      • FREE PDF Printer
      • Bank Sale -
      • Key Problem - Sri Lanka Ceylinco chief says Golden...
      • Golden Key Fraud in Sri Lanka
      • Merry Christmas and a Happy New Year!
      • How to add a disclaimer to outgoing SMTP messages ...
      • Remotely Recover Deleted Files on Network Computer...
      • TeamViewer
      • TomTom Releases Free Online Router Planner
      • FREE Norton Internet Security 2009 Subscription Va...
      • 10 mistakes new Linux administrators make
      • With news of Linux kernel 2.6 being ported to the ...
      • Nokia Stops Selling Mobile Phones In Japan
      • How to Promote Your Blog – The Definitive Guide to...
      • Be A Good Manager By Letting People Learn And Grow...
      • HIV facts and stats
      • How to Disable the Hidden Administrative Shares (c...
      • 8 Work At Home Time Management Strategies
      • With Vista SP2, Microsoft is back on track
    • ►  November (43)
    • ►  October (45)
    • ►  September (12)
    • ►  August (18)
    • ►  July (27)
    • ►  June (15)
    • ►  May (7)
    • ►  April (55)
    • ►  March (65)
    • ►  January (2)
  • ►  2007 (10)
    • ►  December (2)
    • ►  November (8)
Powered by Blogger.

About Me

Unknown
View my complete profile