email processor

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

email processor

bsteuhl

How do you configure email processor to use gmail smtp server - smtp.gmail.com?
 A web service that we have uses a sendURL for gmail of
smtp://user:[hidden email]:465.

Thank you for your assistance.


--
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: email processor

Erik Bruchez
Administrator
First, have you checked this?

   http://www.orbeon.com/ops/doc/processors-messaging-email

-Erik

On Apr 10, 2009, at 7:52 AM, [hidden email] wrote:

>
> How do you configure email processor to use gmail smtp server -  
> smtp.gmail.com?
> A web service that we have uses a sendURL for gmail of
> smtp://user:[hidden email]:465.
>
> Thank you for your assistance.
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

Re: email processor

Harshal
Hi Erik,

After configuring email-processor to use gmail, it throws this exception:
Must issue a STARTTLS command first

I am wondering where should I set   "mail.smtp.starttls.enabled" property ?

Thanks,
Harshal
Reply | Threaded
Open this post in threaded view
|

Re: Re: email processor

idwright
Hi,
I've also been looking at this problem recently and was about to post a
message but you beat me to it.
I found that I've had to create a new class extending EmailProcessor and
add the following configuration:

String port = messageElement.element("smtp-port").getTextTrim();


                         properties.setProperty("mail.smtp.port", port);
     if (port.equals("465")) {
         Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                         
properties.setProperty("mail.smtp.socketFactory.class",
                                 "javax.net.ssl.SSLSocketFactory");
                         
properties.setProperty("mail.smtp.socketFactory.port",
                                 port);
                         properties.setProperty(
                                 "mail.smtp.socketFactory.fallback",
"false");
     }

I didn't need to use mail.smtp.starttls.enabled
Obviously this is something of a hack and it would be nice for this to
be tidied up and included in the main code.

I didn't have any luck trying to set the properties as jvm args but that
might be an alternative route to investigate although you would also
need to manage the security certs which is currently sorted out by the
Security.addProvider call.

Regards,
Ian
On 19:59, [hidden email] wrote:
> Hi Erik,
>
> After configuring email-processor to use gmail, it throws this exception:
> Must issue a STARTTLS command first
>
> I am wondering where should I set   "mail.smtp.starttls.enabled" property ?
>
> Thanks,
> Harshal



--
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: email processor

koenvdk
Hi,

This thread is quite old. I wondered whether there has been any change in the default implementation?
Can we use gmail with configuration only yet?
I still get the starttls error when I try...


Thx!

idwright wrote
Hi,
I've also been looking at this problem recently and was about to post a
message but you beat me to it.
I found that I've had to create a new class extending EmailProcessor and
add the following configuration:

String port = messageElement.element("smtp-port").getTextTrim();


                         properties.setProperty("mail.smtp.port", port);
     if (port.equals("465")) {
         Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                         
properties.setProperty("mail.smtp.socketFactory.class",
                                 "javax.net.ssl.SSLSocketFactory");
                         
properties.setProperty("mail.smtp.socketFactory.port",
                                 port);
                         properties.setProperty(
                                 "mail.smtp.socketFactory.fallback",
"false");
     }

I didn't need to use mail.smtp.starttls.enabled
Obviously this is something of a hack and it would be nice for this to
be tidied up and included in the main code.

I didn't have any luck trying to set the properties as jvm args but that
might be an alternative route to investigate although you would also
need to manage the security certs which is currently sorted out by the
Security.addProvider call.

Regards,
Ian
On 19:59, [hidden email] wrote:
> Hi Erik,
>
> After configuring email-processor to use gmail, it throws this exception:
> Must issue a STARTTLS command first
>
> I am wondering where should I set   "mail.smtp.starttls.enabled" property ?
>
> Thanks,
> Harshal



--
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: email processor

Erik Bruchez
Administrator
We haven't looked at this since then. It'd be great to make this work
out of the box. I notice that the JavaMail FAQ has some instructions
to connect to GMail, which seem simpler:

http://www.oracle.com/technetwork/java/faq-135477.html#gmail

Are you able to look into whether this would work?

-Erik

On Tue, Apr 10, 2012 at 5:22 AM, koenvdk <[hidden email]> wrote:

