This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Oct 7, 2011, 11:46 AM
14 Posts
topic has been resolvedResolved

How to send XPage email as Anonymous?

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
 
My application users demand the option of composing an email and send it to a predefined/configured recipient.
 
I have not found any simple action to "send" an XPage.
 
So I save the document and send it by SSJS in the PostSave event.
Nightly I delete the saved documents. That works fine, except:
 
If a user is not logged in (login is not an option here) , he is not allowed to save the document, even if I add a $Anonymous="1" field and enable "Write public documents" for Anonymous in the ACL.
So in that case the document throws an exception on save and the PostSave event never triggers.
 
Is there any working example for sending XPage emails without saving or any other method to enable anonymous users?
 
Thanks
  Bernd
Oct 7, 2011, 12:18 PM
272 Posts
Re: How to send XPage email as Anonymous?
Hi,
 
the field has to be named "$PublicAccess", not "$Anonymous". You have to do a "ComputeWithForm" before saving the document.
 
Hope this helps
Sven
Oct 7, 2011, 1:00 PM
14 Posts
Re: How to send XPage email as Anonymous?
Thank you, Sven!
 
Now it works perfectly :-)
 
Fopr testing I saved that form in the Notes client and got a $Anonymous field (form "available to public access users"), so I was misled...
 
 
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal