Using dropbox as image hosting for emails - email

First of all I'm not sure if this is the correct place to post this question, if its not please tell where should I post it.
My doubt is if I can use Dropbox to host images and then send emails linking that image to preview it , I don't want to send it as an attachment , but as an image in the email , is that possible ? Or do I have to upload it to a hosting?

This question was already replied here and I strongly agree with the accepted response: don't do it in production.
Dropbox imposes limits on bandwidth that you can confirm here and stated below, so I would say it's ok for internal testing only.
Dropbox Basic (free) accounts:
The total amount of traffic that all of your links and file requests
together can generate without getting banned is 20 GB per day. The
total number of downloads that all of your links together can generate
is 100,000 downloads per day.
If you don't have other option or still insist on doing it, just be sure you keep yourself under the limits in order to don't go against their terms of use and avoid being banned.

Related

How does one get around the firebase hosting proof of ownership catch 22?

Firebase hosting requires that a TXT setting be set up to as they call it
Prove the domain is yours
I purchased a domain. It is mine. In order to set this TXT setting I have to have the domain hosted. The place I purchased the domain from sells hosting for minimum one year at a time. What is the point of firebase hosting when I have to buy hosting somewhere in order to prove that the domain is mine? Is there any way to get around this catch 22?
Proving ownership is done by putting a TXT record in the DNS. This doesn't require that you have a website hosted yet, it merely requires access to the DNS settings for your domain.
It's hard to help beyond that without knowing where you registered your domain.
Update. I took Frank's advice and set up a few Namecheap accounts. Wowie! The discount names are as cheap as 50 cents/year if you buy 1 or 5 years. Thanx for the advice. There is a caveat to using Namecheap/firebase, however.
Do not take this as if I were looking a gift horse in the mouth. I am super grateful to Google for free hosting. I merely want to warn users that firebase is not a free country. Google forces the s religion. I put in many hours of work to create my website using my girlfriend's hosting MySQL. Her hosting platform does not have an s in the URL: https. So the Angular 5 HTTP calls barf. I also included a contact page and a share via email popup. I used my girlfriend's hosting and set up a poor man's PHP web service for that. That does not work because girlfriend's hosting uses HTTP not https. So now I have to go back and recode these backend connections to use Google firebase and Google functions/SendGrid. I could have done that from the get-go and saved myself the time and aggravation.

How long an attachment link will be available on Facebook Messenger

When discussing on Facebook Messenger, you can upload files and send them to the person you're discussing with. I'm actually developing a Messenger Bot (see documentation) and therefore, I'm trying to find the limits of this upload tool.
I found that it's not possible to upload files bigger than 25MB (I put here how I found this information).
However, I couldn't find for how long these attachments are available once uploaded? Indeed, Facebook Messenger is uploading the file on server and is sending a link to that resource in the communication. But I couldn't find if this link will be available forever or if access to it will be limited in time (and therefore, I guess the attachment would be deleted after this duration).
In order to get a response to my question, I uploaded a file and checked regularly its availability. Since I couldn't check every minute, I got a +/- 1 day precision but it seems that files stay available between 2 and 3 days.

iphone app - preventing spam

I've developed an app that allows users to upload some photos and share them on Facebook/Dropbox/Twitter etc. Recently it went live in the app store.
However, I'm having a problem now: a bot is creating accounts and uploading many photos on my server. I've temporarily disabled the app, but now I'm looking for an efficient way to prevent this bot from doing this.
The bot's ip address is changing very often so it's impossible to block the ip. He creates accounts with a very realistic name and email address so it's hard to find out which users are real and which are created by the bot.
I was thinking of using a captcha, but I'm not sure if my app will be rejected by Apple if I implement this. I'm preferably looking for a way so I can prevent him from doing his work and so I don't have to resend the app to Apple again.
Could anyone give me some advice on what I could possibly do?
Thanks!
This is how I solved a similar problem:
I implemented a token-generator, which generates a one-time token for every single data transfer with the server, so even one for login-data, sending a file etc. This token is generated by a secret algorithm and can be verified server side, since you know how you generate one.
After one token is used, put it in a temporary list for the next X minutes/hours/days (depending on how many data transfers your server can handle). When a user tries to send data with a used token (i.e. the token matches one in the "banned" list), you can be sure that someone's trying to spam you -> mark the account as "spammer" and decide what you wish to do.
The algorithm must produce a different token each time (the best way would be a one-way hash), but you have to assure specific "properties", with which you can proof its authenticity.
So one very simple example:
Your algorithm in the client is generating a number between 1000000000000000000000 and 99999999999999999999999, this number is then multiplied with 12456564 and incremented by 20349.
The server becomes a specific command and data, and the generated token. Now it checks, whether (number - 20349)%12456564 is 0. If it's 0, it was likely generated by your "secret" algorithm.
It's a very basic example but you get the idea…

screenshot-grabbing email tool

I have a web site with various graphs embedded in it that are generated externally. Occasionally those graphs will fail to generate and I would like to catch that when it happens. These graphs are embedded in multiple pages and I would rather not check each page manually. Is there any kind of tool or perhaps a browser addon that could periodically take screenshots of different URLs and email them in a single email? It would be sufficient to have scaled-down screenshots of full pages emailed maybe once a day to me, allowing me to take a quick glance and see that all the graphs are there and look okay.
I'm a big fan of automation. Rather than have emails generated that you then have to look at, take a look at 'replacing custom missing images in jquery'. This will run a piece of Javascript for each image that fails. Extending that to make a request to a URL that you control, which may also include the broken URL (or just the filename that is broken) would not be too hard. That URL would then generate an email, and store the broken URL so that it doesn't send 5000 emails if there's a flurry of hits to your page.
Another idea building on the above is to effectively change the external 404 from the source site to a local one (eg /backend/missing-images/) - the full-path need not exist - you are just generating a local 404 record in your apache logs. Logwatch will send a list of 404 pages from the apache log to you daily (or more often, if you want) by email.

Mass email tracking bounces,opens,clicks

Most services offered online today that claim to "track" e-mails,But every one using image.
Is there any way to track the mail?
most of the mail servers blocking the images, after clicking the "download image" they show images,this is not exact tracking.(most of the peoples not like to download the images)
I'm searching other ways.
how this is work with out downloading image
img src="www.mysite.com/?promo=offer1">
You could request a read receipt, but again no guarantee of it being sent.
In short - no there is no way to track an email itself once it has left your local MTA.
If this is for a web promotion, the usual thing is to add a promo identifier to any links back to your website (e.g. "www.mysite.com/specialoffer1" or "www.mysite.com/?promo=offer1") so you can see who has visited as a result of receiving the email.