Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Fix error setting replyTo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXyfir committed Mar 27, 2019
1 parent 9b5091f commit b4329e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/lib/mail/smtp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ export function startSMTPServer(): SMTPServer {
// User does not have enough credits to redirect message
if (recipient.user.credits < credits + 1) continue;

const replyTo =
alias.saveMail && alias.canReply
? savedMessage.ptorxReplyTo
: outgoing.replyTo;
const replyTo = savedMessage
? savedMessage.ptorxReplyTo
: outgoing.replyTo;
const mail: SendMailOptions = {
envelope: {
from: mailFrom
Expand Down

0 comments on commit b4329e1

Please sign in to comment.