E-mail adapter : dynamic recipient with an attachment
Hi,
I read the weblog from Michal Krawczyk about implementing
of dynamic recipient of e-mail adapter.
I need this functionality and above that I need to include IDOC in e-mail message as an attachment.
Will transformed IDOC by mapping attached to created e-mail message when I check "Keep Attachments" checkbox.
Thank you.
Marian.
Hi Marian,
everything what you need is possible
what would you like to know?
steps:
1. if you have sp14 put the address name in the mapping
2. attach the idoc in the attachment - standard
3. use "Keep Attachments" in the mail adapter
Regards,
michal
Similar Messages
-
Send mail from PL/SQL with an attachment
Hi,
Can any body help me on how to send a mail from PL/SQL with an attachment which is located on a unix system path.
This is an urgent requirement in my current project. Any quick reply would be greatly appreciated.
Thanks
Kumar.Quick reply (too bad you didn't mention your DB-version):
Check the docs @ http://tahiti.oracle.com regarding packages UTL_SMTP and UTL_MAIL
Check http://asktom.oracle.com/pls/asktom/asktom.search?p_string=%22mail+attachment%22
Check http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
Check http://www.oracle-base.com/articles/10g/PlsqlEnhancements10g.php#UTL_MAIL -
XI Mail Adapter: sending emails with attachment with help of java mapping
Hi ,
On trying out the scenerio mentioned in the blog, using the java mapping provided
"XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
The scenerio works just fine.
But the payload as the content of the attachment is not getting generated in proper XML format.
I suppose it's because of the replace special characters code part..
Can anyone help me state the modification required in the code.
Thanks!
Regards,
Faria MithaniIt might be a codepage issue. Is your original payload UTF-8?
-
Sender Mail Adapter - forcing content as an attachement
Hi all,
We are using the Sender Mail Adapter to pull emails from the inboxes of some users of an exchange server. We use the Mail Package option.
We have noticed that the content of the emails are by-default added as attachments when there are no real attachments to the emails. However the content is not added as an attachment when one or more attachments are present in these emails.
Is there a way of forcing the Sender Mail Adapter to always add the content as an attachment and keeping the other attachments as well? and of course maintain the Mail Package message type as the main payload...?
Many thanks,
AldoHi Stefan,
Thanks for your reply. I am glad to hear that I am wrong again )
In your opinion is it possible to force the Outlook Exchange server to add the content attachment every time? I mean by doing some configuration on it...?
The reason why we would like to do this is because when - in the content tag of a Mail Package message - we have MIME message parts that are of content-type text/html we are having problems in decoding the html back to a readable format.
To do this we use the apache QuotedPrintableCodec Java class.
This works fine when the content type of the message is just text/plain but we get an exception when we try with text/html.
The exception we get is:
org.apache.commons.codec.DecoderException: Invalid URL encoding: not a valid digit (radix 16): 13
I don't know if this is because of the two character sets we have in the payload (utf-8 and iso-8859-1) or if it is for other reasons...
If you could help me figure out how to forward any HTML email to another system in a readable format it would be great.
Thanks for your support,
Aldo -
Mail adapter - how to dinamically change attachment file name in sending
How can I dynamically change the attachment filename when preparig email to be sent? The attachment is an invoice in XML format and I have to put the invoice number into the attachment file name.
Thanks in advance.
Giuseppe.Hi,
Go through this docs.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
Hope these bloga are useful..
/people/community.user/blog/2006/09/07/email-reporting
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Thanks,
Satya -
Receiver mail adapter - Payload as a Text attachment
Hi,
In my proxy to mail adapter scenario, when i want to send payload to email as a Text email, where i need to content conversion in XI (XML to Txt file)
when i send payload, currently i am receiving as a XML file.
I try to follow like Rushikesh Deshmukh XI thread: Text Attachment in Mail Adapter in XI forum(topic)
I have having following config
Processing Sequence
localejbs/CreateAttachment Local Enterprise Bean XML2Plain
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Module Configuration
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
XML2Plain xml.addHeaderLine 0
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.recordsetStructure Header1000,Header2000
Please suggest some solution."
Could you tell me exactly where i need to do all these setting and
do i need import localejbs/CreateAttachment Local Enterprise Bean XML2Plain...I mean shall i add same in my processing sequence
give in detail ? (in Receiver mail adapter Communication channel, advanced mode additional parameters)
I tried to follow this also
http://help.sap.com/saphelp_nw04/helpdata/EN/4e/c153426da9bd30e10000000a155106/frameset.htm
but i could not find much info on this help.sap.com reg. req.
Thanks
PrabaharanHi
f i create like this Receiver CC (module Tab)
number: 1
Module Name: localejbs/CreateAttachment
Module Type: Local Enterprise Bean
Module Key: mail
is it enough? do i need any other setting like this
Did you deployed CreateAttachment on PI server. As this is not a standard SAP module this is a custom module?
mail as module key is already used by XIMAILAdapterBean use some other key for CreateAttachment
Settings are fine for the Module
Processing Sequence
localejbs/CreateAttachment Local Enterprise Bean XML2Plain
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Module Configuration
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
In this:
Module Key: XML2Plain
Parameter Name: Transform.Class
Parameter Value: com.sap.aii.messaging.adapter.Conversion
is it right?
Processing sequence is fine
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
XML2Plain xml.addHeaderLine 0
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.recordsetStructure Header1000,Header2000
can i anyone explain how to these settings?
Is this key valid to provide inputs to the module check with the code for this module
This looks like valid for MessageTransformBean ro StrictXMLtoPlainBean
Thanks
Gaurav
Edited by: Gaurav Bhargava on Oct 15, 2008 5:34 AM -
How to send mails to "CC" and "BCC" using receiver mail adapter dynamically
Hi,
Due to business requirement PI need to send mails dynamically to u201CCCu201D and u201CBCCu201D using receiver mail adapter.
We have an option to send mails to u201CTou201D dynamically, but are there any option to send mails u201CCCu201D and u201CBCCu201D dynamically.
Please some help to resolve the issue. Thanks
Regards,
Sreeramulu Konjeti.Hi Sreeramulu,
As mentioned by Lucas, you can use the UDF. Inn addition to that, you need to define the Variable Headers under Variable transport binding after enabling the Adapter Specific Message Attributes.
For the Enabling ASMA, follow the below steps and check for the variable attributes.
Select the Advanced tab page.
To save adapter-specific attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding.
The following attributes in the message header are then available for processing:
○ User: (technical name: TServerLocation)
○ Authentication key: (technical name: TAuthKey)
The following mail header fields are available for processing:
○ From: (technical name: THeaderFROM)
○ To: (technical name: THeaderTO)
○ Cc: (technical name: THeaderCC)
○ Bcc: (technical name: THeaderBCC)
○ Subject: (technical name: THeaderSUBJECT)
○ Reference to the mail that is to be replied to: (technical name: THeaderIN-REPLY-TO)
○ Reply to: (technical name: THeaderREPLY-TO)
○ Mail client program: (technical name: THeaderX-MAILER)
○ Send confirmation of receipt: (technical name: THeaderDISPOSITION-NOTIFICATION-TO)
○ Priority: (technical name: THeaderPRIORITY)
○ Importance of message: (technical name: THeaderIMPORTANCE)
To transfer further header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, and XHeaderName3.
The parameters are included in the mail header under the names specified here.
The attribute namespace for the adapter is http://sap.com/xi/XI/System/Mail.
Thanks, -
Mail Adapter - Dynamically maintaining To and From Parameters
Hi all,
I am using the mail adapter as receiver in my scenario where i need to set up the TO and FROM parameters dynamically in the adapter configuration. Can any body please suggest how to do that?
Thanks
-KulwantKulwant,
Did you gone thru this link?
http://help.sap.com/saphelp_nw70/helpdata/EN/6b/4493404f673028e10000000a1550b0/content.htm
use the below code
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail","THeaderTO");
String to_add = "[email protected]"
conf.set(key, to_add);
return "";
raj.
Edited by: Raj on Oct 29, 2008 3:55 PM -
Mail after interaction log with copied attachment
Hello experts!
I want to create a mail out of an interaction log with copied attachments.
This means:
1) I create an interaction log and add an attachment to it
2) I select "more" "send mail"
3) I want this mail to have the same attachment as the interaction log
Does anybody know how to solve this?
Greetings,
littlesam
EDIT: Right know I'm trying it with customizing, I created a BAPI, but I have no idea how to copy the attachments?
Edited by: littlesam on Apr 15, 2010 1:47 PMDoes anyone have a suggestion here?
-
JumpOutReturn Function to Outlook Recipient with an Attachment
From inside AW we are wanting to use the
JumpOutReturn Function to open an Outlook message that has a
training evaluation Word document attached and automatically plugs
in the subject of the message and the Send To Address.
We tried adding a calculation with the following script:
JumpOutReturn ("Outlook.exe", "F:\\Secretary\\Staffdev\\15.88
Authorware Training.doc:). This automatically opened up Outlook and
attached the Word document, but we did not know how to include in
the script the send to address ([email protected]) so that it would
automatically be filled in. We would also like to add the subject
(Online Training Evaluation) to the script. Any help would be
great.This FAQ:
http://www.tomorrows-key.com/faq/awemail.asp
should get you started, if not solve the issue.
Erik
Manystars wrote:
>
From inside AW we are wanting to use the
JumpOutReturn Function to
> open an Outlook message that has a training evaluation
Word document attached
> and automatically plugs in the subject of the message
and the Send To Address.
>
> We tried adding a calculation with the following script:
JumpOutReturn
> ("Outlook.exe", "F:\\Secretary\\Staffdev\\15.88
Authorware Training.doc:). This
> automatically opened up Outlook and attached the Word
document, but we did not
> know how to include in the script the send to address
([email protected]) so
> that it would automatically be filled in. We would also
like to add the subject
> (Online Training Evaluation) to the script. Any help
would be great.
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.adobe.com/communities/experts/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/group/macromedia.authorware -
Mail-Adapter adds ".bin" to filename of attachment
Hi!
I'm sending mails with a dynamic generated filename using the mail-adapter and mail-package. The file extension of the attachment should be ".txt" and the content-type should be "application/EDIFACT"
When I change the content-type of the attachment in my adapter module by
TextPayload attachment = msg.createTextPayload();
attachment.setName("something_dynamically_generated.txt");
attachment.setContentType("application/EDIFACT");
The content-type is changed properly, but the file extension ".bin" is added.
The result is in my example:
something_dynamically_generated.txt.bin
How can I stop XI from extending my filename?
I tried with the MessageTransformBean, but it had no effect.
Best regards,
DanielHi Sudharshan,
we upgraded from SP15 to SP18, then the problem occured no more.
I created the attachment in an adapter-module for the mail adapter. Sample code:
TextPayload attachment = msg.createTextPayload();
attachment.setContentType("Application/EDIFACT");
attachment.setName("SomethingDynamicallyGenerated.txt");
attachment.setText(string_which_contains_the_new_payload);
msg.addAttachment(attachment);
It seems that the mail adapter checks now if a filename extension is given. If this is the case, it adds no extension by itself.
I tested different configurations like mail package and variable transportbinding / adapterspecific attributes, it worked every time.
Best regards,
Daniel -
Sender Mail Adapter with PayloadSwapBean
Hello Experts!
I have a Sender Mail Adapter receiving emails with attachments! I'm using PayloadSwapBean, because I have to manipulate (to do mapping) the XML attachment.
Sender Mail Adapter Configuration:
Default Interface Namespace = urn:mynamespace.com
Default Interface Name = abs_async_myInterface
swap.keyName = Content-Disposition
swap.keyName = Content-Description
swap.keyValue = attachment;filename="MailAttachment-1.xml"
swap.keyValue = MailAttachment-1
Well, my problems are:
1) Although my Default Interface Namespace is urn:mynamespace.com, sometimes the namespace that cames to SXMB_MONI is http://sap.com/xi/XI/System/Mail. In that case, an Receiver Determination error happens.
2) My XML can be the first (MailAttachment-1), the second (MailAttachment-2), the third (MailAttachment-3), or any other attachment position. Since my swap.keyValue is set to "MailAttachment-1", I'm able to pick the XML only if it is the first attachment.Hi Julio,
Writing an Adapter Module for the same can make your task easy.
Thanks'
Sunil Singh -
Remove Attachment in Mail Adapter Module
Hi!
My problem: I get an email with an attachment which I process in an adapter module for the mail adapter. With the resulting XML I set a new payload, but the old attachment still exists.
This gets to a problem when I route the message back to the mail adapter, he adds the old attachment to the generated email. Therefore the new email has two attachments: the old one and the new one, which should only be one attachment: only the new one.
How can I remove the old attachment? I found no function which solves this problem.
Best regards,
DanielHi Michal,
thanks for the link.
When I import aii_proxy_xirt.jar in my NWDS, I can import the MessageSpecifier class. But I can't get an instance of it from the classes which I can access.
The only 'documented' usages of this class I found were codings for java proxies, so I'm not sure we can use this class in an adapter module.
In this cases they get the MessageSpecifier instance from the proxy bean, so maybe we can get it from the EJB, but this doesn't work with an adapter module (or I haven't found out how )
Hmm. It is a simple problem, but it seems difficult to solve
Best regards,
Daniel
Message was edited by: Daniel Himmel -
Scenario Mail to Idoc with many Attachment.
Hello,
I have a **Mail to Idoc** Scenario. The Mail that I receive contains 3 attachment in XI.
Please let me know how to configure this sender mail adapter to capture all the attachment and send them to the BPM.
I have seen many examples, but any of them helps me.
Regards,Hi Federico
As stated in the blog
Try with or without mail package. Set your outbound interface name as default interface name and use Keep attachments.
Pi will be able to receive Payload with 3 attachments.
In PI attachments are dealt separately then payload. You can access payload in Xi mappings but not attachments.
Moreover your case is Mail to IDOC, where you want to handle attachments. This can be passed to R/3 as attachments only.
As per my knowledge IDOC's cannot handle attachments only BDOC can. How you are trying to achieve this?
Thanks
Gaurav -
Receiver Mail Adapter for PI 7.1 ehp1
Hi Experts,
Is there a way by using Mail Adapter (Receiver) to read the contents of the payload (which is considered also as the attachment) to be included in the body of the email?
Appreciate your help in advance. Thanks!
Cheers,
R-jayHi Shabarish,
Thanks for your answer.
I guess you misunderstood my query. What I would like to do is not to read the content of the email, but to read the content of payload and includes it on email. Using receiver mail adapter as standard (without using module or UDF), and configuring it as to sending the payload, you are just sending an email to the recipient with an attachment without any message in the body.
What I would like to know is how to send an email with details (on its body) taken from the information of the payload.
Cheers,
R-jay
Maybe you are looking for
-
Hi I am trying to get a report to reflect my vendor postings to a Exp GL account with CC as a column too but apart from report S_ALR_87012332 , which is not optimal, i cant find any others Thank you Rukshana
-
Mac OS X Lion 10.7.3 GSSAPI support
When trying to authenticate a user against a GSSAPI enabled OpenLDAP server, it seems that opendirectoryd skips GSSAPI mechanism and uses CRAM-MD5. The OpenLDAP server correctly advertises GSSAPI as a supported SASL mechanism (and GSSAPI works with l
-
Best Multi-Function Printer Software Compatible with OSX
About five years ago, I surveyed Multi-Function Color Laser/Scanners/Fax, etc. I ended up with a Brother MFC9840CDW that I loved. I had tried HP but their software was not as good, and too many features were disabled in OSX. Brother supported almo
-
How do you auto generate series of dates or numbers in iPad Numbers?
Hi, I am using Numbers app on the latest iPad Air 2 running iOS 8. On the OS X version of Numbers, you could type the first two numbers in two rows and drag them while they are both selected to generate the rest of the numbers or dates or formulas ac
-
Updated to Maverick when it came out now errors
Now getting Error: Live file system repair is not supported" This is on an external drive Western Digital 2TB WDC Ears drive, split into three - the other two parts can be verified. Any help appreciaited. The problem came to light as my Carbon Clon