08-27-2019, 02:33 PM
using delphi 10 seattle,
my email is setup like so:
where fName is a .ics file that I am attempting to send.
currently, the contents of the ics file is:
my mail.txt (saving the message to file) is this:
what I am getting in return :
raised exception class EIdSMTPReplyError with message 'STOREDRV.submission.excetption : invalid recipentsException;
failed to process message due to a permanent exception with mesage. Amessage can't be sent because it contains no recipients. InvalidRecipientsException a message can't be sent because it contains no recipients.
since I DO have a recipient, I'm not sure why I am getting this message.
what I am trying to do :
send an email with an event invite, with the 'accept/decline' stuff in the email.
so far, the most I have accomplished is only getting the ics file as an attachment.
it is VERY possible the ics file is incorrect (this is my first time attempting this)
any ideas what I am missing?
my email is setup like so:
Code:
dmEmail.emMessage.ContentType := 'text/calendar;method=REQUEST';
with tIDText.Create(dmEMail.emMessage.Messageparts) do
begin
ContentType := 'text/calendar;method=REQUEST';
// parentPart := 0;
Body.Text := eventText.Text;
end;
with TIdAttachmentFile.Create(dmEmail.emMessage.MessageParts, fName) do
begin
ContentDisposition := 'attachment';
ContentType := 'text/calendar;method=REQUEST';
ExtraHeaders.Values['Content-ID'] := ExtractFileName(fName);
ContentID := ExtractFileName(fName);
Filename := ExtractFilename(fName);
// parentPart := 1;
end
currently, the contents of the ics file is:
Code:
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ORGANIZER;CN=Connie M.:MAILTO:[real code has a valid email address here]
DTSTART:20190827T220000Z
DTEND:20190827T230000Z
TRANSP:OPAQUE
SEQUENCE:0
UID:185
DTSTAMP:20190827T071800Z
DESCRIPTION:3 pm my time
SUMMARY:Event on 27th
PRIORITY:2
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
my mail.txt (saving the message to file) is this:
Code:
Subject: Event on 27th
To: [real code has a valid email address here, which is different that the organizer address above]
Content-Type: text/calendar; method=REQUEST; charset=us-ascii; boundary="AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D"
MIME-Version: 1.0
Date: Tue, 27 Aug 2019 07:18:42 -0700
This is a multi-part message in MIME format
--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/calendar;method=REQUEST
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ORGANIZER;CN=3DConnie M.:MAILTO:[weird that organizer name changed to start with 3D, but otherwise, same valie email address]
DTSTART:20190827T220000Z
DTEND:20190827T230000Z
TRANSP:OPAQUE
SEQUENCE:0
UID:185
DTSTAMP:20190827T071800Z
DESCRIPTION:3 pm my time
SUMMARY:Event on 27th
PRIORITY:2
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/calendar;method=REQUEST;
name="Event185.ics"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="Event185.ics"
Content-ID: Event185.ics
Content-ID: Event185.ics
QkVHSU46VkNBTEVOREFSDQpWRVJTSU9OOjIuMA0KTUVUSE9EOlJFUVVFU1QNCkJFR0lOOlZFVkVO
VA0KT1JHQU5JWkVSO0NOPUNvbm5pZSBNLjpNQUlMVE86Q29ubmllbUBwcm92YW50YWdlc29mdHdh
cmUuY29tDQpEVFNUQVJUOjIwMTkwODI3VDIyMDAwMFoNCkRURU5EOjIwMTkwODI3VDIzMDAwMFoN
ClRSQU5TUDpPUEFRVUUNClNFUVVFTkNFOjANClVJRDoxODUNCkRUU1RBTVA6MjAxOTA4MjdUMDcx
ODAwWg0KREVTQ1JJUFRJT046MyBwbSBteSB0aW1lDQpTVU1NQVJZOkV2ZW50IG9uIDI3dGgNClBS
SU9SSVRZOjINCkJFR0lOOlZBTEFSTQ0KVFJJR0dFUjotUFQxNU0NCkFDVElPTjpESVNQTEFZDQpE
RVNDUklQVElPTjpSZW1pbmRlcg0KRU5EOlZBTEFSTQ0KRU5EOlZFVkVOVA0KRU5EOlZDQUxFTkRB
Ug0K
--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D--
.
what I am getting in return :
raised exception class EIdSMTPReplyError with message 'STOREDRV.submission.excetption : invalid recipentsException;
failed to process message due to a permanent exception with mesage. Amessage can't be sent because it contains no recipients. InvalidRecipientsException a message can't be sent because it contains no recipients.
since I DO have a recipient, I'm not sure why I am getting this message.
what I am trying to do :
send an email with an event invite, with the 'accept/decline' stuff in the email.
so far, the most I have accomplished is only getting the ics file as an attachment.
it is VERY possible the ics file is incorrect (this is my first time attempting this)
any ideas what I am missing?