/**
  * @dataProvider testProvider
  */
 public function test($config, $from)
 {
     // set pwd
     $config["password"] = $this->pwd[$config["username"]];
     if (array_key_exists("backup", $config)) {
         $config["backup"]["password"] = $this->pwd[$config["backup"]["username"]];
     }
     // send email
     $out = \SwiftmailerWrapper\Utils::mail_attachment(array("Attachment.txt" => __DIR__ . "/attach.txt"), ME1, $from, "Shadi Akiki", $from, "swiftmailer-wrapper unit test email", "This is a message. It <i>supports</i> html." . " This is a unit test from <a href='https://github.com/shadiakiki1986/swiftmailer-wrapper'>swiftmailer-wrapper</a> from " . php_uname(), $config);
     $this->assertNotNull($out);
 }
Example #2
0
 public static function mail_attachment($files, $mailto, $from_mail, $from_name, $replyto, $subject, $message, $config)
 {
     return \SwiftmailerWrapper\Utils::mail_attachment($files, $mailto, $from_mail, $from_name, $replyto, $subject, $message, $config);
 }