Using Iwmmailer or the email option can configure the text

Hello everyone,

I’m using BigFix Web Reports and sending automated emails through lwmailer.exe as a custom executable. My goal is to send the reports with a fully formatted HTML email that includes embedded images (PNGs) within the body of the message, not as attachments.

Here’s my current setup for sending emails:

php

Copy code

lwmailer.exe -smtp_server=<server> -smtp_port=<port> -username=<username> -password=<password> -mail_to=<recipient> -mail_from=<sender> -subject="<activityname>" -message_body="<message>" -attachment="<reportfile>" -Output_Format=pdf -smtp_enablessl=no -script_delay=40000

The problem is that I need to:

  1. Embed PNG images directly in the body of the HTML email (not as attachments).
  2. Format the email body using HTML (with inline images, styling, etc.).

I’ve tried using base64 encoding for inline images, but it doesn’t seem to work with lwmailer.exe as expected. Is there a way to achieve this with the current setup? Alternatively, is there a method to run additional scripts or commands within the Web Reports configuration to handle this?

Any advice or examples would be greatly appreciated!

if i cannot do this with iwmaile how could i configure this using the email option if possible