I'm building an CRM and I have included email within it. When I send out an email from my CRM to a gmail account and then reply to it from the gmail account it automatically threads the conversation (within Gmail), however if I then reply to the reply from my CRM it starts a new thread within Gmail.
I read https://webapps.stackexchange.com/questions/965/how-does-gmail-decide-to-thread-email-messages which states the it is based on the email subject but this doesn't seem to be working a per my issue.
Bearing in mind, when I say I am 'replying' I simply mean I am sending another email with the same subject (to and from the same emails obviously).
The weird thing is, if I send out another email from my CRM with the same subject to the same email it does thread that, just not the reply.
Anyone know why this is happening and how I can fix it?
UPDATE:
Probably worth mentioning, I am parsing the replies, so the previous email bodies are not included.
Threading based on subject isn't standard. You should set in-reply-to header to message-id of first email.
Related
I am trying to write python code to reply to an email. I have manually checked in Gmail and understood that Gmail replies to an email using the same subject and uses the message uid. I am using Gmail, so I have referred to this link (Setting different reply-to message in Python email/smtplib) and implemented the same code. I am able to send the email but it does not send as an email reply. How do we implement if a#gmail.com wants to reply to an email sent from b#gmail.com? Could someone please share a snippet of code explaining the same?
How can I make a script to automatically get suppressions(Bounce, Spam, Invalid and Block) from SendGrid and send them by email to anyone that I want to? I was considering using SendGrid api but I am not sure if it possible.
You can retrieve a list of bounces, blocks, spam reports and invalid emails via the respective APIs.
You can also use the Event Webhook to receive events about your emails including if an email was dropped, bounced, blocked or reported as spam.
I have an email form on my webpage where the goal is for users to be able to send my account an email. They give me their email but is there a way to send a message from their email to my email without their password. All i'm seeing online is code to send out emails through flask not recieve. What work arounds do you guys suggest where I can have users send me an email through my website.
I am pretty sure that this is not possible.
Otherwise you would have "access" on their account and could write mails to everyone you want.
A solution would be to save the message in the database and if you need it, you can send the message to you, with all the needed information, by your own mail adresse (like AKA commented).
I am setting up a GAE app that triggers certain tasks by an email from the user. I've set up the app using the information on this page: https://developers.google.com/appengine/docs/python/mail/receivingmail. Everything works as expected, however, I would like to send the emails to a #mydomain.com email address, instead of a #myapp.appspotmail.com email address.
Currently I am using an automatic forward on the email address to get around this, however once this scales I expect to reach the daily limit on forwarded messages at some point (10.000 according to https://support.google.com/a/answer/166852?hl=en).
Is there any way that I can integrate my app with the #mydomain.com email address to prevent this from happening? Or would you know another solution for this issue?
Probably, you should check recently implemented GAE integration with SendGrid, I haven't used it myself (use the same solution you've described with email forwarding), but looks like it can help.
As LA_ mentioned, SendGrid offers a webhook for this. I ended up using MailGun, which has a similar functionality and calls a HTTP POST to my app whenever an email comes in on my #mydomain.com address.
We send email using appengine's python send_mail api.
Is there any way to tell why an email that is sent to only one recipient would be marked as SPAM. This seems to only happen when appengine's python send_mail api sends to Gmail.
In our case we are sending email as one of the administrators of our appengine application.
And the email is a confirmation letter for an order that the user just purchased, so it is definitely NOT SPAM.
Can anyone help with this?
It seems odd because it is only GMail users that seem to be reporting this issue and we are sending from appengine (All Google servers) I love Google but sometimes Google is stricter to itself than to others :)
I've added the spf TXT record to DNS such as "v=spf1 include:_spf.google.com ~all"
(I'm hoping that will help)
I've tried to add a List-Unsubscribe header to the email but it seems app engine python send mail does not support this header.
Thanks,
Ralph
My guess would be that the content of the mail looks "spammy" for Google, but you can do some things that might help you.
I would suggest you, since this is a confirmation mail, add another admin for your app an email like: do-not-reply#domain.com and use that one for the confirmation emails. Add more text to the body and include the unsubscribe links as well, so your users will have the possibility to not receive more email from your app. Maybe you wouldn't like the last part, but you have to give that options to your users, so this email won't be marked as SPAM.