March 2016

phpMail

Sending email with multiple attachment using PhP

The posted below PhP code (function) can be used to send an email with multiple attachment using PhP. ========= =========== ========= <?php $attch1=/attach/file1.txt $attach2=/attach/file2.txt $thefiles[0]=”$attch1″; $thefiles[1]=”$attch2″; $to = “destination@domain.com”; $subject = “Hello”; $message = “How…