Skip to content

Instantly share code, notes, and snippets.

@Sama-004
Created February 26, 2025 17:13
Show Gist options
  • Save Sama-004/0f3776ec22ce71cb8e14f347a2df131a to your computer and use it in GitHub Desktop.
Save Sama-004/0f3776ec22ce71cb8e14f347a2df131a to your computer and use it in GitHub Desktop.
earlier when we were storing draft without any reference, it was working fine
'From: ' + this.emailProvider.email,
'To: ' + data.to,
'Subject: ' + data.subject,
'Date: ' + date,
'Content-Type: multipart/alternative; boundary="boundary"',
'MIME-Version: 1.0',
'',
'--boundary',
'Content-Type: text/plain; charset=utf-8',
'Content-Transfer-Encoding: 7bit',
'',
body,
'',
'--boundary',
'Content-Type: text/html; charset=utf-8',
'Content-Transfer-Encoding: 7bit',
'',
htmlBody,
'',
'--boundary--',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment