This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change these details accordingly | |
SMTP_HOST='smtps://smtp.gmail.com:465' | |
SENDER_EMAIL='[email protected]' | |
SENDER_PASSWORD='yourpassword' | |
RECEIVER_EMAIL='[email protected]' | |
# Generate body of email in a file | |
echo "From: $SENDER_EMAIL" > emailbody |