Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

send only plain text emails to a specified domain

Posted on 2009-07-01
5
Medium Priority
?
531 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 2000 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
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…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

783 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