Skip to content

Instantly share code, notes, and snippets.

@RealyUniqueName
Created October 27, 2015 09:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RealyUniqueName/8e41f6899b1f3a296562 to your computer and use it in GitHub Desktop.
Save RealyUniqueName/8e41f6899b1f3a296562 to your computer and use it in GitHub Desktop.
@:native('\\phpmailerNamespace\\PHPMailer')
extern class PHPMailerNative
{
public function addAttachment( path : String, name : String = "", encoding : String = "base64", type : String = "", disposition : String = "attachment" ) : Bool
}
class PHPMailer extends PHPMailerNative
{
override public function addAttachment( path : String, name : String = "", encoding : String = "base64", type : String = "", disposition : String = "attachment" ) : Bool
{
return super.addAttachment(path,name,encoding,type,disposition);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment