thanks in advance
i have application in which i download pdf as a attachment through email account like gmail.com and it will be saved in tableview as one static name like attachment all this is runnable
now i want that during downloading of pdf i have to save with some name which is display in gmail account so how how can i do this i want to save that name which is show with attachment name like compansionFishpdf- print
When you download the PDF file, save it with that name. I usually pass a parameter "filename" from the server to the app when it downloads a file, but I don't know what kind of server language you're using.
Related
I am trying to create a Power Automate flow that automatically syncs to Dropbox a file contained at a URL link in emails.
The email is always from the same email address, let's say: "example#example.com"
The URL link always has the same hyperlinked text: "Link to Signed Affidavit with Original Document Attached"
The URL link itself is dynamic and looks something like this (example): http://www.example.net/asp/showattachment.aspx?BlobID=aso23-gjin42-skgn34-23632
Each such email only contains one such link.
When the link is clicked, it goes to a PDF file in the webrowser. The link is not redirected to a different link.
I'd like this to trigger every time such an email is received. I'd like this to operate in the cloud without any desktop interaction.
Thanks!
I solved this myself.
In the "Compose" section, you need to parse out the URL from the email body using your own code. Below is what I used for my specific usage case. For my specific situation, I knew the URL would always be the same number of characters. If the URL length varies between emails, you'll need a more complex parse.
substring(outputs('Html_to_text')?['body'],add(58,indexof(outputs('Html_to_text')?['body'],'Link to Signed Affidavit')),95)
I was wondering would it be possible to create some sort of ms access form, where you would be able to upload any file and then be able to enter an email in another field, click a button, and send an email with said attachment to the entered email. So far I have the form created with an attachment field and below that I have a button and an empty field where the user can input an email that they would like to send the attachment to. My initial idea was to hard code the button to pull the attachment and send it to the desired email address using the .SendObject() function but i didn't find parameter for an attachment that I could send using the function.
:
In the highlighted box is where users can add any number of attachments and in the box to the right of the send button is a text box that would allow users to put in an email address that they would like to send it to.
If there is a better way of doing this with forms please let me know, I'm always up for learning new things.
You can interface with the outlook objectmodel to create a mailitem, then .send the message and .attach a file, but the file has to be accessible to the filesystem. If the file were embedded in access, you would have to export it out, then attach it. This link and this link should give you a good idea of how this process works.
If you don't have outlook available, then you will either need software that has a VBA compatible API, or you can use a webservice to post the mail, but both of those options are far to massive to talk about here, unless you can provide more specifics.
Edit since your edit:
If you can use Outlook, and you can just store the path to the file() in the attachments field as an array, then you an loop over the array with mailitem.attach to attach multiple files
On my Drupal 7 site, I create PDF's of articles with the Printer, email and PDF versions Module. So a PDF version of each article is available at
/printpdf/nid
The next thing is that Im sending this articles as Newsletters with the Simplenews Module. I want to attach the created PDF as attachment to the mail.
If there is a field for a file in the Contenttype, and for example another pdf is uploaded and I send this node, the pdf is attached to the mail.
But in my case i want to create a pdf of this article and attach the pdf to the mail which is sending with simplenews module.
I have solved the Problem by writing an own module.
This module uses hook_node_submit to create a PDF (with domPDF), save it to the server and then place it into a field of the contenttype when a node is saved or edited.
This way the PDF is sent as attachement in the Mail.
Assume the situation, i have an UIWebView and signed in into my gmail account, i have received an e-mail with an attached pdf file. Now am clicking on the attachment link the webview will open the pdf file there itself.
At this time if am trying to read the html contents it returns NULL.
Please help me by giving an idea. Now how could i read/parse that pdf content already loaded in webview and store the data into NSString.
if you have the URL for the PDF file then directly load the URL in the WebView otherwise you have to use the NSURLRequest to download the file and then load the file from the local directory of the application. I shall be glad to provide you with the code of loading the PDF file from the local directory however I suggest you to google it.
I am using custom url schemes. I can send string messages as parameters to my custom url and emailing this to any person. When any person opens this email attachment in device in it open my app installed in device with the passed parameters in my custom url.
Similarly how to email an image via custom url and when any person opens this attachment the image is passed to my app in device.
I tried to encode the image in base64 format and tried to append to my url,but not working.
Any ideas??
Thanks in advance
While there technically isn't a limit placed on url length by the standards, in practice, there is (see these two questions here on SO).
My guess is that you're running into that limit.