Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email templates #74

Merged
merged 4 commits into from
Mar 1, 2015
Merged

Email templates #74

merged 4 commits into from
Mar 1, 2015

Conversation

aktwo
Copy link
Collaborator

@aktwo aktwo commented Feb 28, 2015

Resolves #52

Confirmation email (both plaintext, html in-browser and html in Apple Mail)

screen shot 2015-02-28 at 12 31 33 am
screen shot 2015-02-28 at 4 28 37 pm
screen shot 2015-02-28 at 4 31 01 pm

Reset password email (both plaintext, html in-browser and html in Apple Mail)

screen shot 2015-02-28 at 12 37 38 am
screen shot 2015-02-28 at 4 30 23 pm
screen shot 2015-02-28 at 4 30 46 pm


<p>If you didn't request this, please ignore this email.</p>
<p>Your password won't change until you access the link above and create a new one.</p>
<h2>Hey there!</h2>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think about having "Forgot your password?" as the header for this one? strange to have the same "Hey there!" for both welcome email and forgot your password email

@namukang
Copy link
Owner

Strange, why don't the buttons in the screenshots have green backgrounds and white text?

@aktwo
Copy link
Collaborator Author

aktwo commented Feb 28, 2015

I couldn't figure out why either. Also agreed UserMailer is fine.

@aktwo
Copy link
Collaborator Author

aktwo commented Feb 28, 2015

So I figured out why I thought I broke it yesterday... I was running the server while still rebasing the git history, and I hadn't added email.css to the asset pipeline by the commit that i was on.

@namukang
Copy link
Owner

can we figure out how to make the buttons look like buttons? (filled in with green, white text)

we should find out why the css styles are not being applied anyway b/c unpredictable behavior is concerning

<p>Your password won't change until you access the link above and create a new one.</p>
<h2>Hey there!</h2>
<p>Forgot your password? No problem.</p>
<p><%= link_to 'Reset my password', edit_password_url(@resource, reset_password_token: @token), class: "btn btn-lg btn-success" %></p>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "Reset my password" -> "Reset Password"?
(capitalizing first character of each word and dropping "my")

@aktwo
Copy link
Collaborator Author

aktwo commented Feb 28, 2015

Fixed the issue by using a static image of a button hosted on an external server. I only used an external server because there is a known issue with Roadie serving local image files (Mange/roadie-rails#10). I could have monkey-patched it, but I figured this was a cleaner solution just to get the product launched.

@aktwo aktwo force-pushed the email_templates branch 2 times, most recently from 3e6cbb1 to 6f0d19b Compare February 28, 2015 21:57
@namukang
Copy link
Owner

if we're using images as buttons, why not get rid of roadie entirely? the whole problem it solves is making lots of css manageable for emails but it seems that we don't include much css at this point

namukang pushed a commit that referenced this pull request Mar 1, 2015
@namukang namukang merged commit 5b16e45 into master Mar 1, 2015
@namukang namukang deleted the email_templates branch March 1, 2015 08:05
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.

Email templates for account confirmation/reset password
2 participants