I obtained a piece of code to send eMail with attachments and part of the code I do not understand!
How does the <<< EMAIL_MESSAGE work? Is it not straight PHP?
$message = <<<EMAIL_MESSAGE
–PHP-mixed-$random_hash
Content-Type: text/html; charset=“iso-8859-1”; boundary="PHP-alt-$random_hash
Hello World!
This is something with HTML formatting.
--PHP-mixed-$random_hash Content-Type: application/pdf; name="$file1" Content-Transfer-Encoding: base64 Content-Disposition: attachment$attachment1
–PHP-mixed-$random_hash
Content-Type: image/jpg; name="$file2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment
$attachment2
–PHP-mixed-$random_hash–
EMAIL_MESSAGE;