PHP Classes

File: api/library/PHPMailer-master/test/fakesendmail.sh

Recommend this page to a friend!
  Classes of adriano123456   API Voucher PHP School Management System   api/library/PHPMailer-master/test/fakesendmail.sh   Download  
File: api/library/PHPMailer-master/test/fakesendmail.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: API Voucher PHP School Management System
Manage school activities, courses and students
Author: By
Last change:
Date: 2 years ago
Size: 474 bytes
 

Contents

Class file image Download
#!/usr/bin/env bash #Fake sendmail script, adapted from: #https://github.com/mrded/MNPP/blob/ee64fb2a88efc70ba523b78e9ce61f9f1ed3b4a9/init/fake-sendmail.sh #Create a temp folder to put messages in numPath="${TMPDIR-/tmp/}fakemail" umask 037 mkdir -p $numPath if [ ! -f $numPath/num ]; then echo "0" > $numPath/num fi num=`cat $numPath/num` num=$(($num + 1)) echo $num > $numPath/num name="$numPath/message_$num.eml" while read line do echo $line >> $name done exit 0