Is there a reputable email sending service that provides a HTTP API that can take an email, but only deliver to a subset of the recipients?
For example, I've got an email like this:
To: Alice, Bob, Carol
Cc: Dan
Subject: Whatever
Now I only want this email to be delivered to Alice and Dan, but I still want Bob and Carol to be on the To line.
Most email services use SMTP protocol for email sending. SMTP does not force recipients in command RCPT TO: to be related to recipients listed in TO:, CC:, BCC: headers.
Name Operating System or Linux distribution you use to get recommendations of email clients with such functionality
OR
use scripting language like perl or python.
Related
I am using PhpMailer to send emails via gmail smtp. And while $mail->setFrom('jack.schmitt#domain.com','Jack Schmitt'); does insert 'Jack Schmitt' as the name of the sender, it is still including my smtp username. So the recipient will see something like this: Jack Schmitt<smtp_user#gmail.com> in the From: line
Is there a way to have it say Jack Schmitt<jack.schmitt#domain.com> in stead?
You can't send using arbitrary from addresses, because that would usually be forgery. You can only send from your account address or predefined (in gmail settings) aliases. This is a gmail feature covered in their docs.
We have a script that sends emails out. We want to personalize the "From" email address for outgoing emails, so that the email is being sent from the email address of the user sending it, even if we don't have their SMTP credentials to send the email from that user.
The script connects to an SMTP server to send the emails, we'd like to understand the best option for sending the emails, while ensuring the emails don't end up in Spam or Junk folders.
The options that we understand so far are:
Option 1:
Send the emails with a common email address that we have SMTP credentials for, but change the name each time. Also set the actual corporate email address as the Reply-to: header.
Example headers:
From: John Doe < my-generic-email#smtp-email.com >
From: Jane Doe < my-generic-email#smtp-email.com >
From: Joe Smith < my-generic-email#smtp-email.com >
We're not sure if there are consequences to changing the display name each time we send the email, like ending up on blacklists or identified as possible phishing.
Option 2:
Setting the From: as the actual email address we want it to appear that it came from.
From: John Doe < john-doe#corporate-email.com >
From: Jane Doe < jane-doe#corporate-email.com >
From: Joe Smith < joe-smith#corporate-email.com >
Our understanding is that this is bad practice and most email servers will drop the email as a phishing attempt.
Are there any other options available for us to have the personalized "From" field while connecting to a common SMTP mail server / account?
Also note that we are connecting to a different domain for the SMTP server than the corporate email addresses are from.
You could find a group name like support or xyz-department in order to get around your problem.
Option 1 should not be a problem and work fine, I don't think that mail service providers keep a record of which clear name is associated with which mail address in the mail headers of the mails that pass their servers. That would seem paranoid to me. I had a mail account once whiches from field changed quite often, because I changed it frequently and because my mail clients on different machines were configured inconsistently and it worked perfectly fine.
I think option 2 is indeed bad practice and you should be honest in the mail header.
You mentioned that the hostname of your smtp server deviates from the hostname in the from field. This is no problem. Email is designed to be able to be forwarded from one mail transfer agent (mail server) to anoter to another to... Just make sure that all servers are configured correctly so that their hostname matches the dns entry pointing towards them and you may want to make sure, the reverse dns is set, too.
Still, you seem to pursue a rather uncommon strategy. Usually, every user should have his*her own smtp login credentials and what you plan seems to be fooling the recipient that he*she received mail from different people who are only one (one script) in the end.
Is it possible to reply to an email that I previously sent the user using AWS SES? I don't see anything within the documentation that would accomplish this.
So I want to:
(1) Send email to email address X
(2) Reply to email thread from (1)
With more complicated mailing schemes, filling the "References" and "In-Reply-To" headers of the proceeding message with the "Message-ID" generated by SES for the first message can nudge email clients to keep both messages in the same thread.
For instance, my use case was Alice referring a client to Bob. First, I wanted to send a message from Alice to Bob with the client's info (not seen by the client); then a message to the client, from Alice, CC'ing Bob, introducing the client and Bob.
I think it will not be possible, as a reply is nothing more than a new message that email clients decide to group by some criteria (eg: title and sender). You can try to send a new email with "RE:" before the original title and test if your most common clientes (corporate email, gmail, outlook, etc.) group as you expect.
Using the same subject counts as a reply within gmail.
We have an app that sends emails on behalf of our clients. All emails are sent via Sendgrid. As part of this we have verified our email sending domains via DKIM and SPF.
When our clients send email, it is constructed as follows:
from: Tom Smith <email-service#ourserver.com>
reply-to: tom.smith#email.com
This works in the vast majority of cases, but there are situations where the "reply-to" is not being respected - recipients are clicking "Reply" in their email clients and the reply is coming back to us.
Is there something that we are missing here. Do we need to explicitly set a FROM or SENDER header? Or something else?
I have multiple domains which I receive e-mail for and have set up my mailserver to deliver it all to a single mailbox for convenience, example below:
comment#myblog.com
contact#mybusiness.com
admin#mywebsite.com
They all come to me at my single mailbox:
ian#me.com
When I reply to these e-mails the reply-to address will be:
ian#me.com
I would like to automatically have postfix change that reply-to address, based on the address that the e-mail was originally sent to, so for example:
Email is sent to me at: comment#myblog.com
I reply from: ian#me.com
I want the reply-to to be: comment#myblog.com
Is there a way to automate this with postfix?
Thanks in advance.
It is doable in postfix anyway. But it requires some programming to parse the mail to determine the recipient email address and add Reply-To header from that value. You need to use an external content filter or a Milter application. But I dont think it is a cleaner way.
I would rather say that setting Reply-To header should be done by the MUA eg. (Thunderbird, Outlook etc ) instead of Postfix MTA. For eg. in Thunderbird, If you receive all your emails for
comment#myblog.com
contact#mybusiness.com
admin#mywebsite.com
at ian#me.com, then you can add identities for all the email addresses above( You can set your Name, Email address, Reply-To address etc). So when you reply to an email sent to comment#myblog.com, then the Reply-To address will be set to comment#myblog.com. For Thunderbird, you have to add identities by clicking Edit -> Account Settings -> Manage Identities. More info here. All MUAs should have this option of managing identities.
Hope that helps.