-
Notifications
You must be signed in to change notification settings - Fork 0
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 #60 from adnjoo/mailgun
mailgun
- Loading branch information
Showing
14 changed files
with
70 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,5 @@ gem "tailwindcss-rails", "~> 3.0" | |
gem "devise", "~> 4.9" | ||
|
||
gem "stripe", "~> 13.0" | ||
|
||
gem "mailgun-ruby", "~> 1.2" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class ApplicationMailer < ActionMailer::Base | ||
default from: "[email protected]" | ||
default from: DEFAULT_FROM_EMAIL | ||
layout "mailer" | ||
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,9 @@ | ||
class UserMailer < ApplicationMailer | ||
def welcome_email(user) | ||
@user = user | ||
mail( | ||
to: @user.email, | ||
from: DEFAULT_FROM_EMAIL, | ||
subject: "Welcome to DuelTasks!") | ||
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
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 @@ | ||
<h1>Welcome to DuelTasks, <%= @user.email %>!</h1> | ||
<p> | ||
Thanks for signing up! We're excited to have you on board. | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
G5dDwefYLHBRveb+GZvy6vn+tq1vrScBN+wPoG8umciK4GKOFDvuJQ4UR1Rq5kvgb8pQrK6K/lAFZKNsu0j7EWCBjca5xmjN4XUzXtdIqd9C7Lox9Bpmb5rQJChKaeHtkjEsBDRa+EU2XQtnhKo7kZczy0XtSK1PB0P3rOFi95OTdoTsoXvIo4TIhMFTXyCsJUdl1Ezmghlb1WEc5dL7NxShLd1x6JEoxLMqXKizdiFgKmn+eptKD/R5c9xCfUuN/HCcxAL77qTilfU7uJVM76BntLxjvhUgnEu3uBqvtV4ZMt6KoYFUiwKxdCgkxr1kcicc6QVfHHZXIPdg4MguxLX6GJ2pWaB7UpBeP7dJCFD5S7mcvG+QjroQDv8U1UphXJneh+4cMQwx1a4LMgQiO9AaCfafZqgfv/+MHsxF7fIS/4Tcj0Ivxr17KzQnxIIk+AmytPW+eF2x0JCdLS40b1YEmAyOlGy/XjWIFVc6FzzTJaiWfDG2cfAiN4e9g7j3UKB9++RS3eU5thjo8SLGnRBDOBdb+H4iDW534CIjAlRm+5PlBznBJ9ib4SDBRj5x68ehEjzzU9f8jUFT+i7AB8E3WYHxjLTKch7UV/AlvtnGqEX+j7d3aZKh0TzXKkmyIi/dQB5sOylt6zB0ZJKHAPalcnwXHIGOduL+KWH0Fa/ELOKO2P1SV1x3nyH8FZII1texwO6TjRfmNRB2uKxNfBTrsPj7KxRe603nNethn7VTXrlvPR6qwo6RxdPjoGUZaX0/jWWuGie8dwrxJVQ3/Oh0/sGXAe8Ym2oY62kjDDBV/qXFFU96TZuKVhBv6Q==--BwqhevnLkWt9AbxG--HFw9ZDcmQvffAvSaVwZX+A== | ||
U3Yp97tvXC5XVFEpfR9aCTAODSUEJDaHATvGcHSuaqoIxvk19bYeDrR2dWEQ43FDaZ0Irq2S4Q9llhNeY8R8+TRfrULHYhRY61wbYZoAv47t0DSgD+lJz/vJw9pZHL4KUwnB2fFY2URHulcltRarIR+JiFamG1tnx4rLOFx0V5+PNOtoOqJprfia20WgEbszrP2OiudsSScz8K+jyOQmkfQ7/D4gtlSMVtTJgXmJ5a/6rObpjy4vE6zIVeWJ88UJccWpyJd8q/tcGNf/70DE7gFBNG+piw4OqpZufRMQ83CDiz/x9UjF6NnOlSFcSLtrb2fQd5CjxToGqCf29fFMnTf9KYgG7xV6c2RKDWTGO8nio3atgtEoVpjZrmu7po7gYKPwjeyHBp6ElTvAma73xZkki8pBo52DIABbCVGk+tdLDxH+dRiI7h8N3gBp+jF8wayw6KDXgoqeq7OXsAEC50Txjd6fZQNzve7PWiKCphNcc73gvP3jd8yYXxfHlUtzjWoUBWw24Esa4phVpuYI3UXCAgM5f87jyLtpodr5I1e5qqIB8F3OucA+v4WysYHWnRnvXN24LfmBYpTY1oex0Db+nBVme0Gjay9zPK0U6SWLmKrN7nCqqUBLFmO/hKBbwELj8me1q1HSeuhP6L+Y+63DdfPcJYpCEdHbiwKi13LVSYMfKUsordmkd27k2k0fyHnXN1lU7mBRM1l8CLrWst6dACV/XFXPpc30qpi6LhuDAN1BoikLdHPZhz0IVRZFsjfvSWOd6VijSYyTz01G+BZYcOp6q35z2PxYzFn8h4P84VPisfQb5QCBxS2I+vyc61tlGwjjNuJfP2Jqp3r50Zn6soA79tYv+nDclCRRjm0Hnnc4LdGxnPmPDHdLK1qTg0MdLS/jImLeovHvt0euA9uSxQdB1bstnar2hQlLIq6+cMEv+XCau39mQD5cowFJVg==--sYV6yPnRB8ok1Ejj--ITcyDsuUZ/nyOfKPdh3KsA== |
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 |
---|---|---|
@@ -1 +1 @@ | ||
q0xKKh9IEQyYexeiw2rXEPoskS8yol/EoNuCSkkqqS07gDY4a2S1B1iz4jrSQ1ZdJ1WgHXayNJ8TnaXM3gv87WFkzuPOIVJynHh+Ul0+lnfcJw3q9IfsdGohdNMQaRVtPX1JtIrtQT2yXJ58xzwOE2nnVOYT0Kfdj37na5JyXEYo0pImLyFP3iCYybDyJETpDGeiq4fBwd6xoGr9ubk/CGYnl7xaUUyqxOAq3GmJp+gT/+b/dAmgdoTFtaDMHUSxQrIKkUC9LOaM1VyXVy9Ky81HMp9uYDUBEZbFR73iCzV9Zo5qUKEBVQ8ZiQPu3UE+k64vcJyKSE7ZYU1NGUpGswkUFmje/Op25SvUhTY22GB4RX1J+GD8keScQgo0h0QsMciXzXw3uZG/McA0XFFW94aVcmdKwZsQTYyIQ5wNjJnsQY0Y3iWlhraW9piCGoSoJlV3yh/5nhmlume61GYA0ANneag50pH4T+B8blumAwTrV9xtSOutAxODfbnlTVHqscHC2tywsQHRonmpDog+jU0qFKiY0P50rViq44WMqp+kPAVLyKBYcVli3q8g1cp5TW7Xd3kawK8TT5LWTIunJrP1SYWCS2mz6NLe3sWSQHp93LXdj2DBb4AAXDt4m6VkvylZKy4ANrOzXTrSXMql2pke3IaLB3I3Hwr8QlBIEgylHe9MTuXSpazQHDv7rs1Uc+W6kYj0ODNJNUNLcEgdFRTZDP/5N7QAjmSC97yDRXwDYW1+cuFlZ2voYS7geYXRECU46/IyLSush+/VcPEzdlca6HVtBrmdW8dKE6QGq83GH5iJv3+0mzHTM40g25xwD5yT+Q4lfLBlJni9ZVk7bs0FtkUICpTJ99drn/7ejvxxOf43lVlzl5qxydlf1JW6RkcTux0ZmkWTDd8ktfyUqhYscJXZlK3MaA7uka4JjFpVnEFndo1aiXhuBsGsAIxcTq+HM6R9dree8avunMDe5bvI7lYX8WlhQgmhH5UbLQNzlmNsq9CrGyOnL+BUa+IUTt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WRK6tOM61DZSjXEj8sPnBHZZVnro54NtkPB3BzRMnByY+VzkAaS51TTfX0YuKwxoWlnzcOfHPSjoQaMxYpvkhUUj5n+Jvfz1CJgMaw4BpWmJlUtpumVa0SlSozopF9F/4EiQc/fZMHGpAmVHwhPXD2ANbmpLhhMCd2prkml9BjeYSDPBM2/7Q6z8aE7JZfy4ROZX8JPtxFxPbhSIk0z3JXHm2VelySAtC/Uk6kMKmjySykOXAFc4oHopTL/fX2e/cGTNtarTFXC0tMlu4F9K4zSKFLeaFhdb1V4R7uuyqArbZMrdQ+WOm25HqbV57D34G6KOP6Bpb2SuErv3CCWGEz34y/KmFD--lgeBOXePsfgCbGJB--5varNjO6D2E0wzdiKyWLNg== |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
APP_NAME = "DuelTasks" | ||
GITHUB_LINK = "https://github.com/adnjoo/dueltasks" | ||
X_LINK = "https://x.com/dueltasks" | ||
DOMAIN = "dueltasks.com" | ||
DEFAULT_FROM_EMAIL = "[email protected]" | ||
|
||
# Subscription Prices | ||
SUBSCRIPTION_PRICE_MONTHLY = 1 | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
# Configure the e-mail address which will be shown in Devise::Mailer, | ||
# note that it will be overwritten if you use your own mailer class | ||
# with default "from" parameter. | ||
config.mailer_sender = "[email protected]" | ||
config.mailer_sender = "no-reply@#{DOMAIN}" | ||
|
||
# Configure the class responsible to send e-mails. | ||
# config.mailer = 'Devise::Mailer' | ||
|
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,3 @@ | ||
# 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,7 @@ | ||
require "test_helper" | ||
|
||
class UserMailerTest < ActionMailer::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
end |