Solved

send only plain text emails to a specified domain

Posted on 2009-07-01
5
519 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
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…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

744 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

9 Experts available now in Live!

Get 1:1 Help Now