Checking timezone of email recipients? - delphi

Is it possible to check the timezone of email recipients? An API or code of some sort? I'm building a mass smtp mailer using Delphi and I want to be able to send only during the office hour timezone of the email recipient. For development test, I'll be using Gmail SMTP.
Note: I don't have geographic information of the email recipient - I only got the email address to work with.
EDIT 1:
By the way, I'm sending to corporate users so they'll probably be using Exchange, Lotus, etc in their own company domain names.
The emails are for official matters such as invoices and orders for offline customers and suppliers.

No there isn't. If you think about it, it makes sense. An e-mail recipient could be potentially anywhere in the world at any time. The only way you could conceivably do it, would be to maintain a list of contacts in a database and store their location. You could then work it out from there.

Related

URL in Gmail Alias

At our company, we are working with several aliases. The current situation is that one team of 10 has two aliases. In SalesForce, they would like to put the link to specific emails so that anybody out of the team can open an e-mail related to a claim for instance.
In the e-mail's link, there's the "/u/0" part that identifies the mail gmail account (firstname.lastname#...), but it seems that the aliases have a different number for everybody.
So to be clear when they open the same mail in the shared alias, the e-mail ID stays the same in the URL (logic) but the digit after the "/u/" changes for everybody.
Is there a way to generate a URL that will open the e-mail independently of the person that clicks on the URL ?
Edit:
I'll try to be clearer. Our Customer Service Center employees all have two e-mail adresses: an individual one, and a delegated one. Customers will send e-mails to the delegated one (accessible by all employees). So what we would like to do is copy the link of the e-mail into SalesForce so that any employee (who has access to the delegated gmail) can check the e-mail. But, as explained above, as the individual gmail adress is always identified by a "0" after the "/u/" chain in the URL:
https://mail.google.com/mail/u/0/#inbox/156b821f776b6d4a
the delegated gmail adress is identified by a number that differs depending on the person. So employee A will have "/u/144/" as link to the delegated gmail, another employee will have "u/345/ as link to the delegated gmail. This makes it impossible to access the e-mail by clicking the link...
Hope this little case-study makes the issue clearer.
Thanks in advance
Julien
I'm trying to do this too.
I think the only way (outside of paying for the Google business email system) is to have a database of user IDs that link to each user's gmail delegate URL.
I have a system that allows about 6 or 7 users to login, however they all share the login details (it's a small website, with no important information stored). I will have to force them all to have separate login details, and then have a lookup for their gmail delegate URL.
If you have a lot of staff, then you'd have to get their buy-in. Maybe send a global email around that links to a simple web form, that takes them through how to enter their delegate URL. Then store this in a database, with their own personal email (the other gmail account). You should make the form validation strict, so no garbage gets entered. For users who get stuck (fail validation for entering a valid gmail delegate URL), ask them to email support. 95% of staff should be able to handle this. The other 5% would just be an exercise in patience, in getting the rest of the data.

Altering the "From" or "Reply to" in google SMTP

I want to provided "Email a friend" functionality to my site. I have a ASP.MVC site and I am using GMail as our provider (google apps for business).
So, a user will press my "Email a friend" button and be asked to enter their "reply to email address" and the persons email the wish to send the email to. I then use our log in credentials to send the email. The problem is the the "reply to" address is changed to the credentials address.
So bob#home.com wants to send an email to tom#home.com. He enters the correct email addresses for both tom and himself. But when tom get the email its reply to is "sendingsite#gmail.com" which are the log in credentials.
I have done some research on this and as far as i understand this is not possible in gmail.... I believe.
My question is two fold.
Is this possible in gmail?
If not, how would i go about getting this functionality?
I know there are third party tools which do this and are free etc but we dont want to use these due to privacy issues.
Is this possible in gmail? AFAIK it is not possible to change the FROM address to anything that is not either the google apps account name for the SMTP settings or an alias of it. I believe you can change the REPLYTO address. In System.Net.Mail.MailMessage, there is a ReplyToList property. Are you setting the replyto there?
If not, how would i go about getting this functionality? Try something besides gmail / google apps for business. I have heard good things about SendGrid.
Also be careful with this. GA4B has a limit on the number of mails that can be sent in a specific time period. If you violate this, G will detect that you are abusing the service and lock the account you are sending mails from. They intend their service to be used by people, not machines, to send mail. All it takes is 1 automated attack on your send-to-friend page to disable your GA4B account, so consider a captcha or some other human-proof widget.

Verifying bounced email id in ruby on rails

I am building an email app in ruby on rails and I had a basic version which just used to send emails using AWS SES but recently I received a mail from AWS team saying that most of the email which I have sent had bounced back and they will discontinue my account if I send emails to the bounced email ids.
Is there any way to verify before sending email to any address that whether that email exists or not and valid or not.
Any gem or work around will help me a lot
The general way to do this is purely from a system design point of view. If you are going to collect an email address from one of your users and send them email periodically, or as events happen etc, then you should first ask them to "verify their email address". This typically involves generating a unique token, putting that into your database, linked with the user, then sending an email containing a URL with that unique token in it. The user clicks the link, which goes to a controller in your Rails application that matches the token against the user. If they can't follow that link, they can't read your emails, so don't send further email to that address.
If you obtained the email addresses through "other means", you're down to setting a Return-Path address on the outgoing email (bounces will be sent here), then checking that mailbox for bounces. I'm also often suspicious of how people happen upon a list of email addresses that didn't come from users consenting to an agreement with your website.
You could use the Mail gem to do this, but you need to know how to set up an SMTP server that pipes the email into your Rails application, which is not straightforward without prior experience. You can also use a variable Return-Path address (VERP), such as <some unique hash>+bounces#your-domain.com, where <some unique hash> references the email address in your system. This takes away the pain of trying to parse and interpret the bounce email, since the address it is sent to tells you who the bounced recipient is.

Rails/Heroku: how to let our users email photos to their account on our app?

I need to give users a way to send photos (or videos) to their own account on our rails 3 app, which runs on Heroku.
Since we're on Heroku (no local storage), the photo (or video) needs to get saved to our S3 account. And of course we need to be able to support a unique private address for each user so we know which account the incoming photo is for.
Any suggestions would be appreciated! I was looking at the CloudMailIn addon for Heroku, but they just give a single email address so not sure how to gove each of our users their own unique inbox address.
Use cloudmailin - it's perfect for exactly what you want.
You already know your users email address so if they send an email to uploads#yourcompany.com then the 'from' address identifies the user so you'll know who sent it, no need to give them a special email address each - plus you can reject it if the email is from someone you don't recognise.
Cloudmailin handles all of the email side of things and the smtp stuff and then simply does a 'post' into your application passing (to an email you specify) in the message etc you can on some of the plans even have cloudmailin put the attachments straight onto S3 for you
Just an idea
use google apps (when you manage your own domain name, btw might be a good idea to use separate domain name for upload by email) or your own provider, as long at you have big mailboxes + catch all address support.
catch all account i.e. uploads#uploads-company.com, that will receive mail from all users
use user-email-token#uploads-company.com where user-email-token is a unique and hard to guess (user gets it by visiting his/her account page) thing that connects this email to the user in your system
Implementation basics
user sends email to a special email address
custom worker that knows how to read emails (periodically, imap/pop), extract attachments, and upload them to Amazon S3 + knows which email token belongs to which user
use delayed_job to take care of the process (http://devcenter.heroku.com/articles/delayed-job)
might use /app/tmp folder on heroku as a temporary storage before uploading to S3 (size is limited, might not work well for big videos)

How to make sure that the multiple pop3 clients download the same emails from the same email address

We are building an application where user can send email to single email address, we want multiple servers to download the email using pop3. currently the multiple servers are downloading the same email multiple times.
How we can make sure that the same email can be downloaded only once? The email contains attachments.
You should either track message IDs or date/time - message IDs is more robust, that'd be the solution I'd look into first.

Resources