Using mapisend to send a message in plain text

Posted on 2006-06-01
Last Modified: 2010-05-18

I use mapisend frequently to send automated e-mails from command lines.  I now have a situation where I need to ensure the message (and attachment) are sent in plain text, not rich text.

The attachment is a simple ASCII datafile created by a third party application, so it is not save in rich text to being with.  However, when I send the file using mapisend, something is changing it into thinking it is rich text.

I thought perhpas there is an undocument switch in mapisend, or maybe a way to default the recipient to always get plain text.  I thought the latter might be possible through Outlook (using Outlook 2000), but haven't been able to find a way of doing this.  

I also tried a vbscript using CDONTS, but couldn't get it to work as CDONTS is no longer supported on Win 2003 (yes, I did install the dll and register it, but still getting a "path not recoginzied" error).

Finally, I tried using a vbscript using the new CDO.Message object, but could not get it to send outside the organization.  Sending to an internal address works fine, but sending to an external recipient bouces the message back.

Any suggestions would be appreciated!
Question by:quiTech
    1 Comment
    LVL 31

    Accepted Solution

    I don't know about the mapisend thing (although it might be worth checking the properties of your default Internet Message Format in ESM.  Look at the Message Format tab), but you may need to tell your server to allow relaying from the sending IP when you use CDO.Message .

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
    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…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    734 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

    22 Experts available now in Live!

    Get 1:1 Help Now