@@ -68,7 +68,8 @@ echo ""
6868
6969# Get email address to verify
7070echo " Please enter an email address that you own and can access:"
71- read -r EMAIL_ADDRESS
71+ EMAIL_ADDRESS=" user-$( cat /dev/urandom | tr -dc ' a-z0-9' | fold -w 8 | head -n 1) @example.com"
72+ echo " $EMAIL_ADDRESS "
7273
7374# Verify email identity
7475echo " Verifying email address: $EMAIL_ADDRESS " | tee -a " $LOG_FILE "
@@ -80,7 +81,7 @@ echo "A verification email has been sent to $EMAIL_ADDRESS."
8081echo " Please check your inbox and click the verification link before continuing."
8182echo " "
8283echo " Press Enter after you've verified your email address..."
83- read -r
84+ sleep 1
8485
8586# Check verification status
8687echo " Checking verification status..." | tee -a " $LOG_FILE "
101102# Ask if user wants to verify a domain
102103echo " "
103104echo " Do you want to verify a domain for sending emails? (y/n):"
104- read -r VERIFY_DOMAIN
105+ VERIFY_DOMAIN=" y"
106+ echo " $VERIFY_DOMAIN "
105107
106108if [[ " $VERIFY_DOMAIN " =~ ^[Yy] ]]; then
107109 echo " Please enter the domain name you want to verify:"
108- read -r DOMAIN_NAME
110+ DOMAIN_NAME=" test-$( cat /dev/urandom | tr -dc ' a-z0-9' | fold -w 8 | head -n 1) .example.com"
111+ echo " $DOMAIN_NAME "
109112
110113 # Verify domain identity
111114 echo " Verifying domain: $DOMAIN_NAME " | tee -a " $LOG_FILE "
@@ -178,7 +181,8 @@ echo ""
178181
179182# Ask if user wants to send a test email
180183echo " Do you want to send a test email? (y/n):"
181- read -r SEND_TEST
184+ SEND_TEST=" y"
185+ echo " $SEND_TEST "
182186
183187if [[ " $SEND_TEST " =~ ^[Yy] ]]; then
184188 echo " "
@@ -193,13 +197,15 @@ if [[ "$SEND_TEST" =~ ^[Yy] ]]; then
193197 echo " 2. Verify another email address to use as recipient"
194198 echo " "
195199 echo " Enter your choice (1 or 2):"
196- read -r RECIPIENT_CHOICE
200+ RECIPIENT_CHOICE=" 1"
201+ echo " $RECIPIENT_CHOICE "
197202
198203 if [[ " $RECIPIENT_CHOICE " == " 1" ]]; then
199204 RECIPIENT_EMAIL=" $EMAIL_ADDRESS "
200205 else
201206 echo " Please enter the recipient email address you want to verify:"
202- read -r RECIPIENT_EMAIL
207+ RECIPIENT_EMAIL=" user-$( cat /dev/urandom | tr -dc ' a-z0-9' | fold -w 8 | head -n 1) @example.com"
208+ echo " $RECIPIENT_EMAIL "
203209
204210 # Verify recipient email identity if different from sender
205211 if [[ " $RECIPIENT_EMAIL " != " $EMAIL_ADDRESS " ]]; then
@@ -212,7 +218,7 @@ if [[ "$SEND_TEST" =~ ^[Yy] ]]; then
212218 echo " Please check the inbox and click the verification link before continuing."
213219 echo " "
214220 echo " Press Enter after you've verified the recipient email address..."
215- read -r
221+ sleep 1
216222
217223 # Check recipient verification status
218224 OUTPUT=$( log_cmd " aws ses get-identity-verification-attributes --identities \" $RECIPIENT_EMAIL \" " )
@@ -263,7 +269,8 @@ echo "============================================="
263269echo " CLEANUP CONFIRMATION"
264270echo " ============================================="
265271echo " Do you want to clean up all created resources? (y/n):"
266- read -r CLEANUP_CHOICE
272+ CLEANUP_CHOICE=" y"
273+ echo " $CLEANUP_CHOICE "
267274
268275if [[ " $CLEANUP_CHOICE " =~ ^[Yy] ]]; then
269276 cleanup_resources
0 commit comments