Postagens

Mostrando postagens de julho, 2020

Script PHP de envio de email no PHPMailer usando uma lista de endereços

<?php //Import the PHPMailer class into the global namespace use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; require_once("vendor/autoload.php"); $listas = file("/var/www/html/testemail/contas"); foreach($listas as $usuario) { //echo ($usuario); /**  * This example shows making an SMTP connection without using authentication.  */ //Create a new PHPMailer instance $mail = new PHPMailer; //Tell PHPMailer to use SMTP $mail->isSMTP(); //Enable SMTP debugging // SMTP::DEBUG_OFF = off (for production use) // SMTP::DEBUG_CLIENT = client messages // SMTP::DEBUG_SERVER = client and server messages $mail->SMTPDebug = SMTP::DEBUG_SERVER; //Set the hostname of the mail server $mail->Host = 'antispam.seati.ma.gov.br'; //Set the SMTP port number - likely to be 25, 465 or 587 $mail->Port = '25'; if ($mail->Port == 465)         $mail->SMTPSecure = "ssl";         $mail->SMTPAuth = &

Template zabbix RITTAL CMC II SNMP

<?xml version="1.0" encoding="UTF-8"?> <zabbix_export>     <version>3.2</version>     <date>2020-04-01T20:15:30Z</date>     <groups>         <group>             <name>SALA COFRE</name>         </group>     </groups>     <hosts>         <host>             <host>SALA-COFRE</host>             <name>SALA-COFRE</name>             <description>CMC - Monitoramento da Sala Cofre</description>             <proxy/>             <status>1</status>             <ipmi_authtype>-1</ipmi_authtype>             <ipmi_privilege>2</ipmi_privilege>             <ipmi_username/>             <ipmi_password/>             <tls_connect>1</tls_connect>             <tls_accept>1</tls_accept>             <tls_issuer/>             <tls_subject/>             <tls_ps