Skip to Main Content

Table ted_mail_test_parts

TypeIDDispositionFilename
application/pdf-attachmentpdf_file1.pdf
application/pdf-attachmentpdf_file2.pdf
image/jpeglogo.jpg@tedstruik.nlinlineTed Struik - Oracle Development logo.jpg
image/jpegsmall_oval.jpg@tedstruik.nlinlinesmall_oval.jpg

Info

A package to send emails with plain text and/or html body, including attachments (both inline and as attachment).

Getting the code to comply with MIME specifications was a challenge; not because of the complexity of MIME, but mostly because of the hard-to-read documentation... Especially getting the boundaries to work took a while.
Does not include all MIME features (yet), but works well.

The package also contains some test procedures to easily generate test e-mails (these use the pdf and image objects from the ted_mail_test_parts table - you can use your own test data for that of course).

Code

Table

Table
Name
DDL

Package

Package
Name
Source

Package Body

Package Body
Name
Source