Direct sending of email in plain text for SMS gateway
I used MS Access VBA command docmd.sendobject to send SMS type to SMS gateway. If I use the option "view mail", so that the mail window opens, the mail is sent as "plain text" as needed. However if I set to "view mail" disabled, basically the mail is passed through, and is sent as HTML and therefore rejected. In Thunderbird I have both types of mail in my email sent box. I have set in the Thunderbird general Options already everything to plein text and even indicated the "sms.at" as domain for plein text. Question is: As it does not work, what do I have to set, that all mails (also mails generated with a command from external source) and not opened with "View Window" are sent as PLAIN TEXT? Thany you in advance for your help
Chosen solution
You specify acFormatRTF, which is formatted mail. If you want to send plain text, you prolly have to use acFormatTXT
Read this answer in context 👍 0All Replies (6)
Are you sure that you are using Thunderbird to send the e-mail message?
Please explain how you managed to get Thunderbird to send an e-mail message without the Thunderbird compose window showing.
If Thunderbird is not being used to send the e-mail, then of course no settings in Thunderbird will apply.
Dear Bruce
Thunderbird is the only mail-programm installed. Within Access I use the VBA command: DoCmd.SendObject acSendNoObject, "", acFormatRTF, Email_Receivers_An, Email_Receivers_CC, Email_Receivers_BCC, EmailHeader, EmailMessage, ViewMail
If I set ViewMail to "True" than the Thunderbird Mailwindow opens; if false it it sent without opening the window, and this is causing the problem. In fact I could get in contact with the SMS.at provider who told me that the mail send with ViewMail = "False" then issued in HTML Format, meanwhile mails sent wit ViewMail=True are propery issued in plain text. I've checked all options in Thunderbird to set towards plaintext in general properties but still the problem persists. It would be great if you could give me a hint
thank you
Markus
This is beyond me, so I will see if someone else can help you.
If it was me, I would just do the extra step of viewing the e-mail and clicking Send.
This fix in 52.2 may resolve your problem:
"Messages sent via the Simple MAPI interface are forced to HTML"
https://www.mozilla.org/en-US/thunderbird/52.2.0/releasenotes/
Chosen Solution
You specify acFormatRTF, which is formatted mail. If you want to send plain text, you prolly have to use acFormatTXT
Dear Bruche, Sfhowes, dear Onno Ekker Thank you for your support. In fact it was the Issue about the MAPI forced to HTML. As I updated to 52.2.0 evertything worked fine again.
Thank you a lot for your support
Markus