Re: email sent via dma is received in plain text without attachments

From: John Levine <johnl_at_iecc.com>
Date: Fri, 22 Aug 2025 15:48:56 UTC
According to Dale Scott <dale@dalescott.net>:
>-=-=-=-=-=-
>
>Hi all, I'm hosting webERP, a PHP business web app, on FreeBSD 14.2 
>using PHP 8.2. webERP uses phpMail to send HTML-format emails with PDF 
>attachments. The server uses dma to send email to the SMTP2GO smarthost 
>for delivery. The trouble is that received email is text format instead 
>of HTML and missing the expected PDF attachment.
>
>Any idea what could be causing this or what to do about it?

DMA does not do anything clever to the mail it handles.  If you're not
getting the HTML and attachments, that's because the PHP script isn't
adding them.  I suppose it's theoretically possible that SMTP2GO is
stripping them but that seems rather unlikely.

When you say phpMail, do you mean the PHPMailer library, the built in
PHP mail() function, or something else?