I have a custom field that generates a QR code in base64 format via the cred_save_form hook. I want to include this QR code as an image in the notification email sent by Toolset.
Solution:
Embedding base64 images directly in emails is unreliable across email clients like Gmail and Outlook. Instead, generate the QR code as an image file on the server and attach it to the email using cred_notification_recipients. Modify wp_mail to reference the image via a Content-ID (CID) to ensure proper display in the email body.