Can we send emails from Rails application using Amazon SES SMTP service where sender's email ID is unverified.?
I know that Amazon SES can send emails to unverified addresses. Is there any way to send emails from unverified arbitrary email address.
I want to know that, is there any way to get rid of it because my application is sending emails using user's email addresses as sender's email address.
I got one solution for this problem. We can add arbitrary email address in From header of email along with the verified email address as follows
"arbitrarymail#example.com <verifiedemail#example.com>"
Because of this the receiver can get some Idea about the sender of the email.
Unfortunately, it's not possible to send emails from any arbitrary email address using Amazon SES without verification.
You can however verify an entire domain, so that emails can be sent on behalf of all senders from the verified domain. If all your senders email addresses originate from a single domain, this solution will work, otherwise you may need to consider using an alternative to SES.
Announcement here: http://aws.amazon.com/about-aws/whats-new/2012/05/15/amazon-simple-email-service-announces-domain-verification/
Related
I want to set a logo for the LCA Systems mail that I am sending from my application to be as the others bellow. Now it is showing just an Interrogation point. Is there any way to replace this interrogation to an image?
If you create a Google+ profile using your sending email address. If that address is noreply#lcasystems.com, simply create a Google+ account using that address.
https://accounts.google.com
Other email clients will use Gravatar. Sign up for an account using the email address you use to send messages.
https://gravatar.com
There is no universal method to get all email clients to use one central avatar for personalization.
Good luck.
Know a user can send a mail using he MFMailComposeViewControllerDelegate as mentioned here, but how to send a conformation mail to the user after the set of specific task has been done.
For some reason it feels like apple doesn't allow in sending background mails, without user conformation, which is fine.
The task is to send a conformation mail like after you buy productA, productB and pay, need to send a receipt to the said mail id.
Any guide in the said path would be greatly appericiated
You can't send an email from the user's email address without using an MFMailComposeViewController, and you can't send an email to the user without the use of a server.
What you should do is prompt the user to enter their email address, send that as part as their purchase, and then use a server-side mail app to send a confirmation email to the user-provided email address.
You can't send it directly from users device without email composer.
Only way to do this will be to prepare your own server that will handle those events and send proper emails from server side.
On our webpage we have a contact form to let people contact us without sharing our email addresses.
We require a name, an email address and a message and allow people to send a copy to themselves.
On our server we have Postfix setup to send outgoing email.
Right now we add information as:
from = their email
to = our email and theirs if they want a copy. (could be cc instead)
It works okay, but just some weeks ago Gmail started to put all our emails in junk, even with explicit rules and stuff.
We figured out our Message-ID have the wrong format and added
def set_message_id(sent_at: Time.zone.now)
headers["Message-ID"] = "<#{Digest::SHA2.hexdigest(sent_at.to_i.to_s)}#domain.com>"
end
Based on an article from Mailgun and StackOverflow.
However we also get an SFP-softfail because we send the email from the users email, and the domain of their email does not have the same origin as our domain.
How do you solve this? We really like the way that you can instantly respond to a contact email and get the right name and email address automatically.
Is it worth investing in a service such as Mailgun just for this contact form?
In my app, there is an email functionality which should send email from an id, which is not configured with mail app. From address will be like noreplyATgmail.com .. some thing like that.
How can I hard code the from address of an email ?
It's impossible to send email from account where user isn't authorised in.
For your aims it's better implement email functionality on server side that could be authorised to send emails from address that you specified.
As per my comment - you can't, you should use reply-to for that, or send a request to a server to send the email. The from gets set from the selected email address you eventually chose to send the email with.
For example:
mailto:email#email.com?subject=Subject&reply-to=noreply#something.com
I don't think there's anyway to do this using MFMailComposeViewController.
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.