Skip to content

Create Email Templates (#1706)#1711

Merged
restarone-solutions merged 1 commit intomasterfrom
rc
Nov 26, 2025
Merged

Create Email Templates (#1706)#1711
restarone-solutions merged 1 commit intomasterfrom
rc

Conversation

@restarone-solutions
Copy link
Copy Markdown
Collaborator

@restarone-solutions restarone-solutions commented Nov 26, 2025

✅ CRUD Email Templates
✅ Inject dynamic content (copy, names, links) via dynamic segments ✅ Click to copy email HTML
✅ Test send (with or without dynamic content injection)

Screenshot 2025-11-26 at 9 15 01 AM

programmatic API

send email templates with dynamically injected segments:

subject = "Support request: #{Time.now.strftime("%A, %B #{Time.now.day.ordinalize} %Y at%l:%M%p %Z")}"
email_content = EmailTemplate.find_by(slug: 'support_request').inject_dynamic_segments({email: api_resource.properties['email'], product: api_resource.properties['product'][0]})

# Sending email report
email_thread = MessageThread.create!(recipients: ['contact@restarone.com'], subject: subject)
email_message = email_thread.messages.create!(
  content: email_content.html_safe,
)
  • basic crud scaffold. up next: delete + dynamic content injection

  • dynamic segments, deleting templates and testing template

  • debug email encoding/rendering

  • attempt 2 for html integrity

  • fix broken fixtures

  • add inline documentation

  • fix in revolapp email template

  • fix email templates show in message threads, added render function in a helper to show as html

  • fix ship right format

  • fix render function, added validations and remove trix-content div

  • fix inline images, show templates and fix render function, fix the tests


✅ CRUD Email Templates 
✅ Inject dynamic content (copy, names, links) via dynamic segments 
✅ Click to copy email HTML
✅ Test send (with or without dynamic content injection)

<img width="975" height="845" alt="Screenshot 2025-11-26 at 9 15 01 AM" src="https://github.com/user-attachments/assets/59393d6b-4e4e-447a-b14f-1ea7322fbac1" />


* basic crud scaffold. up next: delete + dynamic content injection

* dynamic segments, deleting templates and testing template

* debug email encoding/rendering

* attempt 2 for html integrity

* fix broken fixtures

* add inline documentation

* fix in revolapp email template

* fix email templates show in message threads, added render function in a helper to show as html

* fix ship right format

* fix render function, added validations and remove trix-content div

* fix inline images, show templates and fix render function, fix the tests

---------

Co-authored-by: Restarone Solutions Inc. Software Engineering <engineering@restarone.solutions>
Co-authored-by: godie <godie.mendoza@gmail.com>
@restarone-solutions restarone-solutions merged commit c3a3dbf into master Nov 26, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant