Solved

send only plain text emails to a specified domain

Posted on 2009-07-01
5
520 Views
Last Modified: 2013-11-30
I'm asking this question again to see if anyone else has any ideas. I need all users in our company to send only plain text emails to a specified domain.

Please read my previous question here:

http://www.experts-exchange.com/Networking/Protocols/Application_Protocols/Email/SMTP/Q_24534906.html?cid=239
0
Comment
Question by:pixelchef
  • 3
  • 2
5 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 24761528
Hi, pixelchef.

I can accomplish this with a simple bit of scripting.  Unfortunately there is no automated means of distributing Outlook macros.  The closest you can come to an automated distribution is to overwrite Outlook's code file on each computer.  That will work so long as none of the users in your company have any code in Outlook.  If they do, then they'll lose it when the code file is overwritten.  Let me know how you'd like to proceed.
0
 

Author Comment

by:pixelchef
ID: 24859708
Hi BlueDevilFan

We went a different direction to solve our situation. If you want to post the code or instructions in case it helps me or someone else in the future, I'll go ahead and award your points.
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 24865479
Ok.  Here's the code.  Follow these instructions to use it.

Outlook 2003 and Earlier

1.  Start Outlook
2.  Click Tools > Macro > Visual Basic Editor
3.  If not already expanded, expand Microsoft Office Outlook Objects and click on ThisOutlookSession
4.  Copy the code from the Code Snippet box and paste it into the right-hand pane of
5.  Outlook's VB Editor window
6.  Edit the code as needed.  I included comment lines wherever something needs to or can change
7.  Click the diskette icon on the toolbar to save the changes
8.  Close the VB Editor
9.  Click Tools > Macro > Security
10. Set the Security Level to Medium
11. Close Outlook
12. Start Outlook
13. Outlook will display a dialog-box warning that ThisOutlookSession contains macros and asking if you want to allow them to run.  Say yes.


Outlook 2007

1.  Start Outlook
2.  Click Tools->Macro->Visual Basic Editor
3.  If not already expanded, expand Microsoft Office Outlook Objects and click on ThisOutlookSession
4.  Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
5.  Edit the code as needed.  I included comment lines wherever something needs to or can change
6.  Click the diskette icon on the toolbar to save the changes
7.  Close the VB Editor
8.  Click Tools > Trust Center
9.  Click Macro Security
10. Set Macro Security to "Warnings for all macros"
11. Click OK
12. Close Outlook
13. Start Outlook.  Outlook will display a dialog-box warning that ThisOutlookSession contains macros and asking if you want to allow them to run.  Say yes.


Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

    Dim olkRecipient As Outlook.Recipient

    If Item.Class = olMail Then

        For Each olkRecipient In Item.Recipients

            If InStr(1, LCase(olkRecipient.Address), "faxmaker.com") Then

                Item.BodyFormat = olFormatPlain

                Item.Save

                Exit For

            End If

        Next

    End If

End Sub

Open in new window

0
 

Author Closing Comment

by:pixelchef
ID: 31598818
Thank you BlueDevilFan
0
 
LVL 76

Expert Comment

by:David Lee
ID: 24869670
You're welcome.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

If you don't know how to downgrade, my instructions below should be helpful.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
This video discusses moving either the default database or any database to a new volume.

932 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

10 Experts available now in Live!

Get 1:1 Help Now