cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in File to mail scenario

Former Member
0 Kudos

Hi,

I have a simple file to mail where file will be picked up from the NFS and it will be sent as a attachment to a specified mail.

I have done all necessary configuration in IR , ID and all the configuration needed for SMTP.

But, the problem is that receiver is not receiving the mail.

Could you please tell me what are the necessary checking should I do to make the scenario working.

Thanks,

Apu

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Apu,

what is the error in the receiver mail channel?

did you check the firewall team has maintained the rule from PI server to the SMTP IP?

are you using any message transfer bean or swapbean modules, it would be good if you attach mail channel config here.

Cheers

Hidayat

Former Member
0 Kudos

Dear Karthikeyan,

Could you please tell me how to add the following -

icm/server_port_<*> = PROT=SMTP,PORT=<port>

Rest of the things are done as given in the pdf.

Dear Hidayat,

Please find the attachment for the configuration of mail receiver communication channel -

Thanks,

Apu

ambrish_mishra
Active Contributor
0 Kudos

Hi Apu,

>>>>>>>Could you please tell me how to add the following -

icm/server_port_<*> = PROT=SMTP,PORT=<port>

Please work with your basis team for this part since none of the experts would know the details about your system.

Ambrish

Former Member
0 Kudos

Hi,

I am getting the following error when opening the mail receiver channel -

Message processing failed. Cause: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag: {http://sap.com/xi/XI/Mail/30}Mail, but found {urn://test_Mail_Receiver}MT_TestMailReceiver at state 1

Any suggestion how to get rid of this .

Thanks,

Apu

Former Member
0 Kudos

Hi Apu,

Are you using mail package in message mapping?

If yes share the message mapping.

If no uncheck the Use Mail Package in receiver channel and try again.

Regards,

Karthikeyan S

Former Member
0 Kudos

Dear Karthikeyan S,

I have unchecked the use package mail option as I am not using it in my message mapping .

Now its giving another error -

Message processing failed. Cause: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: java.io.IOException: server does not support PLAIN or LOGIN authentication

But, configure user authentication field is unchecked in receiver communication channel.

Thanks,

Apu

Former Member
0 Kudos

Hi Apu,

Please try as mentioned below in receiver channel

Check Configure User Authentication

Authentication Method : Plain

User : (valid mail ID)

Password : (keep this empty) and try again.

If it does't work leave both user and password empty, activate and check it.

Regards,

Karthikeyan S.

Former Member
0 Kudos

Hi Karthikeyan S,

Thank you so much for your valuable answer . Now I am receiving the mail properly without any error in the communication channel.

But the problem is that in my scenario file sender communication channel is picking up a plain text file , but in the attachment of the mail I am getting the xml file as it is generated in mapping.

<?xml version="1.0" encoding="UTF-8" ?>

<ns1:MT_TestMailReceiver xmlns:ns1="urn://test_Mail_Receiver">

        <Record>

          <From>abcd@bcd.com</From>

       <To>xyz@bcd.com</To>

             <Subject>Test Error Message</Subject>

                    <Body>ajdbadbjdb:Error(sdgnslfgklsfmklsdmfklmf)</Body>

  </Record>

</ns1:MT_TestMailReceiver>

How could I get the plain text file as it was in the sender side as a attachment in the mail.

Thanks,

Apu

Former Member
0 Kudos

Hi Apu,

Have u tried with Keep Attachments in Mail Attributes? and by changing message protocol?

Regards,

Karthikeyan S.

Former Member
0 Kudos

Hi Apu,

select the keep attachments in the mail attributes or use message transform bean module

Cheers

Hidayat

ambrish_mishra
Active Contributor
0 Kudos

Hi Apu,

Are you getting an error in the mail adapter ?

At which step are you stuck. Is the file getting picked up.

Ambrish

Former Member
0 Kudos

Hi Apu,

The problem could be in SMTP or receiver Mail channel configuration.

Please check http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0a27c01-26b0-2c10-bd8a-94498efa7...

Regards,

Karthikeyan S

Former Member
0 Kudos

Hello,

Check ur mail adapter, i think there u will find the exact issue.

Thanks

Amit Srivastava

nipun_shedhani4
Explorer
0 Kudos

Hi Apu,

Check your SMTP address, the User Authentication could be a problem. if you Scenario is running as expected.

Regards,

Nipun

Bhargavakrishna
Active Contributor
0 Kudos

Hi Apu Das,

check the Mail communication channel configuration.

Go to moni and check the Pipeline steps and see, where it got failed.

Go to ID --> Tools --> Test configuration and provide the necessary details and see, what went wrong.

you can also send a test message from RWB.

go to RWB --> Send test message option --> integration engine

Copy the payload from message mapping and provide the sender interface / communication component details and send it.

Check in moni, it is successfully processed or not.

Regards

Bhargava krishna