mail.idimitrov.dev/bin/test-mail

46 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
name="Ivan Dimitrov"
from="ivan@idimitrov.dev"
rand="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo '')"
to="test-$rand@srv1.mail-tester.com"
mail="From: $from
To: $to
Subject: Invitation to Our Upcoming Tech Symposium
List-Unsubscribe: <mailto:unsubscribe@example.com>
Dear John Doe,
I trust this email finds you in good health. I am delighted to extend an invitation to you for our upcoming Tech Symposium, an event that promises to be both exciting and enlightening.
Event Details:
Title: Tech Symposium 2022
Date: April 15, 2022
Time: 10:00 AM to 5:00 PM
Location: Silicon Valley Convention Center, CA
The symposium will feature a variety of activities including keynote speeches from industry leaders, interactive workshops on the latest tech trends, and networking sessions with professionals from across the globe. We believe that your presence and participation would greatly enhance the event.
Please RSVP by April 1, 2022, so we can ensure we have a spot reserved for you. You can RSVP by replying to this email or contacting us at rsvp@example.com or 123-456-7890.
We look forward to your positive response and hope to see you at the Tech Symposium 2022.
Best Regards,
Jane Smith
Event Coordinator
jane.smith@example.com
123-456-7890
P.S. If you wish to stop receiving these emails, you can unsubscribe by replying with 'UNSUBSCRIBE' in the subject line.
"
echo "$mail" | sendmail -t -F "$name" -f "$from"
echo "https://mail-tester.com/test-$rand"