Skip to content

Commit

Permalink
chore(mail): alter from and replyTo methods AthennaIO#7
Browse files Browse the repository at this point in the history
  • Loading branch information
RobsonTrasel committed Apr 8, 2023
1 parent be016a7 commit ffb439c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Drivers/SmtpDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export class SmtpDriver {
* Define mail sender.
*/
public from(from: string): SmtpDriver {
this.message.from = from
if (!this.message.from) {
this.message.from = from
}

return this
}
Expand Down Expand Up @@ -99,7 +101,9 @@ export class SmtpDriver {
* Define mail reply to.
*/
public replyTo(replyTo: string): SmtpDriver {
this.message.replyTo = replyTo
if (!this.message.replyTo) {
this.message.replyTo = replyTo
}

return this
}
Expand Down

0 comments on commit ffb439c

Please sign in to comment.