No attachment received when using SendEmailMessage function

No attachment received when using SendEmailMessage function

In Updates 187 and earlier (possibly back to Update 182), when you specify an attachment in this function, the resulting email that is generated does not include the attachment itself but rather tries to embed it as shown in the example below.

 

To resolve this issue, simply specify the 'multipart/mixed' as the Content Type after the Port and SSL parameters. eg: 25,False,'multipart/mixed'

 

This is a multi-part message in MIME format

 --jvhacujouZwbka=_11qE1JQyEhPxAR7xXs

Content-Type: text/plain; charset="us-ascii"

Content-Transfer-Encoding: quoted-printable

Content-Disposition: inline

 

This is the body

 

--jvhacujouZwbka=_11qE1JQyEhPxAR7xXs

Content-Type: application/octet-stream;

          name="Item Trans A9800.xls"

Content-Transfer-Encoding: base64

Content-Disposition: attachment;

          filename="Item Trans A9800.xls"

 

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAA

EAAA/v///wAAAAD+////AAAAAAAAAAD/////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////

    • Related Articles

    • The email recipient is finding that the pdf attachment is being stripped from the email

      If the recipient is using Microsoft Outlook then go to File>System Configuration>System Settings and click on the 'Environment Settings' tab. In that screen select 'Outlook' as the Email Client If the recipient is not using Microsoft Outlook then go ...
    • 4/12/2025 - New Scripting Syntax Verification Function

      New Scripting Syntax Verification Function A new 243 Ostendo.exe build has been released today, introducing a powerful feature that allows you to run syntax checking across all scripts within a database. This new validation operates similarly to the ...
    • 4/12/2025 - New Scripting Syntax Verification Function

      New Scripting Syntax Verification Function A new 243 Ostendo.exe build has been released today, introducing a powerful feature that allows you to run syntax checking across all scripts within a database. This new validation operates similarly to the ...
    • Auto Posting to from Ostendo - Accounting Link using Queue Service

      This document describes the setup process for the Queue Service and configuring the Accounting Link and Posting program to run on a pre-defined schedule You will also need the following service.exe loaded into your Ostendo folder to run Queue ...
    • Does Ostendo have a Shipment Tracking function?

      Shipments can cover shipments from local and overseas Suppliers. Ostendo’s Shipment Tracking Function provides facility to identify shipments and their content. Additionally you can record ETD and ETA in addition to Departure and Arrival Points. ...