How Inspection Email Delivery Details Work
Source: autosoft-workshop/app/mailers/workshop_mailer.rb
- The welcome email template varies based on the app type — if the email subject contains "dealership", the dealership template is used instead of the standard workshop template
- Company deletion warning emails have two severity levels: 1st Warning fires at the 2-month inactivity mark, and Final Warning fires for longer periods
- Date formatting in deletion warning emails varies by language setting: UK uses DD/MM format while other languages use MM/DD format
- SES domain record emails silently skip sending if the email body is blank — no error is raised
- The reply-to address is set to the company's formatted email address, so customer replies go directly to the company rather than to the system
Support scenarios
- "We got a dealership welcome email but we're not a dealership" → the template is selected based on whether the email subject contains the word "dealership"; check how the company was set up
- "The date format in the deletion warning looks wrong" → date format depends on language setting: UK = DD/MM, other languages = MM/DD
- "The customer's reply went to us instead of a support inbox" → reply-to is intentionally set to the company's email so customer replies go to the business
- "We expected a domain verification email but it never arrived" → if the email body was blank, SES silently skips sending; check that the email content was generated correctly