Merge pull request '2305 - Added noReply param' (#298) from 2305-replyTo_param into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-by: Bernat Exposito <bernat@verdnatura.es>
This commit is contained in:
Bernat Exposito 2020-06-05 11:58:16 +00:00
commit f6953747d2
2 changed files with 4 additions and 2 deletions

View File

@ -72,9 +72,10 @@ class Email extends Component {
await getAttachments(this.path, this.attachments);
const localeSubject = await this.getSubject();
const replyTo = this.args.replyTo || this.args.auth.email;
const options = {
to: this.args.recipient,
replyTo: this.args.auth.email,
replyTo: replyTo,
subject: localeSubject,
html: rendered,
attachments: attachments

View File

@ -58,7 +58,8 @@ module.exports = app => {
const args = Object.assign({
ticketId: ticket.id,
recipientId: ticket.clientFk,
recipient: ticket.recipient
recipient: ticket.recipient,
replyTo: ticket.salesPersonEmail
}, reqArgs);
const email = new Email('delivery-note-link', args);