Sending Mail via XForm

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Sending Mail via XForm

Dog86
Hallo,

at the moment I want to send an E-Mail via an XForm. Ok clear, we have a processor for sending mails..so I need a xpl File. But how I will "send" the data entered in my form to this xpl file? How my Xform, especially my submission and my instance have to look like?

Can someone provide me a small example of a XForm and a xpl File wich allows to send E-Mails? Would be greate because I hang on this problem now for more than 3 hours.

Greetings Jakob


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Sending Mail via XForm

fl.schmitt
Hi Jakob,

> at the moment I want to send an E-Mail via an XForm. Ok clear, we have a
> processor for sending mails..so I need a xpl File. But how I will "send"
> the data entered in my form to this xpl file? How my Xform, especially
> my submission and my instance have to look like?


the documentation describes the structure of the data input:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49

There are some examples for multipart messages, too:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753

HTH
florian


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Sending Mail via XForm

Dog86
Hallo,

I already saw this part of the documentation. But what I don't understand is
how my Xform Form have to look like. I mean, I have to pass the Information
(Mail-Address, Text, Attachment etc) from XForm to the xpl Mail-Porocessor.
Thats why I asked for an simple and working example.

Greetings

Jakob

----- Original Message -----
From: "Florian Schmitt" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, July 18, 2009 3:36 PM
Subject: [ops-users] Re: Sending Mail via XForm


> Hi Jakob,
>
>> at the moment I want to send an E-Mail via an XForm. Ok clear, we have a
>> processor for sending mails..so I need a xpl File. But how I will "send"
>> the data entered in my form to this xpl file? How my Xform, especially
>> my submission and my instance have to look like?
>
>
> the documentation describes the structure of the data input:
> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49
>
> There are some examples for multipart messages, too:
> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753
>
> HTH
> florian
>

--------------------------------------------------------------------------------


>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Sending Mail via XForm

Dog86
In reply to this post by fl.schmitt
No one any working example for that issue?

Greetings Jakob

2009/8/18 Jakob Mandalka <[hidden email]>
Hallo,

I already saw this part of the documentation. But what I don't understand is how my Xform Form have to look like. I mean, I have to pass the Information (Mail-Address, Text, Attachment etc) from XForm to the xpl Mail-Porocessor. Thats why I asked for an simple and working example.

Greetings

Jakob

----- Original Message ----- From: "Florian Schmitt" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, July 18, 2009 3:36 PM
Subject: [ops-users] Re: Sending Mail via XForm


Hi Jakob,

at the moment I want to send an E-Mail via an XForm. Ok clear, we have a
processor for sending mails..so I need a xpl File. But how I will "send"
the data entered in my form to this xpl file? How my Xform, especially
my submission and my instance have to look like?


the documentation describes the structure of the data input:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49

There are some examples for multipart messages, too:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753

HTH
florian



--------------------------------------------------------------------------------



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Sending Mail via XForm

Wouter Zelle
Hi Jakob,

When you do a submission, an XML fragment is sent along. That fragment can be used by the XPL handler. The fragments you sent is indicated by the ref attribute on xforms:submission:

<xforms:submission id="xpl" ref="/" .../>

Regards,

Wouter Zelle


On Mon, Jul 20, 2009 at 08:29, Jakob Mandalka <[hidden email]> wrote:
No one any working example for that issue?

Greetings Jakob

2009/8/18 Jakob Mandalka <[hidden email]>
Hallo,

I already saw this part of the documentation. But what I don't understand is how my Xform Form have to look like. I mean, I have to pass the Information (Mail-Address, Text, Attachment etc) from XForm to the xpl Mail-Porocessor. Thats why I asked for an simple and working example.

Greetings

Jakob

----- Original Message ----- From: "Florian Schmitt" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, July 18, 2009 3:36 PM
Subject: [ops-users] Re: Sending Mail via XForm


Hi Jakob,

at the moment I want to send an E-Mail via an XForm. Ok clear, we have a
processor for sending mails..so I need a xpl File. But how I will "send"
the data entered in my form to this xpl file? How my Xform, especially
my submission and my instance have to look like?


