-
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.
fix: showcase getting email id (#27)
- Loading branch information
Showing
4 changed files
with
91 additions
and
115 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
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,16 +1,14 @@ | ||
class UserMailer < ApplicationMailer | ||
# this domain must be verified with Resend | ||
default from: "[email protected]" | ||
default from: "[email protected]" | ||
|
||
def welcome_email | ||
@user = params[:user] | ||
attachments["invoice.pdf"] = File.read(Rails.root.join("resources","invoice.pdf")) | ||
@url = "http://example.com/login" | ||
mail( | ||
to: ["[email protected]"], | ||
cc: ["[email protected]"], | ||
bcc: ["[email protected]"], | ||
reply_to: "[email protected]", | ||
to: ["[email protected]"], | ||
reply_to: "[email protected]", | ||
subject: "Hello from Rails", | ||
) | ||
end | ||
|