diff --git a/scripts/sendExportedLeads.js b/scripts/sendExportedLeads.js index 272c510cc..c66a4b14a 100644 --- a/scripts/sendExportedLeads.js +++ b/scripts/sendExportedLeads.js @@ -128,23 +128,6 @@ function activity2Html(activity) { } html += "

"; } - else if (activity._type === 'Email') { - html += `

${activity._type}

`; - if (activity.subject) html += `

${activity.subject}

`; - if (activity.date_updated) html += `
Updated: ${activity.date_updated}
`; - if (activity.opens_summary) html += `
${activity.opens_summary}
`; - if (activity.status) html += `
Status: ${activity.status}
`; - for (let email of activity.to) { - html += `
To: ${email}
`; - } - if (activity.sender) html += `
From: ${activity.sender}
`; - const lines = (activity.body_text || '').split('\n'); - html += "

"; - for (const line of lines) { - html += `

${line}
`; - } - html += "

"; - } return html; }