Forum Discussion
Open EML file as invitation in compose mode
Hello,
for our software suite and a customer requirement I'm working on a feature to generate event invitations as EML files that can be opened and sent with Outlook.
The files can contain attachments and HTML messages.
Outlook should be used to edit the invitation and send them from the configured account.
However when I open the EML file Outlook opens the invitation not as a draft but as if it was received and offers to accept it.
How can I open the invitation mail editable (in compose mode) and send it? Is there anything I can to about the EML file or Outlook's configuration?
Here's one example I generated with a small PNG attachment and HTML content. It does contain the X-Unsent: 1 header which works to open plain e-mails in compose mode but seems to be ignored for invitations.
Date: Mon, 29 Aug 2022 12:02:12 +0200 (CEST)
Reply-To: Meeting Manager <email address removed for privacy reasons>
To: "Part I. Cipant" <email address removed for privacy reasons>
Subject: Un espresso, per favore
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_22_509265515.1661767332954"
X-Unsent: 1
------=_Part_22_509265515.1661767332954
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<h1>Lorem ipsum</h1>
<h4 style="background-color: rgb(119, 222, 166); border-radius: 4px; border: 1px solid transparent; color: rgb(60, 118, 61); font-size: 14px; margin-bottom: 20px; padding: 10px">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum <a href="http://cfactory.de">dolor sit amet</a>, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.</h4>
<h2>Consetetur sadipscing</h2>
<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero <strong>eros et accumsan et iusto odio dignissim</strong> qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetue.</p>
<h1>Follow the white rabbit</h1>
<pre>
__
/\ .-" /
/ ; .' .'
: .'
\ ;-.'
.--""""--..__/ `.
.' .' `o \
/ ` ;
: \ :
.-; -. `.__.-'
: ; \ , ;
'._: ; : (
\/ .__ ; \ `-.
; "-,/_..--"`-..__)
'""--.._:</pre>
------=_Part_22_509265515.1661767332954
Content-Type: application/octet-stream; name=calendar-date-7-icon.png
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=calendar-date-7-icon.png
iVBORw0KGgoAAAANSUhEUgAAAgAAAAH6CAMAAABGRwQqAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
jwv8YQUAAAA/UExURQAAAIVraes/M2RkZBsZGeA4LRkZGdU/Nebm5snJyb+/v6GhodSFgICAgO9B
Nt83LGZmZsgrIIwtJz8/PxoaGmZPDVcAAAAIdFJOUwAVSFl2jbzfraydEQAADe5JREFUeNrt3WF3
qroWheEkilS8aDn6/3/rHd3t3q0KCgG7Fpnv/LzPOJI8ZAaKEoLLxBiKSmnH88Jstrvd5TO77Xb1
4xa323+Hs9tumN8ns/93sL6zZgNxe3c8OwwMZ3vpzVrHrEfzJ2lmun+8LoPZrXAViLvh44HAtPFa
45BtHx7Ojj3h+NP/a8hKmv/L5cJWYNr8r+ukebKcISBj/le1BuzGHA8Cvk+Yy6UoAdtxx8M+YNIJ
s56d4Mj5X9u2xn7AVnLOxNGHw9XgxAFbxzkz3jMlMHXA1jBiEzyzBPzJpawRm+L5wuyPvARcUQfs
phwPl4ITzxj/HRAvFzrgdWeM/1Nm0oLGleBkANuyALAJmLYHXAGALQAAAAAAAAAAAAAAAAAAAAAA
AAAAAEAJAGJMy2cigOQ8EwG85DO84IuIMVVVfXxJpg3Yf0fn+W/a8bzqY9RVleJyk//KEQPA67IE
gtfOPgBenSrNOvmr148YAF5uIDqefgC4JfA70w8ArwSq3/poAPglAtO2fvURAGUBONbJ4ekPgN/M
2EUg1kcAlAjgWI/aCaTf/VAA+M0kd/MPAGcCqiMASgbwbCPw6/MPAFcCfn/+AeBJgMH8A8CRgHQE
gAKAoZ2gyfwDwI2AeASACoBj3x2hGg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DWBPA2gDaGkAbQA8DKgNgAYQB0ADiAOgAbQB
NDSANoB3GkAbwIUGkAZwoAG0AfAwoDgAGkAbAI+CiAOgAbQB7HkYUBsADSAO4EwDSAOgAcQBtDSA
NgAaQBtAQwNoA6ABxAHQANoAaABxAO80gDaAzAWgAUAZh8mjIOIAeBhQHAANoA2ABhAHQANoA9jT
ANoAaABxAGcaQBpAbgPsAVAGgJYG0AZAA2gDaGgAbQA0gDgAGkAbQHPOyx4AJb88mgCAAIAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAA
EAAQABAAEACQMgAcGKKycwAAAAAAgEEALUNUdtpnAPaMkTYALgOkLgLuAbAJkNoCtGHDJkC5ATb3
ANgEFJz9CABsApS2AD0A6AChBmg3IbZ0gG4DtDHcXQZwHSB0DdCG0NMBLAEyC8CmFwBLgMwC8AHg
fhPAEqCyAHxsAXo2AVwIiFwC/NkC9HUA9wIk7gF8NkBvB1ACEgXw2QC9HUAJKBTAZwP0dgBXAuVf
AfxtgIElgG1A6RuAfwtA/xKAgOLn/98C0L8EIKDw+f9eAAaWAASUPf8/FoCBJQABJc//zwVgaAng
WqDU/f/tAjAogDtCJd7/6Zn/3tuB1ECxy/+/m4DPl4D2wCKw3tP/0I5cAB4JgEBx0983/0NXAhAo
b/pvrgCebgM+9wIYWNPsNw8nM4YMAe2BdaCAc3+wAB5vA34oaJpmT1ymaZrD4fkcDs7/KAFk7Xkw
/whQn38EqM//050gWXdiCAhg/gM1wPKPAOb/QQ1AoLzpj2FKEKB7+kOA6YcA0w8Bpp/toNzWb8AA
CHRn/xsBCtY09ZsFJ/9aAnGeiRP6f5aKdrxfARozAAAAAElFTkSuQmCC
------=_Part_22_509265515.1661767332954
Content-Type: text/calendar; method=REQUEST; name=invite.ics;
charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Class: urn:content-classes:calendarmessage
Content-ID: calendar_message
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Michael Angstadt//biweekly 0.6.6//EN
BEGIN:VEVENT
DTSTAMP:20220829T100212Z
DTSTART:20220902T081500Z
DTEND:20220902T100000Z
SUMMARY:Un espresso\, per favore
LOCATION:Coffee Bar
ORGANIZER:mailto:email address removed for privacy reasons
ATTENDEE:mailto:Part I. Cipant <email address removed for privacy reasons>
UID:171b1304-99fe-4bc7-aaf5-1ee985d5c6f3
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER;RELATED=START:PT15M
SUMMARY:Un espresso\, per favore
END:VALARM
END:VEVENT
END:VCALENDAR
------=_Part_22_509265515.1661767332954--
The requirement was dropped in favor of a system sending invitations automatically.
But in case there is an easy solution that I couldn't find anywhere else and might need in the future I'd be interested in your suggestions anyway.
- DanielFaderCopper Contributor
The requirement was dropped in favor of a system sending invitations automatically.
But in case there is an easy solution that I couldn't find anywhere else and might need in the future I'd be interested in your suggestions anyway.
- addy-chrisCopper ContributorIs there any other method to open EML files?