Skip to content

Instantly share code, notes, and snippets.

@hydrastro
hydrastro / send_mail.sh
Last active October 22, 2021 13:18
Bash SMTP(/S) authentication and mailsending script
#!/bin/bash
smtp_address=""
smtp_username=""
smtp_password=""
smtp_server=""
smtp_port=587
use_starttls=true
send_mail() {