Problem receiving emails

Hi,

(I also posted in Tricks & Troubleshooting).

I’ve setup a port to listen on my email server, which finally works. But, our client is about to send emails as plain text, in the body of the message. And there comes the hard part. I cannot find a way to retreive the body. I looked into the “pub.flow:getTransportInfo” service, which I call from the target service of the email-listener, but it only works when the content is send as an attachement.

When I save the pipeline (savePipelineToFile), it shows the following for the body data:

.

So it is inside the pipeline, but I don’t know how I can read it. I don’t feel much for writing a Java function which does some ugly parsing or something.

If anybody knows of a solution, please let me know.

Thanks in advance,

Patrick.

Hello Patrick,

Did you manage to solve this problem ?

I also need to get at the body of an email as a replacement for a legacy system which accepts orders (non-XML) in the body of an email.

Regards

Phal

Hi Phal,

unfortuanatly we didn’t. We ent up by asking or customer whether they could send the text as an attachement but got no reply yet. The projects is also pushed forward a little…

I try to let you know when I do might find a good solution…

Best regards,

Patrick.

Hi Guys,

please let me know if you were able to get the body of the mail into the pipeline, I am having the same problem. Please mail me at rudi.jordaan@affinity.co.za.

Thanks

pls put in your email body as name/value pairs . This will ensure that the “value” part appears in the pipeline as a String record with name “name”

eg:
Set email body as

body= This is email body

The pipeline then will have a string variable “body” as with value "This is email body "

Hope this helps

Guys !

I am also struck up in reciving mails frm IS.
I have created a port
with the following configurations

packageName = ycDebug

hostname = mail.shan.com
type=pop3

username = shan@ford.com
passsword =********

Time interval = 0
port unspecified
logout after each check = yes
Global service : rfolder1:reciveAutoMail
Defualt Service : unspecified

is this correct guys ???
and in the IS
i have created a folder callled ycDebug
and a folder called rfolder1
and a flow service callled reciveAutoMail
and java service called retrive which is used in reciveAutoMail
and i have given many debug statements in retrive java file.
but it not workinggggggggggg can somebody guess why ??

i am sure that java is correct bcos i took it frm Devoloper Guide only…

can some body suggest wats wrong ??

Regards
Shan.K.S

Shan,

The email listener will call your service rfolder1:reciveAutoMail
for each attachment in your email.
If the data is in the body and there are no attachments then you will have to
build a custom handler.

Other things to consider are to check if there are firewall issues getting
to the mail server from the IS server.

Regards

Phal Tatla

Hi Shan,

You say:
"i have created a folder callled ycDebug
and a folder called rfolder1
and a flow service callled reciveAutoMail "

… if this is the case, then the receive service you should configure is actually:
Global service : ycDebug.rfolder1:reciveAutoMail

Did you mean you created a package ‘ycDebug’ and a folder ‘rfolder1’?

You can copy/paste the service name from Developer to make sure the parameter in the email listener is 100% the same.

More hints:
Debug in java services can be tricky. System.err.println(…) will dump the output to stdout, and if you’re after something quick and dirty then this is often good enough for prototyping.

Try invoking a flow service instead where you can savePipelineToFile. This will remove some of the troubleshooting complexities from your scenario involving an invoked java service.

You can enable enhanced logging on the Integration Server where you are configuring this email listener (and thereby remove the need to ‘guess’ what the problem is) by using the HTML administration console Settings > Logging; move the log level to 8 or 10 and enable the following facility: 0068 Email Listener. This will log more detail to the Server log.

The Error log may already have information on the problem.

NOTE: Remember to re-enable all facilities when you’re finished since this filtering affects the entries written to the server log - it’s quite common to think the server isn’t started simply because someone has changed the logging levels so you don’t see the ‘Initialization completed’ message.

Regards,
Adrian

Hi Everybody,

I am trying to invoke the flow service from the Email Listener. But It is not invoking. Such as debug statements are not logged on the IS Console.

Could you please share your experience on the above subject.

We are using IS 6.5 SP1.

Appreciate your help…

Regards
Chandu.

Chandu,

Did you change the “Access Mode” on the Ports screen to “Allow by default” for your email listener and test it then? Are your emails disappearing from your inbox? [ie. is the port logging in, getting the emails but not running your service].

Do the logs on your email server show the IS logging in?

James…

James,

Yes, Emails are disapperaing from the inbox. However this setting would be on the POP3 server whether you want to keep or delete.

I could see the below info from the IS Log.

2006-09-13 18:09:14 SGT [ISS.0070.0017V1] EmailListener:pop3:xxxx@xxxx.com@hostname:portname started
2006-09-13 18:16:19 SGT [ISP.0068.0026V2] Content type: multipart/mixed;
boundary=“----=_nextpart_000_0060_01c6d760.5130e930” Subject: smtp:receiveFiles

Based on the above information we could conclude that I am able to connect the Server. It looks only my service is not invoking.
Here “Subject: smtp:receiveFiles”- smtp.receiveFiles is the service name which I provided in the Global Service.

Appreciate your hlep in resolving this problem.

Regards
Chandu