-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from loftwah/dl/email-and-mailing
Dl/email and mailing
- Loading branch information
Showing
7 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class UserMailer < ApplicationMailer | ||
default from: '[email protected]' | ||
|
||
def welcome_email(user) | ||
@user = user | ||
@url = 'http://linkarooie.com/login' | ||
mail(to: @user.email, subject: 'Welcome to Linkarooie!') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- app/views/user_mailer/welcome_email.html.erb --> | ||
<h1 style="font-family: Arial, sans-serif; color: #333;"> | ||
Welcome to Linkarooie, <%= @user.full_name %>! | ||
</h1> | ||
|
||
<p style="font-family: Arial, sans-serif; color: #555; line-height: 1.5;"> | ||
Thank you for signing up with Linkarooie! You can now manage and share all your important links in one place, along with tracking their performance. | ||
</p> | ||
|
||
<p style="font-family: Arial, sans-serif; color: #555; line-height: 1.5;"> | ||
To get started, log in and begin customizing your profile and adding your links: | ||
</p> | ||
|
||
<p style="text-align: center;"> | ||
<%= link_to 'Log in to Linkarooie', @url, | ||
style: 'background-color: #007bff; color: white; padding: 10px 20px; text-decoration: none; | ||
border-radius: 5px; font-family: Arial, sans-serif;' %> | ||
</p> | ||
|
||
<p style="font-family: Arial, sans-serif; color: #555; line-height: 1.5;"> | ||
If you have any questions or need assistance, don't hesitate to reach out. We're here to help you make the most of Linkarooie. | ||
</p> | ||
|
||
<p style="font-family: Arial, sans-serif; color: #555; line-height: 1.5;"> | ||
Best regards,<br> | ||
The Linkarooie Team | ||
</p> | ||
|
||
<hr style="border: none; border-top: 1px solid #ddd; margin: 20px 0;"> | ||
|
||
<p style="font-family: Arial, sans-serif; color: #777; text-align: center; font-size: 12px;"> | ||
You received this email because you signed up for Linkarooie. If this wasn't you, please ignore this email or contact our support team. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer | ||
class UserMailerPreview < ActionMailer::Preview | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require "rails_helper" | ||
|
||
RSpec.describe UserMailer, type: :mailer do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
end |