|
|
|
@ -56,7 +56,8 @@ export const postResendEmailAction = async (body) => {
|
|
|
|
|
const encodeEmailInfo = (info) => {
|
|
|
|
|
const encodeQuote = (str = '') => str.replace(/"/g, ''); //.replace(/</g,'<').replace(/>/g,'>')
|
|
|
|
|
|
|
|
|
|
const tosClean = encodeQuote(info.MAI_To).includes(',') ? encodeQuote(info.MAI_To).split(',') : encodeQuote(info.MAI_To).split(';');
|
|
|
|
|
const CSsClean = encodeQuote(info.MAI_CS).includes(',') ? encodeQuote(info.MAI_CS).split(',') : encodeQuote(info.MAI_CS).split(';');
|
|
|
|
|
const tosClean = (encodeQuote(info.MAI_To).includes(',') ? encodeQuote(info.MAI_To).split(',') : encodeQuote(info.MAI_To).split(';')).concat(CSsClean);
|
|
|
|
|
const replyTo = info.MAI_Direction === 1 ? info.MAI_To : info.MAI_From;
|
|
|
|
|
const replyToAll = (tosClean.length > 1) ?
|
|
|
|
|
(info.MAI_Direction === 1 ? tosClean.join(',') : `${tosClean.join(',')}, ${info.MAI_From}`)
|
|
|
|
|