the documentation describes the structure of the data input:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49

There are some examples for multipart messages, too:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753

HTH
florian



--------------------------------------------------------------------------------



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Sending Mail via XForm

Erik Bruchez
Administrator
Jakob,

For a real example, you could look at how we implemented email sending
in Form Runner. Basically:

* Submission calls a service with form data or whatever you want to
have in the email
* Service is implemented in XPL and declared in the page flow
* Service builds, with XSLT, a request for the oxf:email processor

In Form Runner, the XPL code is a little more complex because it
handles adding dynamic attachments as well:

email-form.xpl
http://tinyurl.com/n4rxal

-Erik

On Thu, Jul 23, 2009 at 5:02 AM, Wouter Zelle<[hidden email]> wrote:

> Hi Jakob,
>
> When you do a submission, an XML fragment is sent along. That fragment can
> be used by the XPL handler. The fragments you sent is indicated by the ref
> attribute on xforms:submission:
>
> <xforms:submission id="xpl" ref="/" .../>
>
> Regards,
>
> Wouter Zelle
>
>
> On Mon, Jul 20, 2009 at 08:29, Jakob Mandalka
> <[hidden email]> wrote:
>>
>> No one any working example for that issue?
>>
>> Greetings Jakob
>>
>> 2009/8/18 Jakob Mandalka <[hidden email]>
>>>
>>> Hallo,
>>>
>>> I already saw this part of the documentation. But what I don't understand
>>> is how my Xform Form have to look like. I mean, I have to pass the
>>> Information (Mail-Address, Text, Attachment etc) from XForm to the xpl
>>> Mail-Porocessor. Thats why I asked for an simple and working example.
>>>
>>> Greetings
>>>
>>> Jakob
>>>
>>> ----- Original Message ----- From: "Florian Schmitt"
>>> <[hidden email]>
>>> To: <[hidden email]>
>>> Sent: Saturday, July 18, 2009 3:36 PM
>>> Subject: [ops-users] Re: Sending Mail via XForm
>>>
>>>
>>>> Hi Jakob,
>>>>
>>>>> at the moment I want to send an E-Mail via an XForm. Ok clear, we have
>>>>> a
>>>>> processor for sending mails..so I need a xpl File. But how I will
>>>>> "send"
>>>>> the data entered in my form to this xpl file? How my Xform, especially
>>>>> my submission and my instance have to look like?
>>>>
>>>>
>>>> the documentation describes the structure of the data input:
>>>> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49
>>>>
>>>> There are some examples for multipart messages, too:
>>>> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753
>>>>
>>>> HTH
>>>> florian
>>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------------------
>>>
>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the [hidden email]
>>>> mailing list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Sending Mail via XForm

Dog86
Thanks for the help. I figured it out and I am now able to send mails.
But I have still one problem.

If I try to send a PDF File with the mediatype ''application/pdf" or a
Word Document with the media type 'application/msword' I get the
following error:

Exception Class javax.mail.internet.ParseException
Message [no Message]

Is this a Bug? Sending txt files or pictures is no problem.

Greetings

Jakob

2009/7/28 Erik Bruchez <[hidden email]>:

