Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
flohogun2  
#1 Posted : Saturday, March 5, 2011 11:24:52 AM(UTC)
flohogun2

Rank: Member

Groups: Registered
Joined: 12/23/2010(UTC)
Posts: 24
Location: rennes

Thanks: 8 times
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  
#2 Posted : Saturday, March 5, 2011 5:39:58 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,148

Thanks: 9 times
Was thanked: 54 time(s) in 54 post(s)
Hi, You can use the following code:

oSmtp.BodyFormatEx = "text/calendar; method=REQUEST"
flohogun2  
#3 Posted : Sunday, March 6, 2011 12:02:29 AM(UTC)
flohogun2

Rank: Member

Groups: Registered
Joined: 12/23/2010(UTC)
Posts: 24
Location: rennes

Thanks: 8 times
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  
#4 Posted : Tuesday, March 8, 2011 2:36:45 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,148

Thanks: 9 times
Was thanked: 54 time(s) in 54 post(s)

I just build a test version which meets your requirement, please check your email, I've sent an email to you
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.072 seconds.

EXPLORE TUTORIALS

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