> Hi,
>
> This thread is quite old. I wondered whether there has been any change in
> the default implementation?
> Can we use gmail with configuration only yet?
> I still get the starttls error when I try...
>
>
> Thx!
>
>
> idwright wrote
>>
>> Hi,
>> I've also been looking at this problem recently and was about to post a
>> message but you beat me to it.
>> I found that I've had to create a new class extending EmailProcessor and
>> add the following configuration:
>>
>> String port = messageElement.element("smtp-port").getTextTrim();
>>
>>
>>                          properties.setProperty("mail.smtp.port", port);
>>      if (port.equals("465")) {
>>          Security.addProvider(new
>> com.sun.net.ssl.internal.ssl.Provider());
>>
>> properties.setProperty("mail.smtp.socketFactory.class",
>>                                  "javax.net.ssl.SSLSocketFactory");
>>
>> properties.setProperty("mail.smtp.socketFactory.port",
>>                                  port);
>>                          properties.setProperty(
>>                                  "mail.smtp.socketFactory.fallback",
>> "false");
>>      }
>>
>> I didn't need to use mail.smtp.starttls.enabled
>> Obviously this is something of a hack and it would be nice for this to
>> be tidied up and included in the main code.
>>
>> I didn't have any luck trying to set the properties as jvm args but that
>> might be an alternative route to investigate although you would also
>> need to manage the security certs which is currently sorted out by the
>> Security.addProvider call.
>>
>> Regards,
>> Ian
>> On 19:59, harshal.raut@ wrote:
>>> Hi Erik,
>>>
>>> After configuring email-processor to use gmail, it throws this exception:
>>> Must issue a STARTTLS command first
>>>
>>> I am wondering where should I set   "mail.smtp.starttls.enabled" property
>>> ?
>>>
>>> Thanks,
>>> Harshal
>>
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ mailing list.
>> To unsubscribe: mailto:ops-users-unsubscribe@
>> For general help: mailto:sympa@?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/email-processor-tp43177p4545436.html
> Sent from the Orbeon Forms (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: email processor

Erik Bruchez
Administrator
Support for TLS, SSL and custom SMTP port are now in:

https://github.com/orbeon/orbeon-forms/issues/395

The email processor now supports two new configuration elements:

- smtp-port
- smtp-auth

More information here:

http://wiki.orbeon.com/forms/doc/developer-guide/processors-email

Form Runner also supports new properties to configure the same aspects:

- oxf.fr.email.smtp.port
- oxf.fr.email.smtp.auth

See also:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner?pli=1#TOC-Email-settings

-Erik

On Tue, Apr 10, 2012 at 9:11 PM, Erik Bruchez <[hidden email]> wrote:

> We haven't looked at this since then. It'd be great to make this work
> out of the box. I notice that the JavaMail FAQ has some instructions
> to connect to GMail, which seem simpler:
>
> http://www.oracle.com/technetwork/java/faq-135477.html#gmail
>
> Are you able to look into whether this would work?
>
> -Erik
>
> On Tue, Apr 10, 2012 at 5:22 AM, koenvdk <[hidden email]> wrote:
>> Hi,
>>
>> This thread is quite old. I wondered whether there has been any change in
>> the default implementation?
>> Can we use gmail with configuration only yet?
>> I still get the starttls error when I try...
>>
>>
>> Thx!
>>
>>
>> idwright wrote
>>>
>>> Hi,
>>> I've also been looking at this problem recently and was about to post a
>>> message but you beat me to it.
>>> I found that I've had to create a new class extending EmailProcessor and
>>> add the following configuration:
>>>
>>> String port = messageElement.element("smtp-port").getTextTrim();
>>>
>>>
>>>                          properties.setProperty("mail.smtp.port", port);
>>>      if (port.equals("465")) {
>>>          Security.addProvider(new
>>> com.sun.net.ssl.internal.ssl.Provider());
>>>
>>> properties.setProperty("mail.smtp.socketFactory.class",
>>>                                  "javax.net.ssl.SSLSocketFactory");
>>>
>>> properties.setProperty("mail.smtp.socketFactory.port",
>>>                                  port);
>>>                          properties.setProperty(
>>>                                  "mail.smtp.socketFactory.fallback",
>>> "false");
>>>      }
>>>
>>> I didn't need to use mail.smtp.starttls.enabled
>>> Obviously this is something of a hack and it would be nice for this to
>>> be tidied up and included in the main code.
>>>
>>> I didn't have any luck trying to set the properties as jvm args but that
>>> might be an alternative route to investigate although you would also
>>> need to manage the security certs which is currently sorted out by the
>>> Security.addProvider call.
>>>
>>> Regards,
>>> Ian
>>> On 19:59, harshal.raut@ wrote:
>>>> Hi Erik,
>>>>
>>>> After configuring email-processor to use gmail, it throws this exception:
>>>> Must issue a STARTTLS command first
>>>>
>>>> I am wondering where should I set   "mail.smtp.starttls.enabled" property
>>>> ?
>>>>
>>>> Thanks,
>>>> Harshal
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the ops-users@ mailing list.
>>> To unsubscribe: mailto:ops-users-unsubscribe@
>>> For general help: mailto:sympa@?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>
>>
>> --
>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/email-processor-tp43177p4545436.html
>> Sent from the Orbeon Forms (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: email processor

Erik Bruchez
Administrator
Mmh, TLS and SSH are not authorization protocols, so we updated the
names. The element and property are now called:

- encryption instead of smtp-auth
- oxf.fr.email.smtp.encryption instead of oxf.fr.email.smtp.auth

-Erik

On Mon, Jul 23, 2012 at 12:13 PM, Erik Bruchez <[hidden email]> wrote:

> Support for TLS, SSL and custom SMTP port are now in:
>
> https://github.com/orbeon/orbeon-forms/issues/395
>
> The email processor now supports two new configuration elements:
>
> - smtp-port
> - smtp-auth
>
> More information here:
>
> http://wiki.orbeon.com/forms/doc/developer-guide/processors-email
>
> Form Runner also supports new properties to configure the same aspects:
>
> - oxf.fr.email.smtp.port
> - oxf.fr.email.smtp.auth
>
> See also:
>
> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner?pli=1#TOC-Email-settings
>
> -Erik
>
> On Tue, Apr 10, 2012 at 9:11 PM, Erik Bruchez <[hidden email]> wrote:
>> We haven't looked at this since then. It'd be great to make this work
>> out of the box. I notice that the JavaMail FAQ has some instructions
>> to connect to GMail, which seem simpler:
>>
>> http://www.oracle.com/technetwork/java/faq-135477.html#gmail
>>
>> Are you able to look into whether this would work?
>>
>> -Erik
>>
>> On Tue, Apr 10, 2012 at 5:22 AM, koenvdk <[hidden email]> wrote:
>>> Hi,
>>>
>>> This thread is quite old. I wondered whether there has been any change in
>>> the default implementation?
>>> Can we use gmail with configuration only yet?
>>> I still get the starttls error when I try...
>>>
>>>
>>> Thx!
>>>
>>>
>>> idwright wrote
>>>>
>>>> Hi,
>>>> I've also been looking at this problem recently and was about to post a
>>>> message but you beat me to it.
>>>> I found that I've had to create a new class extending EmailProcessor and
>>>> add the following configuration:
>>>>
>>>> String port = messageElement.element("smtp-port").getTextTrim();
>>>>
>>>>
>>>>                          properties.setProperty("mail.smtp.port", port);
>>>>      if (port.equals("465")) {
>>>>          Security.addProvider(new
>>>> com.sun.net.ssl.internal.ssl.Provider());
>>>>
>>>> properties.setProperty("mail.smtp.socketFactory.class",
>>>>                                  "javax.net.ssl.SSLSocketFactory");
>>>>
>>>> properties.setProperty("mail.smtp.socketFactory.port",
>>>>                                  port);
>>>>                          properties.setProperty(
>>>>                                  "mail.smtp.socketFactory.fallback",
>>>> "false");
>>>>      }
>>>>
>>>> I didn't need to use mail.smtp.starttls.enabled
>>>> Obviously this is something of a hack and it would be nice for this to
>>>> be tidied up and included in the main code.
>>>>
>>>> I didn't have any luck trying to set the properties as jvm args but that
>>>> might be an alternative route to investigate although you would also
>>>> need to manage the security certs which is currently sorted out by the
>>>> Security.addProvider call.
>>>>
>>>> Regards,
>>>> Ian
>>>> On 19:59, harshal.raut@ wrote:
>>>>> Hi Erik,
>>>>>
>>>>> After configuring email-processor to use gmail, it throws this exception:
>>>>> Must issue a STARTTLS command first
>>>>>
>>>>> I am wondering where should I set   "mail.smtp.starttls.enabled" property
>>>>> ?
>>>>>
>>>>> Thanks,
>>>>> Harshal
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the ops-users@ mailing list.
>>>> To unsubscribe: mailto:ops-users-unsubscribe@
>>>> For general help: mailto:sympa@?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>
>>>
>>> --
>>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/email-processor-tp43177p4545436.html
>>> Sent from the Orbeon Forms (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: email processor

idwright
Hi,

Are there global properties for encryption? ( smtp-port as well?
although 465 assumed if ssl so not as relevant)

If so the Configuration properties section on
http://wiki.orbeon.com/forms/doc/developer-guide/processors-email#TOC-Configuration-properties 
could do with updating, if not then that would be nice....

Thanks,
Ian

On 23/07/12 23:17, Erik Bruchez wrote:

> Mmh, TLS and SSH are not authorization protocols, so we updated the
> names. The element and property are now called:
>
> - encryption instead of smtp-auth
> - oxf.fr.email.smtp.encryption instead of oxf.fr.email.smtp.auth
>
> -Erik
>
> On Mon, Jul 23, 2012 at 12:13 PM, Erik Bruchez <[hidden email]> wrote:
>> Support for TLS, SSL and custom SMTP port are now in:
>>
>> https://github.com/orbeon/orbeon-forms/issues/395
>>
>> The email processor now supports two new configuration elements:
>>
>> - smtp-port
>> - smtp-auth
>>
>> More information here:
>>
>> http://wiki.orbeon.com/forms/doc/developer-guide/processors-email
>>
>> Form Runner also supports new properties to configure the same aspects:
>>
>> - oxf.fr.email.smtp.port
>> - oxf.fr.email.smtp.auth
>>
>> See also:
>>
>> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner?pli=1#TOC-Email-settings
>>
>> -Erik
>>
>> On Tue, Apr 10, 2012 at 9:11 PM, Erik Bruchez <[hidden email]> wrote:
>>> We haven't looked at this since then. It'd be great to make this work
>>> out of the box. I notice that the JavaMail FAQ has some instructions
>>> to connect to GMail, which seem simpler:
>>>
>>> http://www.oracle.com/technetwork/java/faq-135477.html#gmail
>>>
>>> Are you able to look into whether this would work?
>>>
>>> -Erik
>>>
>>> On Tue, Apr 10, 2012 at 5:22 AM, koenvdk <[hidden email]> wrote:
>>>> Hi,
>>>>
>>>> This thread is quite old. I wondered whether there has been any change in
>>>> the default implementation?
>>>> Can we use gmail with configuration only yet?
>>>> I still get the starttls error when I try...
>>>>
>>>>
>>>> Thx!
>>>>
>>>>
>>>> idwright wrote
>>>>> Hi,
>>>>> I've also been looking at this problem recently and was about to post a
>>>>> message but you beat me to it.
>>>>> I found that I've had to create a new class extending EmailProcessor and
>>>>> add the following configuration:
>>>>>
>>>>> String port = messageElement.element("smtp-port").getTextTrim();
>>>>>
>>>>>
>>>>>                           properties.setProperty("mail.smtp.port", port);
>>>>>       if (port.equals("465")) {
>>>>>           Security.addProvider(new
>>>>> com.sun.net.ssl.internal.ssl.Provider());
>>>>>
>>>>> properties.setProperty("mail.smtp.socketFactory.class",
>>>>>                                   "javax.net.ssl.SSLSocketFactory");
>>>>>
>>>>> properties.setProperty("mail.smtp.socketFactory.port",
>>>>>                                   port);
>>>>>                           properties.setProperty(
>>>>>                                   "mail.smtp.socketFactory.fallback",
>>>>> "false");
>>>>>       }
>>>>>
>>>>> I didn't need to use mail.smtp.starttls.enabled
>>>>> Obviously this is something of a hack and it would be nice for this to
>>>>> be tidied up and included in the main code.
>>>>>
>>>>> I didn't have any luck trying to set the properties as jvm args but that
>>>>> might be an alternative route to investigate although you would also
>>>>> need to manage the security certs which is currently sorted out by the
>>>>> Security.addProvider call.
>>>>>
>>>>> Regards,
>>>>> Ian
>>>>> On 19:59, harshal.raut@ wrote:
>>>>>> Hi Erik,
>>>>>>
>>>>>> After configuring email-processor to use gmail, it throws this exception:
>>>>>> Must issue a STARTTLS command first
>>>>>>
>>>>>> I am wondering where should I set   "mail.smtp.starttls.enabled" property
>>>>>> ?
>>>>>>
>>>>>> Thanks,
>>>>>> Harshal
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the ops-users@ mailing list.
>>>>> To unsubscribe: mailto:ops-users-unsubscribe@
>>>>> For general help: mailto:sympa@?subject=help
>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>
>>>>
>>>> --
>>>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/email-processor-tp43177p4545436.html
>>>> Sent from the Orbeon Forms (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: email processor

Erik Bruchez
Administrator
Ian,

Now there is ;)

https://github.com/orbeon/orbeon-forms/commit/8bcb4270f1cdc8ae50a8b69d08e3b2f010308fab

I have also moved the properties doc:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-base#TOC-Email-processor-properties

-Erik

On Tue, Aug 7, 2012 at 6:03 AM, Ian Wright <[hidden email]> wrote:

> Hi,
>
> Are there global properties for encryption? ( smtp-port as well? although
> 465 assumed if ssl so not as relevant)
>
> If so the Configuration properties section on
> http://wiki.orbeon.com/forms/doc/developer-guide/processors-email#TOC-Configuration-properties
> could do with updating, if not then that would be nice....
>
> Thanks,
> Ian
>
>
> On 23/07/12 23:17, Erik Bruchez wrote:
>>
>> Mmh, TLS and SSH are not authorization protocols, so we updated the
>> names. The element and property are now called:
>>
>> - encryption instead of smtp-auth
>> - oxf.fr.email.smtp.encryption instead of oxf.fr.email.smtp.auth
>>
>> -Erik
>>
>> On Mon, Jul 23, 2012 at 12:13 PM, Erik Bruchez <[hidden email]>
>> wrote:
>>>
>>> Support for TLS, SSL and custom SMTP port are now in:
>>>
>>> https://github.com/orbeon/orbeon-forms/issues/395
>>>
>>> The email processor now supports two new configuration elements:
>>>
>>> - smtp-port
>>> - smtp-auth
>>>
>>> More information here:
>>>
>>> http://wiki.orbeon.com/forms/doc/developer-guide/processors-email
>>>
>>> Form Runner also supports new properties to configure the same aspects:
>>>
>>> - oxf.fr.email.smtp.port
>>> - oxf.fr.email.smtp.auth
>>>
>>> See also:
>>>
>>>
>>> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner?pli=1#TOC-Email-settings
>>>
>>> -Erik
>>>
>>> On Tue, Apr 10, 2012 at 9:11 PM, Erik Bruchez <[hidden email]>
>>> wrote:
>>>>
>>>> We haven't looked at this since then. It'd be great to make this work
>>>> out of the box. I notice that the JavaMail FAQ has some instructions
>>>> to connect to GMail, which seem simpler:
>>>>
>>>> http://www.oracle.com/technetwork/java/faq-135477.html#gmail
>>>>
>>>> Are you able to look into whether this would work?
>>>>
>>>> -Erik
>>>>
>>>> On Tue, Apr 10, 2012 at 5:22 AM, koenvdk <[hidden email]>
>>>> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> This thread is quite old. I wondered whether there has been any change
>>>>> in
>>>>> the default implementation?
>>>>> Can we use gmail with configuration only yet?
>>>>> I still get the starttls error when I try...
>>>>>
>>>>>
>>>>> Thx!
>>>>>
>>>>>
>>>>> idwright wrote
>>>>>>
>>>>>> Hi,
>>>>>> I've also been looking at this problem recently and was about to post
>>>>>> a
>>>>>> message but you beat me to it.
>>>>>> I found that I've had to create a new class extending EmailProcessor
>>>>>> and
>>>>>> add the following configuration:
>>>>>>
>>>>>> String port = messageElement.element("smtp-port").getTextTrim();
>>>>>>
>>>>>>
>>>>>>                           properties.setProperty("mail.smtp.port",
>>>>>> port);
>>>>>>       if (port.equals("465")) {
>>>>>>           Security.addProvider(new
>>>>>> com.sun.net.ssl.internal.ssl.Provider());
>>>>>>
>>>>>> properties.setProperty("mail.smtp.socketFactory.class",
>>>>>>                                   "javax.net.ssl.SSLSocketFactory");
>>>>>>
>>>>>> properties.setProperty("mail.smtp.socketFactory.port",
>>>>>>                                   port);
>>>>>>                           properties.setProperty(
>>>>>>                                   "mail.smtp.socketFactory.fallback",
>>>>>> "false");
>>>>>>       }
>>>>>>
>>>>>> I didn't need to use mail.smtp.starttls.enabled
>>>>>> Obviously this is something of a hack and it would be nice for this to
>>>>>> be tidied up and included in the main code.
>>>>>>
>>>>>> I didn't have any luck trying to set the properties as jvm args but
>>>>>> that
>>>>>> might be an alternative route to investigate although you would also
>>>>>> need to manage the security certs which is currently sorted out by the
>>>>>> Security.addProvider call.
>>>>>>
>>>>>> Regards,
>>>>>> Ian
>>>>>> On 19:59, harshal.raut@ wrote:
>>>>>>>
>>>>>>> Hi Erik,
>>>>>>>
>>>>>>> After configuring email-processor to use gmail, it throws this
>>>>>>> exception:
>>>>>>> Must issue a STARTTLS command first
>>>>>>>
>>>>>>> I am wondering where should I set   "mail.smtp.starttls.enabled"
>>>>>>> property
>>>>>>> ?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Harshal
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You receive this message as a subscriber of the ops-users@ mailing
>>>>>> list.
>>>>>> To unsubscribe: mailto:ops-users-unsubscribe@
>>>>>> For general help: mailto:sympa@?subject=help
>>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/email-processor-tp43177p4545436.html
>>>>> Sent from the Orbeon Forms (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
>


--
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
|

Problem with 4.0.m9 -- No namespace declaration found for prefix: xxforms

idwright
In reply to this post by Erik Bruchez
Hi,

I do have solution (for me) but I thought it would be useful to report this.

I just upgraded to m9 (from m5) and I'm getting a new exception - No
namespace declaration found for prefix: xxforms

I've had loads of this kind of exception going from 3.9 to 4.0 mostly
due to namespaces in attributes in included docs and I've usually been
able to sort it out by careful checking of the xincluded files but not here.

Putting a break point on OXFException I find
Dom4jUtils.extractTextValueQName line 566 gives me a value for
qNameString of xxforms:separator
searching back through the stack gives me the name of the file where the
error is occurring (it would be really nice if this was in the exception
message but that is probably tricky)

I've searched my code and I don't have xxforms:separator anywhere...

So I put the namespace declaration for xxforms in the included file
anyway and it's got rid of the problem (although then I got a different
XPath syntax error - Prefix has not been declared but that is resolvable
by further checking of the use of namespaces in included files)

For me the area of namespaces in xincluded files, primarily in
attributes, has been by far the biggest headache in going from 3.9 to
4.0 so far.

This was all working with m5

On to the next problem.... (IllegalArgumentException in RepeatControl)

Thanks for the other changes.

Regards,
Ian

2012-08-08 09:17:19,942 ERROR org.orbeon.oxf.webapp.ProcessorService  -
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred |
|----------------------------------------------------------------------------------------------------------------------|
|No namespace declaration found for prefix: xxforms |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/pfc/xforms-epilogue.xpl                         |  77|
60|reading processor output                          |
|oxf:/ops/pfc/xforms-epilogue.xpl                         |  88|
60|reading processor output                          |
|oxf:/ops/pfc/xforms-epilogue.xpl                         |  95|
59|reading processor output                          |
|oxf:/config/epilogue.xpl                                 |  41|
58|reading processor output                          |
|oxf:/config/epilogue-servlet.xpl                         |  31|
48|reading processor output                          |
|oxf:/config/epilogue.xpl                                 |  60|
46|executing processor                               |
|oxf:/apps/study/page-flow.xml                            |  30|
45|executing processor                               |
|oxf:/page-flow.xml                                       |  34|
90|reading page model data output                    |
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.OXFException |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.xml.dom4j.Dom4jUtils |extractTextValueQName        
|Dom4jUtils.java               | 566|
|org.orbeon.oxf.xforms.analysis.ElementAnalysis$$ano|apply
|ElementAnalysis.scala         | 280|




--
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: Problem with 4.0.m9 -- No namespace declaration found for prefix: xxforms

Erik Bruchez
Administrator
Ian,

Thanks for trying ! I can see why this is happening and I have entered an issue:

https://github.com/orbeon/orbeon-forms/issues/418

This didn't happen in the past because the XInclude processor
improperly dealt with namespaces. Now the namespaces are correct
(hopefully), and so this kind of things becomes visible. In general,
you don't see this because the xxforms prefix is declared by most
pages.

-Erik

On Wed, Aug 8, 2012 at 2:04 AM, Ian Wright <[hidden email]> wrote:

> Hi,
>
> I do have solution (for me) but I thought it would be useful to report this.
>
> I just upgraded to m9 (from m5) and I'm getting a new exception - No
> namespace declaration found for prefix: xxforms
>
> I've had loads of this kind of exception going from 3.9 to 4.0 mostly due to
> namespaces in attributes in included docs and I've usually been able to sort
> it out by careful checking of the xincluded files but not here.
>
> Putting a break point on OXFException I find
> Dom4jUtils.extractTextValueQName line 566 gives me a value for qNameString
> of xxforms:separator
> searching back through the stack gives me the name of the file where the
> error is occurring (it would be really nice if this was in the exception
> message but that is probably tricky)
>
> I've searched my code and I don't have xxforms:separator anywhere...
>
> So I put the namespace declaration for xxforms in the included file anyway
> and it's got rid of the problem (although then I got a different XPath
> syntax error - Prefix has not been declared but that is resolvable by
> further checking of the use of namespaces in included files)
>
> For me the area of namespaces in xincluded files, primarily in attributes,
> has been by far the biggest headache in going from 3.9 to 4.0 so far.
>
> This was all working with m5
>
> On to the next problem.... (IllegalArgumentException in RepeatControl)
>
> Thanks for the other changes.
>
> Regards,
> Ian
>
> 2012-08-08 09:17:19,942 ERROR org.orbeon.oxf.webapp.ProcessorService  -
> +----------------------------------------------------------------------------------------------------------------------+
> |An Error has Occurred |
> |----------------------------------------------------------------------------------------------------------------------|
> |No namespace declaration found for prefix: xxforms |
> |----------------------------------------------------------------------------------------------------------------------|
> |Application Call Stack |
> |----------------------------------------------------------------------------------------------------------------------|
> |oxf:/ops/pfc/xforms-epilogue.xpl                         |  77| 60|reading
> processor output                          |
> |oxf:/ops/pfc/xforms-epilogue.xpl                         |  88| 60|reading
> processor output                          |
> |oxf:/ops/pfc/xforms-epilogue.xpl                         |  95| 59|reading
> processor output                          |
> |oxf:/config/epilogue.xpl                                 |  41| 58|reading
> processor output                          |
> |oxf:/config/epilogue-servlet.xpl                         |  31| 48|reading
> processor output                          |
> |oxf:/config/epilogue.xpl                                 |  60|
> 46|executing processor                               |
> |oxf:/apps/study/page-flow.xml                            |  30|
> 45|executing processor                               |
> |oxf:/page-flow.xml                                       |  34| 90|reading
> page model data output                    |
> |----------------------------------------------------------------------------------------------------------------------|
> |Exception: org.orbeon.oxf.common.OXFException |
> |----------------------------------------------------------------------------------------------------------------------|
> |org.orbeon.oxf.xml.dom4j.Dom4jUtils |extractTextValueQName
> |Dom4jUtils.java               | 566|
> |org.orbeon.oxf.xforms.analysis.ElementAnalysis$$ano|apply
> |ElementAnalysis.scala         | 280|
>
>
>
>
> --
> 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: Problem with 4.0.m9 -- No namespace declaration found for prefix: xxforms

Erik Bruchez
Administrator
And this one should be fixed now. -Erik

On Wed, Aug 8, 2012 at 9:03 AM, Erik Bruchez <[hidden email]> wrote:

> Ian,
>
> Thanks for trying ! I can see why this is happening and I have entered an issue:
>
> https://github.com/orbeon/orbeon-forms/issues/418
>
> This didn't happen in the past because the XInclude processor
> improperly dealt with namespaces. Now the namespaces are correct
> (hopefully), and so this kind of things becomes visible. In general,
> you don't see this because the xxforms prefix is declared by most
> pages.
>
> -Erik
>
> On Wed, Aug 8, 2012 at 2:04 AM, Ian Wright <[hidden email]> wrote:
>> Hi,
>>
>> I do have solution (for me) but I thought it would be useful to report this.
>>
>> I just upgraded to m9 (from m5) and I'm getting a new exception - No
>> namespace declaration found for prefix: xxforms
>>
>> I've had loads of this kind of exception going from 3.9 to 4.0 mostly due to
>> namespaces in attributes in included docs and I've usually been able to sort
>> it out by careful checking of the xincluded files but not here.
>>
>> Putting a break point on OXFException I find
>> Dom4jUtils.extractTextValueQName line 566 gives me a value for qNameString
>> of xxforms:separator
>> searching back through the stack gives me the name of the file where the
>> error is occurring (it would be really nice if this was in the exception
>> message but that is probably tricky)
>>
>> I've searched my code and I don't have xxforms:separator anywhere...
>>
>> So I put the namespace declaration for xxforms in the included file anyway
>> and it's got rid of the problem (although then I got a different XPath
>> syntax error - Prefix has not been declared but that is resolvable by
>> further checking of the use of namespaces in included files)
>>
>> For me the area of namespaces in xincluded files, primarily in attributes,
>> has been by far the biggest headache in going from 3.9 to 4.0 so far.
>>
>> This was all working with m5
>>
>> On to the next problem.... (IllegalArgumentException in RepeatControl)
>>
>> Thanks for the other changes.
>>
>> Regards,
>> Ian
>>
>> 2012-08-08 09:17:19,942 ERROR org.orbeon.oxf.webapp.ProcessorService  -
>> +----------------------------------------------------------------------------------------------------------------------+
>> |An Error has Occurred |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |No namespace declaration found for prefix: xxforms |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |Application Call Stack |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |oxf:/ops/pfc/xforms-epilogue.xpl                         |  77| 60|reading
>> processor output                          |
>> |oxf:/ops/pfc/xforms-epilogue.xpl                         |  88| 60|reading
>> processor output                          |
>> |oxf:/ops/pfc/xforms-epilogue.xpl                         |  95| 59|reading
>> processor output                          |
>> |oxf:/config/epilogue.xpl                                 |  41| 58|reading
>> processor output                          |
>> |oxf:/config/epilogue-servlet.xpl                         |  31| 48|reading
>> processor output                          |
>> |oxf:/config/epilogue.xpl                                 |  60|
>> 46|executing processor                               |
>> |oxf:/apps/study/page-flow.xml                            |  30|
>> 45|executing processor                               |
>> |oxf:/page-flow.xml                                       |  34| 90|reading
>> page model data output                    |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |Exception: org.orbeon.oxf.common.OXFException |
>> |----------------------------------------------------------------------------------------------------------------------|
>> |org.orbeon.oxf.xml.dom4j.Dom4jUtils |extractTextValueQName
>> |Dom4jUtils.java               | 566|
>> |org.orbeon.oxf.xforms.analysis.ElementAnalysis$$ano|apply
>> |ElementAnalysis.scala         | 280|
>>
>>
>>
>>
>> --
>> 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