LiveCycle need to program submit by email button so attachment in xml/pdf is unique - livecycle

for example, if i send this form to john smith and he enters his name in a field in the form and clicks 'submit by email", the attachment should be john.pdf or john.xml.
I get some weird documents like _ac324cxdsf and etc...
How do i fix this? Please let me know. thanx

here is the LiveCycle Designer submit email button description
The file that your users have downloaded is most likely in their temp folder. Acrobat/Reader then calls Outlook to create a new message with that file as the attachment. In order to use a different filename, the script in the form would have to change it, which would be a file system operation. Due to security reasons, Acrobat/Reader is not allowed to let PDFs do filesystem operations unless the user authorizes it. Seems like more trouble than it's worth to just rename the PDF attachment. What about having an automated inbox that checks the attachment when it comes in for the name, then renames it on your end?
-John

Related

Azure Logic App to receive email with attached file

I am using MSFT Logic App to automate a process.
Whenever a user uploads a file to Blob storage, I want to get a email notification with the attached file.
The part I have working is that I do get a email that the file is up. The part I don't have is attaching the latest uploaded file in my email to view.
enter image description here
You need to use Get blob content first:

Mail sent with sp_send_dbmail shows embedded images as attachments

I'm using sp_send_dbmail to send a "welcome" email to employees' newly provisioned mailboxes. The content looks good in both Outlook 2016 and in Office365.
There is a difference from the source email I'm replicating, however, in the how the attachments appear. The source email does not show a paperclip icon or attachments in either system. The email sent with sp_send_dbmail shows the paperclip in both and lists attachments in Office365 (but not in Outlook).
I copied the HTML from the source email in Outlook and had to change the src tags to get it to work:
<img ... src="cid:image009.png#01D42E2D.8043A5B0">
This wouldn't show the images until I removed the #01D42E2D.8043A5B0. I haven't been able to find any explanation of what that part of the tag does or how to use it properly.
Is there a way to make the message sent with sp_send_dbmail appear exactly as the original does?
Edit to add:
Further testing finds that TypeApp (an Android mail client) doesn't render the images from sp_send_dbmail, but it does display the source email correctly.
I realize that email clients won't behave consistently, but why can't I make the email I send behave like the other?
A possible workaround is to use SendGrid email. It might work differently with embedded images. Not sure.
In a previous project I hit a lot of various problems with our internal Exchange server, so I just went outside to SendGrid, which worked very well. They have a free tier.

cakephp - How to authorize assets?

In a CakePHP3 application that requires Authentication/Authorization, I have the possibility of images being uploaded. Now I would like to avoid Users being able to see other users images by e.g. guessing image names or such. Also I would like to use the ids of the entities as filenames which would make it also easy to guess.
So how would you implement authorization for assets?
I would prevent the "guessing" of filenames just by generating a random long enough unguessable string of chars as the new filename, like Facebook does with uploading photos:
Because we shouldn't bother at all with the original name of files, we could rename the file that a user uploads. For example User 24976 uploads a file that is called tomato12.png. The upload script will then rename the file to (for example) the following name:
1481540475_24976_iDewM51NYrBYgnIh.png
It consists out of four parts:
[timestamp]_[userId]_[randomString].[suffix]
And then, save the filename into the database. If you would look into the uploads directory, you could be able to see which user has uploaded which file, but an outsider that has no rights to see the directory index would never be able to guess the name of a file. No authentication needed.

Email to automatically add calendar reminder to their calendars

Is there a way to send mass email and automatically add a calendar reminder the users' calendars? I've found you can export an .ics file and link to that where users can import into their program of choice, but what about something that will do it automatically to any calendar? I've used this article to follow, but nothing for automatically adding to the user's calendar nor do we use that email service.
http://www.whatcounts.com/2013/07/feature-friday-add-calendar-events-in-publicaster-edition/
You can not force someone to automatically download the .ics, as you can imagine, auto downloading anything in email would pose a security risk to the reader.
All you can do is host the .ics (or any file really) on the web and hyperlink to it with a 'Save to Calendar' type linkin your email.
I believe there is no way to do this automatically. One of the important reason is JavaScript is not allowed by most of the email client.
I think the best way to show user a event and make it easy to add to their calendar is generate a .ics file and attach to the email as an attachment. Many email client, like Gmail, will find it and display it as a part of the email.
Here is a reference of .ics file format http://en.wikipedia.org/wiki/ICalendar

Auto Saving in JavaMail

I am working on a simple mail application using JavaMail. My web based mail user agent (MUA) application has the functionality to compose, read, forward, delete, etc mails. Now I want to add a simple functionality that autosaves user's email to a Drafts folder while composing. The user can manually save his/her mail or the application can automatically save to the user's Drafts folder. So, is there a means to achieve this with the help of JavaMail? Or any other better way of achieving this?
Append the message to the Drafts folder. You'll have to figure out how to trigger the append from your application.

Resources