How Email Address Validation and Formatting Works
Source: autosoft-workshop/app/mailers/workshop_mailer.rb
- Email address validation checks for the presence of @ and . characters — any string containing both passes validation, regardless of format correctness
- Multiple recipients are supported by separating addresses with semicolons, commas, or spaces — all three delimiters are treated equivalently
- The company name has commas stripped when used in the email From header — this prevents the comma from being interpreted as an address separator in the email header
Support scenarios
- "An invalid email address was accepted" → validation only checks for @ and . characters; it does not verify the full email format or whether the address actually exists
- "I need to send to multiple people" → separate addresses with semicolons, commas, or spaces — all three work
- "The From name in our emails is missing a comma" → commas are intentionally stripped from company names in the From header to prevent email header parsing issues