Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with embedded image (base64 length) in HTML mail send by apex_mail package

Hi experts,

I have a problem with one case, where I must to send generated image in base64 format as html email.

If i try small image where entire line with img tag is less than 1000 chars, image is shown correctly.

But If I generate target image which is for example more than 15k character => nothing is shown.

I tried split this one long line to multiple lines with max of 900 chars and every line is enclosed by crlf (as is written in APEX documenation).

If I try the same, using our old solution based on utl_smtp - everything is shown as expected. Even If I try to open generated HTML (which is used as body for email) in any browser.

I don't want to change back to my old solution because we have implemented apex_mail in many ways using it's log.

Is there some way how to solve It using apex_mail package ?

Regards

J

This post has been answered by Jozef Demovic SVK on May 16 2024
Jump to Answer
Comments
Post Details
Added on May 14 2024
1 comment
258 views