flohogun2
  • flohogun2
  • 61.25% (Friendly)
  • Member Topic Starter
14 years ago
I m using the SMTP component for sending a valendar invitation

I need to put an mime attachement :


I use the method altbody to put the ical text. the header of the part is :

------=SPLITOR00B_001_175386890D
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Hogunsoft Software//EN
METHOD:REQUEST
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20110305T180430
UID:20656652503-120523-44771-210-264-132-174
ORGANIZER;CN=3Dle louarn florent:mailto:flohogun2@aol.com
DESCRIPTION:true test
CREATED:20110305T180430
SUMMARY:true test
DTSTART:20110303T093000
DTEND:20110303T113000
LOCATION:true test
STATUS:CONFIRMED
TRANSP:OPAQUE
ATTENDEE;ROLE=3DREQ-PARTICIPANT;RSVP=3DTRUE;CUTYPE=3DINDIVIDUAL;
CN=3Dcontact@hogunsoft.com:contact@hogunsoft.com
SEQUENCE:0
END:VEVENT
END:VCALENDAR

but in order to work, it has to have a different content-type :
------=SPLITOR00B_001_175386890D
Content-Type: text/calendar; charset=UTF-8; method=REQUEST
Content-Transfer-Encoding: quoted-printable

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Hogunsoft Software//EN
METHOD:REQUEST
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20110305T180430
UID:20656652503-120523-44771-210-264-132-174
ORGANIZER;CN=3Dle louarn florent:mailto:flohogun2@aol.com
DESCRIPTION:true test
CREATED:20110305T180430
SUMMARY:true test
DTSTART:20110303T093000
DTEND:20110303T113000
LOCATION:true test
STATUS:CONFIRMED
TRANSP:OPAQUE
ATTENDEE;ROLE=3DREQ-PARTICIPANT;RSVP=3DTRUE;CUTYPE=3DINDIVIDUAL;
CN=3Dcontact@hogunsoft.com:contact@hogunsoft.com
SEQUENCE:0
END:VEVENT
END:VCALENDAR

so the question is : how to put this content-type with your conponent
ivan
  • ivan
  • 100% (Exalted)
  • Administration
14 years ago
Hi, You can use the following code:

oSmtp.BodyFormatEx = "text/calendar; method=REQUEST"
flohogun2
  • flohogun2
  • 61.25% (Friendly)
  • Member Topic Starter
14 years ago
Thanks, it works for the mail html body.

The problem is that the mail html body is used to have an explicit text, and only the altbody should have this format.
So do you have a method to set the altbody to Content-Type: "text/calendar; charset=UTF-8; method=REQUEST"
ivan
  • ivan
  • 100% (Exalted)
  • Administration
14 years ago

I just build a test version which meets your requirement, please check your email, I've sent an email to you

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.