> Jakob,
>
> For a real example, you could look at how we implemented email sending
> in Form Runner. Basically:
>
> * Submission calls a service with form data or whatever you want to
> have in the email
> * Service is implemented in XPL and declared in the page flow
> * Service builds, with XSLT, a request for the oxf:email processor
>
> In Form Runner, the XPL code is a little more complex because it
> handles adding dynamic attachments as well:
>
> email-form.xpl
> http://tinyurl.com/n4rxal
>
> -Erik
>
> On Thu, Jul 23, 2009 at 5:02 AM, Wouter Zelle<[hidden email]> wrote:
>> Hi Jakob,
>>
>> When you do a submission, an XML fragment is sent along. That fragment can
>> be used by the XPL handler. The fragments you sent is indicated by the ref
>> attribute on xforms:submission:
>>
>> <xforms:submission id="xpl" ref="/" .../>
>>
>> Regards,
>>
>> Wouter Zelle
>>
>>
>> On Mon, Jul 20, 2009 at 08:29, Jakob Mandalka
>> <[hidden email]> wrote:
>>>
>>> No one any working example for that issue?
>>>
>>> Greetings Jakob
>>>
>>> 2009/8/18 Jakob Mandalka <[hidden email]>
>>>>
>>>> Hallo,
>>>>
>>>> I already saw this part of the documentation. But what I don't understand
>>>> is how my Xform Form have to look like. I mean, I have to pass the
>>>> Information (Mail-Address, Text, Attachment etc) from XForm to the xpl
>>>> Mail-Porocessor. Thats why I asked for an simple and working example.
>>>>
>>>> Greetings
>>>>
>>>> Jakob
>>>>
>>>> ----- Original Message ----- From: "Florian Schmitt"
>>>> <[hidden email]>
>>>> To: <[hidden email]>
>>>> Sent: Saturday, July 18, 2009 3:36 PM
>>>> Subject: [ops-users] Re: Sending Mail via XForm
>>>>
>>>>
>>>>> Hi Jakob,
>>>>>
>>>>>> at the moment I want to send an E-Mail via an XForm. Ok clear, we have
>>>>>> a
>>>>>> processor for sending mails..so I need a xpl File. But how I will
>>>>>> "send"
>>>>>> the data entered in my form to this xpl file? How my Xform, especially
>>>>>> my submission and my instance have to look like?
>>>>>
>>>>>
>>>>> the documentation describes the structure of the data input:
>>>>> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49
>>>>>
>>>>> There are some examples for multipart messages, too:
>>>>> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753
>>>>>
>>>>> HTH
>>>>> florian
>>>>>
>>>>
>>>>
>>>>
>>>> --------------------------------------------------------------------------------
>>>>
>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the [hidden email]
>>>>> mailing list.
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email] mailing
>>> list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Sending Mail via XForm

Erik Bruchez-3
It looks like a bug. However I am able to send attached PDF files.

-Erik

On Wed, Jul 29, 2009 at 12:44 AM, Jakob
Mandalka<[hidden email]> wrote:

> Thanks for the help. I figured it out and I am now able to send mails.
> But I have still one problem.
>
> If I try to send a PDF File with the mediatype ''application/pdf" or a
> Word Document with the media type 'application/msword' I get the
> following error:
>
> Exception Class         javax.mail.internet.ParseException
> Message         [no Message]
>
> Is this a Bug? Sending txt files or pictures is no problem.
>
> Greetings
>
> Jakob
>
> 2009/7/28 Erik Bruchez <[hidden email]>:
>> Jakob,
>>
>> For a real example, you could look at how we implemented email sending
>> in Form Runner. Basically:
>>
>> * Submission calls a service with form data or whatever you want to
>> have in the email
>> * Service is implemented in XPL and declared in the page flow
>> * Service builds, with XSLT, a request for the oxf:email processor
>>
>> In Form Runner, the XPL code is a little more complex because it
>> handles adding dynamic attachments as well:
>>
>> email-form.xpl
>> http://tinyurl.com/n4rxal
>>
>> -Erik
>>
>> On Thu, Jul 23, 2009 at 5:02 AM, Wouter Zelle<[hidden email]> wrote:
>>> Hi Jakob,
>>>
>>> When you do a submission, an XML fragment is sent along. That fragment can
>>> be used by the XPL handler. The fragments you sent is indicated by the ref
>>> attribute on xforms:submission:
>>>
>>> <xforms:submission id="xpl" ref="/" .../>
>>>
>>> Regards,
>>>
>>> Wouter Zelle
>>>
>>>
>>> On Mon, Jul 20, 2009 at 08:29, Jakob Mandalka
>>> <[hidden email]> wrote:
>>>>
>>>> No one any working example for that issue?
>>>>
>>>> Greetings Jakob
>>>>
>>>> 2009/8/18 Jakob Mandalka <[hidden email]>
>>>>>
>>>>> Hallo,
>>>>>
>>>>> I already saw this part of the documentation. But what I don't understand
>>>>> is how my Xform Form have to look like. I mean, I have to pass the
>>>>> Information (Mail-Address, Text, Attachment etc) from XForm to the xpl
>>>>> Mail-Porocessor. Thats why I asked for an simple and working example.
>>>>>
>>>>> Greetings
>>>>>
>>>>> Jakob
>>>>>
>>>>> ----- Original Message ----- From: "Florian Schmitt"
>>>>> <[hidden email]>
>>>>> To: <[hidden email]>
>>>>> Sent: Saturday, July 18, 2009 3:36 PM
>>>>> Subject: [ops-users] Re: Sending Mail via XForm
>>>>>
>>>>>
>>>>>> Hi Jakob,
>>>>>>
>>>>>>> at the moment I want to send an E-Mail via an XForm. Ok clear, we have
>>>>>>> a
>>>>>>> processor for sending mails..so I need a xpl File. But how I will
>>>>>>> "send"
>>>>>>> the data entered in my form to this xpl file? How my Xform, especially
>>>>>>> my submission and my instance have to look like?
>>>>>>
>>>>>>
>>>>>> the documentation describes the structure of the data input:
>>>>>> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49
>>>>>>
>>>>>> There are some examples for multipart messages, too:
>>>>>> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753
>>>>>>
>>>>>> HTH
>>>>>> florian
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --------------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>>
>>>>>> --
>>>>>> You receive this message as a subscriber of the [hidden email]
>>>>>> mailing list.
>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the [hidden email] mailing
>>>> list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email] mailing
>>> list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Sending Mail via XForm

