I read a lot of documentation on Gmail API, but couldn't find anything about this, so I'm wondering if someone knows some way to do this?
I need to check the date of the last time I've sent an email to a certain email address.
I found out there is this resource:
https://developers.google.com/gmail/api/v1/reference/users/messages/list#request
and using filter like "to:certainusersemail#example.com" for q parameter would bring all sent emails which I can sort by time.
Related
I am running into an issue where I need to programmatically send the same email campaign to multiple people on a list that are the same via people(same email addresses) multiple times. Constant Contact is not letting me do this.
Example:
I want to use the same birthday campaign year after year and send it out once a year to everyone on my list. However according to the Constant Contact documentation I can only send the email campaign once too new email addresses.
Is there something in the API documentation that will let me do this?
So far all I have encountered is that I need to delete the email campaign, and recreate it using this API command: http://developer.constantcontact.com/docs/email-campaigns/email-campaigns-collection.html?method=POST
Thank you in advance.
Via the Constant Contact api's there is no way to send the same email campaign to the same contact multiple times.
However for the example that you have given there is an automation platform within Constant Contact that will automatically send out a birthday email, but at this time there is no way to programmatically set that up.
If you need to do it programmatically I would create a new campaign for each year, especially since deleting and recreating just creates a new campaign anyway.
I got a Netsuite CRM system from a client where already there are 100+ workflows and scripts implemented and running.
One of the consumer of client is getting system generated emails from netsuite on Daily basis which they want to stop. Say the mail id is abc#xyz.com
Client asked me the same, now my question is how to find which workflow or script is generating the mails or is there any simpler way to block the mails sent to that id?
Thanks in advance.
Regards
Rahul
Thanks for the reply.
The best option I found was sending that mail id to Netsuite support and asking them which workflow/script is really sending the mails to which they replied.
Once that was done then I found it to be a workflow which had a saved search that was giving the data.
I went to the record from the saved search and I was able to stop the mails.
Any ways thanks for your time.
Glad
In your case, you have to do some dig through with your email and its content.
Check the content of the email and check for the email reason. Ex. Order Completed, Payment Pending
From this you can identify from which record mail is being sent.
Check the Messages sub tab under General tab of the Customer record for the author of the email.
Download all Scheduled Scripts with deploy status as Released and open all the script files and use Find all method with the authoremailid and authorinternalid
Thanks
Frederick
Best way I found:
Get the mail id.
Search it in global search
It will give corresponding record.
Open the record and in bottom go to system information.
Check the Active workfow and check that work flows you will find your answer.
Thanks
Gladiator
At some messages in Gmail, the MESSAGE-ID header is missing and I need to use it as IN-REPLY-TO header when replying so I can keep the replies at the same conversation.
When those emails with missing MESSAGE-ID header are replied from the Gmail's WEB UI, the replies stay with the conversation and the reply in fact acquires a IN-REPLY-TO header something looks like <-4185615914882731559#unknownmsgid> I could not discover how is this generated.
I've been trying to find a solution to this problem quite a while, ended up trying a few desktop email clients, Airmail and Sparrow to see how they behave. If I ever reply a particular email which is missing the MESSAGE-ID header using those email clients, the sent reply also acquires the same IN-REPLY-TO header <-4185615914882731559#unknownmsgid> and the reply indeed stays at the same conversation as expected.
So, I would like to ask how they achieve this, do they somehow generate the IN-REPLY-TO header <-4185615914882731559#unknownmsgid>? Is there a rule or a workaround?
This is a classic problem, every mail reader has it. The classic solution is:
copy the References field from the message you reply to, if any.
make up an In-Reply-To field, perhaps with a made-up message-id, perhaps with the sender's address and the message's date.
Keep the subject, and append "re: ".
You may also copy the Thread-Index field, if there is one.
Gmail's and most other threading algorithms will then connect the dots.
Thread-Index is a Microsoft thing, noone else uses it, as far as I know. The format of the hex blob is not specified, but copying that will help probably help Exchange, if the original message comes from Exchange.
If you just want to send an email and make sure it threads with another email in that user's inbox (and not any other gmail users that may receive the reply) then I believe you can use the Gmail API's messages.send() method and set the message.threadId to match the thread you want it to thread with.
I don't think that e-mails delivered to your gmail account have no message id. My evidence is that I just tried sending one to myself via telnet without a message id, and gmail's mx server added this
Message-Id: <54412844.63bbb40a.0772.ffffcbdcSMTPIN_ADDED_MISSING#mx.google.com>
It may be that copying a message into gmail's imap store can result in a missing message id. Eg see https://productforums.google.com/forum/#!topic/gmail/w5kgRivwbIg (though that is very old, it shows that synchronising mail to a gmail IMAP account can have this result).
The basic rule of e-mail is that if an e-mail doesn't have a message id for whatever reason, one is created for it, which is what has happened here. Hence, when you reply, the made-up message id is used in the in-reply-to header.
So i have an website, abc.com. If someone sends an email at support#abc.com i want to receive it at gmail address or whatever address i chose. Then if i reply to that email it in gmail then it should send either using gmail or mandrill. And from of the email should show up as support#abc.com.
This is my first time tackling email. And i have no clue.
So far i understand i need something to take emails in, send emails out, and then there is smtp server.
I get that nodemailer fulfils the role needed by two of the first things..But rest is confusing.
I know this sounds vague but as front end jquery dev i never thought of this much. So be patient and understand like with http protocol i have not much of understanding on this. This question could be many questions however i don't know what those question need to be.
I have a site on a dedicated server with it's own IP range that has been running for a good few years. We have a notification email address (mailout#domain.com) which we use to send automated emails (activation emails when a user signs up and notification emails if something relevant to them happens, eg someone befriends them or comments on their picture etc). Users can select whether to receive these notifications or not. We have SPF and RDNS setup.
Email from all our other email accounts go to hotmail/gmail/yahoo mail etc correctly into the inbox. However any mail sent from the mailout#domain.com account (whether automatically by the server or manually via outlook) is delivered correctly to the inboxes for yahoo and gmail however goes into Junk in Hotmail (but other #domain.com addresses deliver to hotmail's inbox correctly). It says at the top of the message that MS Smartscreen marked this message as junk. I signed up for MS Smart Network Data Services to monitor the IP and it says it's not blocked but it displays Bot-like behaviour (which kind of makes sense as our notifications are kind of bot like even though they're not spam).
I can't work out what to do to prevent this from happening, we've authenticated the email, there's obviously not a general block on the IP as emails from different accounts on the same domain are going through successfully. It doesn't seem to be the format of the email either because if I send identical emails from mailout#domain.com and contact#domain then the one from contact# gets through to the inbox but the one from mailout# goes through to junk.
I can't really work out what to do and obviously trying to get MS to sort it out is never going to happen and i've used all their available tools. I can obviously try setting up a new email address (eg noreply#domain.com) and using that for notifications but i assume it will only be a matter of time before that gets blocked as well.
I would be immensely grateful for any suggestions anyone has!
Thanks so much,
Dave
You don't have many options. Try to do as many of the following as you can:
Reach out to MS support (don't discard this notion)
Implement DKIM and possibly DMARC (which are vastly more informative than SPF)
Change your IP address to something cleaner
Find and follow bulk sender best practices, e.g. M³AAWG's BCPs, perhaps the Help – I'm on a Blocklist doc