enviar_correos_usando_sendgrid_con_el_modulo_de_mailozaurr
Esto lo armó chatgpt y lo edité un poco para que funcione.
# Import the module Import-Module Mailozaurr # Set the API key and other parameters $apiKey = "SG.************ API Key ****************" $from = "[email protected]" $to = "[email protected]" $subject = "Test Email 📧" $body = "This is a test email sent from Powershell CLI using Mailozaurr and SendGrid API ✨" # Send the email Send-EmailMessage -From $from -To $to ` -Username 'apikey' ` -Server 'smtp.sendgrid.net' ` -Password $apiKey ` -Body $body -DeliveryNotificationOption OnSuccess ` -Priority High -Subject $subject -UseSsl -Port 587 -Verbose
To-Do: ver cómo habilitar la flag para que envíe el body como contenido html
enviar_correos_usando_sendgrid_con_el_modulo_de_mailozaurr.txt · Last modified: 2024/10/17 21:42 by 127.0.0.1