Alessandro Vernet
Administrator
In reply to this post by Dog86
Jakob,

Jakob Mandalka wrote
Thanks for the help. I figured it out and I am now able to send mails.
But I have still one problem.

If I try to send a PDF File with the mediatype ''application/pdf" or a
Word Document with the media type 'application/msword' I get the
following error:

Exception Class javax.mail.internet.ParseException
Message [no Message]
Like Erik said, this sounds like a bug, but it might be triggered by the email processor not being called in the correct way (i.e. error detection isn't as good as it should).

To figure this out, I would recommend you put debugs on the inputs of your oxf:email processor and see if they match what is expected as described in the documentation (http://www.orbeon.com/ops/doc/processors-messaging-email).

If everything looks good, I would compare the inputs you have to those of Form Runner's email-form.xpl which was linked earlier by Erik (http://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/email/email-form.xpl), as this pipeline is known to work.

I hope this will help,

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Sending Mail via XForm

Dog86
Hello,

I figured the problem out. My file names included spaces like "test
file.doc". This was the problem. Without spaces everything works fine.
Thanks for the help!

Greetings Jakob

2009/8/9 Alessandro  Vernet <[hidden email]>:

>
> Jakob,
>
>
> Jakob Mandalka wrote:
>>
>> Thanks for the help. I figured it out and I am now able to send mails.
>> But I have still one problem.
>>
>> If I try to send a PDF File with the mediatype ''application/pdf" or a
>> Word Document with the media type 'application/msword' I get the
>> following error:
>>
>> Exception Class       javax.mail.internet.ParseException
>> Message       [no Message]
>>
>
> Like Erik said, this sounds like a bug, but it might be triggered by the
> email processor not being called in the correct way (i.e. error detection
> isn't as good as it should).
>
> To figure this out, I would recommend you put debugs on the inputs of your
> oxf:email processor and see if they match what is expected as described in
> the documentation
> (http://www.orbeon.com/ops/doc/processors-messaging-email).
>
> If everything looks good, I would compare the inputs you have to those of
> Form Runner's email-form.xpl which was linked earlier by Erik
> (http://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/email/email-form.xpl),
> as this pipeline is known to work.
>
> I hope this will help,
>
> Alex
>
> -----
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
> Twitter - http://twitter.com/avernet
> --
> View this message in context: http://www.nabble.com/Sending-Mail-via-XForm-tp24536250p24891162.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Sending Mail via XForm

Alessandro Vernet
Administrator
Jakob,

Jakob Mandalka wrote
I figured the problem out. My file names included spaces like "test
file.doc". This was the problem. Without spaces everything works fine.
I am glad you found the solution to this, and it is good to know that it is better to avoid having spaces in the name of the PDF file.

Alex