Hi there,
In the last few months we been happy with getting an email on each new lead being created in one of our tables. The email contains all the needed data relevant for our sales team. BUT i'd really want that email to contain an attachment which is a .eml file (email) which is populated specifically with the records data. How can i accomplish this?
Goal is to minimize errors when our sales rep copy/paste the data from the email.
Solved
Create an email draft in airtable
Best answer by Csanko
I found a solution, with the help of GPT-4.
After going back and forth with GPT we created this formula:
"mailto:" &
IF(
{Facilitet},
"",
ENCODE_URL_COMPONENT({Policyholder invoice email})
) &
"?subject=" & ENCODE_URL_COMPONENT("Faktura - " & {Insurancetype} & " - Policenummer " & {Policy number} & " - " & {Policyholder}) &
"&body=" & ENCODE_URL_COMPONENT("Kære " & {Policyholder} & ",") &
"%0D%0A%0D%0A" &
ENCODE_URL_COMPONENT(
"I forbindelse med jeres " & {Insurancetype} & ", vedhæfter vi faktura for forsikringsperioden fra " &
DATETIME_FORMAT({Period start}, 'DD.MM.YYYY') &
" til " &
IF(
{Period end} = DATEADD(DATETIME_PARSE(DATETIME_FORMAT(DATEADD({Period end}, 1, 'month'), 'YYYY-MM') & '-01'), -1, 'day'),
DATETIME_FORMAT({Period end}, 'DD.MM.YYYY'),
DATETIME_FORMAT(DATEADD({Period end}, -1, 'day'), 'DD.MM.YYYY')
) &
"."
) &
"%0D%0A%0D%0A" &
ENCODE_URL_COMPONENT("Har I spørgsmål til fremsendte, er I meget velkommen til at kontakte os.")
Basically it's just a "mailto" link, with predefined content. The content is from the record itself. Then what i did was insert that column where the above formula is, and put the following into the body of the email sent from the automation. Link for mail draft
Basically it's just a "mailto" link, with predefined content. The content is from the record itself. Then what i did was insert that column where the above formula is, and put the following into the body of the email sent from the automation.
<a href="
">Tryk her for mailkladde link</a>
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
