Skip to content

Instantly share code, notes, and snippets.

@optikalefx
optikalefx / MultipleEmailAttachments.php
Last active July 10, 2023 13:02
Multiple Email Attachments PHP from scratch
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
if(isset($_FILES) && (bool) $_FILES) {
$allowedExtensions = array("pdf","doc","docx","gif","jpeg","jpg","png","rtf","txt");
$files = array();