cancel
Showing results for 
Search instead for 
Did you mean: 

How to Send Appointment via mail adapter

Former Member
0 Kudos

Hi Guys,

I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.

This is payload content of appointment which got from Exchange server to gmail:

-


_=_NextPart_001_01C71EC0.97A011C6

Content-Type: text/plain;

charset="GB2312"

Content-Transfer-Encoding: quoted-printable

When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.

Where: China

~*~*~**

This is calendar content

-


_=_NextPart_001_01C71EC0.97A011C6

Content-class: urn:content-classes:calendarmessage

Content-Type: text/calendar;

method=REQUEST;

name="meeting.ics"

Content-Transfer-Encoding: 8bit

BEGIN:VCALENDAR

METHOD:REQUEST

PRODID:Microsoft CDO for Microsoft Exchange

VERSION:2.0

BEGIN:VTIMEZONE

TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb

X-MICROSOFT-CDO-TZID:21

BEGIN:STANDARD

DTSTART:20070112T140000

TZOFFSETFROM:+0100

TZOFFSETTO:+0100

END:STANDARD

BEGIN:DAYLIGHT

DTSTART:20070112T140000

TZOFFSETFROM:+0100

TZOFFSETTO:+0200

END:DAYLIGHT

END:VTIMEZONE

BEGIN:VEVENT

DTSTAMP:20061213T141132Z

DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000

SUMMARY:This is calendar test

UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000

010000000CA9F127EA8947844BC4DD47F269BDEA9

ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com

ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com

LOCATION:Shanghai

DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000

DESCRIPTION:This is calendar content\N

SEQUENCE:0

PRIORITY:5

CLASS:

CREATED:20061213T141132Z

LAST-MODIFIED:20061213T141133Z

STATUS:CONFIRMED

TRANSP:OPAQUE

X-MICROSOFT-CDO-BUSYSTATUS:BUSY

X-MICROSOFT-CDO-INSTTYPE:0

X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY

X-MICROSOFT-CDO-ALLDAYEVENT:FALSE

X-MICROSOFT-CDO-IMPORTANCE:1

X-MICROSOFT-CDO-OWNERAPPTID:367904726

X-MICROSOFT-CDO-APPT-SEQUENCE:0

X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z

X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z

END:VEVENT

END:VCALENDAR

-


_=_NextPart_001_01C71EC0.97A011C6--

My question is

1. How to generate this kind of payload in mail adapter module?

2. It is possible to send appointment via mail adapter?

Following i can get from other system, even using mail package check or not using mail package check.

BEGIN:VCALENDAR

METHOD:REQUEST

PRODID:Microsoft CDO for Microsoft Exchange

VERSION:2.0

BEGIN:VTIMEZONE

TZID:(GMT+08.00) Kuala Lumpur/Singapore

X-MICROSOFT-CDO-TZID:21

BEGIN:STANDARD

DTSTART:16010101T000000

TZOFFSETFROM:+0800

TZOFFSETTO:+0800

END:STANDARD

BEGIN:DAYLIGHT

DTSTART:16010101T000000

TZOFFSETFROM:+0800

TZOFFSETTO:+0800

END:DAYLIGHT

END:VTIMEZONE

BEGIN:VEVENT

DTSTAMP:20070608T025852Z

DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000

SUMMARY:This is meeting request with attachment

UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000

010000000C5E16D144D1612498C0EF7E2115EFEC4

ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky

":MAILTO:roc*@**

ORGANIZER;CN="Xu,y":MAILTO:roc*@**

LOCATION:India labs

DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000

DESCRIPTION:This is content! <<shanghai.txt>> \N

SEQUENCE:0

PRIORITY:5

CLASS:

CREATED:20070608T025925Z

LAST-MODIFIED:20070618T033505Z

STATUS:CONFIRMED

TRANSP:OPAQUE

X-MICROSOFT-CDO-BUSYSTATUS:BUSY

X-MICROSOFT-CDO-INSTTYPE:0

X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY

X-MICROSOFT-CDO-ALLDAYEVENT:FALSE

X-MICROSOFT-CDO-IMPORTANCE:1

ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX

X-MICROSOFT-CDO-OWNERAPPTID:1468557271

X-MICROSOFT-CDO-APPT-SEQUENCE:0

X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z

X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z

END:VEVENT

END:VCALENDAR

Thanks & regards

Rocky

Accepted Solutions (0)

Answers (4)

Answers (4)

madanmohan_agrawal
Contributor
0 Kudos

Hi,

Have you resolved this? If yes, please share how you solved, since I am having the same requirement.

Thanks,

Madan

Former Member
0 Kudos

Hi Sridhar,

Thanks for your replies.

Since my job is enhancing mail adapter in the XI, so all the development will basic on Mail adapter.

Hi Henrique,

i have checked the web log, i think this is better solution, But how to generate the boundary ID dynamic? like "------_=_NextPart_001_01C71EC0.97A011C6",

if the boundary id is generated independent, and the mail content includes the boundary id, I think there will confuse for mail adapter?

Thanks & regards

Rocky

henrique_pinto
Active Contributor
0 Kudos

Rocky,

all dynamic information you need in your mail content should be sent in fields of the input XML message and, in the java mapping, you could create the IDs based on those fields' content.

Regards,

Henrique.

henrique_pinto
Active Contributor
0 Kudos

Rocky,

you can enter any content for the mail payload (even multipart content, like yours) by using the Mail Package.

Check this: /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping

Regards,

Henrique.

Former Member
0 Kudos

Hi

have a look at this

You can use Java/ABAP proxies to do this job for you..

Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.

Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.

If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at

/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c...

reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .

Thanks