Using mapisend to send a message in plain text


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!
Who is Participating?
LeeDerbyshireConnect With a Mentor Commented:
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 .
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.