Skip to content

Instantly share code, notes, and snippets.

M0H4MM33D M0H4MM33D

Block or report user

Report or block M0H4MM33D

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@M0H4MM33D
M0H4MM33D / sendtomail.ps1
Created Apr 27, 2018
Send auto rapport cvs or txt or .. to mail using powershell (ATTACHMENT FILE).
View sendtomail.ps1
$x=GET-Date
$t7en = "C:\Users\Administrateur\Desktop\rapport.csv"
$smtpServer = "smtp.gmail.com"
$sender = "EMAIL SERNDER"
$users = "EMAIL RCP";
$subject = "Rapport at $x"
$body = "By M0H4MM3D"
$message = new-object System.Net.Mail.MailMessage
$message.From = $sender
$message.To.Add($users)
You can’t perform that action at this time.