Class PHP criada para envio simples de email via API Mailgun . O usuário deve cadastrar seu domínio dentro da plataforma mailgun e assim gerando os valores de DNS records que será cadastrada em sua zona DNS. VERIFYING YOUR DOMAIN https://documentation.mailgun.com/en/latest/user_manual.html#verifying-your-domain ACCESS YOUR DOMAINS https://app.mailgun.com/app/sending/domains ACCESS YOUR PRIVATE API KEY https://app.mailgun.com/app/account/security/api_keys IMPLEMENTATION CODE require_once('SenderMailgun.php'); # Open file key $key = file_get_contents('key'); # Instantiate the client. SenderMailgun::$api_key = $key; # Data params email. $params = [ 'from'=> 'Your Name ', 'to'=>'your-client@gmail.com', 'subject'=>'Your subject', 'html'=>'Black Friday!!!' ]; # Action sender. SenderMailgun::send_mail('marketing.imaginarionerd.com.br',$params); print_r(SenderMailgun::$re...
Cybersecurity researcher specialized in GED (Gambiarra, Exploit and Development )