Solved

send only plain text emails to a specified domain

Posted on 2009-07-01
5
524 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Does Powershell have you tied up in knots?

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

When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In this video we show how to create a mailbox database 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 Servers >> Data…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

749 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