I am trying to send an email using phpmailer https://github.com/PHPMailer/PHPMailer to send an email via SMTP. There is a requirement that the email has no content in the body, only an attatchment.
If I neglect to include $body or set $body = '' then I get an error message telling me that 'Mailer Error: Message body empty'
Does anybody know of a workaround or a way to force PHPMailer to accept a blank body>?
$body = ' ';
? – user557846