<?php $fileatt = ""; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = ""; // Filename that will be used for the file as the attachment
$email_from = ""; // Who the email is from $email_subject = ""; // The Subject of the email $email_message = ""; // Message that the email has in it
$email_message .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $email_message . "\n\n";
/********************************************** First File ********************************************/
$fileatt = ""; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = ""; // Filename that will be used for the file as the attachment
/********************************************** Second File ********************************************/
$fileatt = ""; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = ""; // Filename that will be used for the file as the attachment
if($ok) { echo "<font face=verdana size=2>The file was successfully sent!</font>"; } else { die("Sorry but the email could not be sent. Please go back and try again!"); } ?>
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.