How can I access deleted email from Gmail api? - google-api

I need to access deleted email in my domain. But I listed users messages from Gmail API, it returns just undeleted emails. 
Is there anyway to accessing deleted email body, header ,etc. ?

If you've deleted a message permanently, by clicking Delete Forever in your Spam or Trash, you won’t be able to recover the message using the Gmail interface or using Gmail API. An option would be, to file a report to Gmail team.

Related

Microsoft Graph API does not return all received mail for family and personal accounts

Using the following endpoint returns all mail (both sent and received) for a work account:
GET /me/messages
However it doesn't return all received mail for personal/family accounts. Both the v1.0 and beta versions display this behaviour.
Is there a way of retrieving all received mail for personal/family accounts?
returns some or returns error? did you give the api access permissions to those accounts?
make sure to check this official document.
The documentation says you can get up to only 1000 emails at once. And from permissions section, it seems only possible to get all emails from within an application given the permission Mail.ReadBasic.All even for work account.
I don't have a work account thus I tested sending an email to myself on my personal account and tested the query on graph-explorer test page here. The first 2 results are those freshly received and freshly sent ones. with this I will say a work and personal/family accounts are no different on getting emails since you said you can get both received and sent mails from a work account.
so in short, you can get up to 1000 emails unless you use an application with permission to read all but with limited properties because Mail.ReadBasic
allows the app to read email in the signed-in user's mailbox except body, previewBody, attachments and any extended properties, and hence I deduce Mail.ReadBasic.All does the same

How to get emails directly without storing in webmail inbox?

I am facing problem regarding Outlook app. I have successfully connected webmail with outlook app, but when I delete email from Webmail then it also delete from Outlook. I don't want to delete from my ourlook app. It should keep it for my record.
One of my friend told me that he is getting mail directly from the sender to outlook app without storing a single mail on webmail server.
How can I customize settings to get my issue resolved?
If mail connection is IMAP, a delete will remove the mail everywhere.
If mail connection is POP3, it will not.

Lravel 5.6 : emails sent using mail facade go to junk for only hotmail and outlook addresses

i'm setting up automatic emails for events like user registration and change password etc. the problem is that the emails go to junk for Hotmail,outlook whereas work fine for gmail.
I have tested my email for junk content and https://www.mail-tester.com/ gave me a score of 8.5/10 and i don't want to ask my recipients to manually add me to safe senders list
You need to verify your server and sender for it appear in inbox. Have a look at SPF and DKIM.
https://www.sparkpost.com/blog/understanding-spf-and-dkim/
You can also use other email services such as mailchimp, amazon ses etc

How to download many email attachments from gmail

I have a device that sends daily statistics as an attachment to an email address at gmail. A filter identifies the sender and sequesters the mails into a folder in the mailbox. Currently ~2000 emails have accumulated. I need to download these attachments so the data can be aggregated and analyzed. I supposed I could write a macro to move the mouse, click the right places on the screen, etc. but was wondering if there is a programmatic way to simply download all the attachments from all the emails in a folder.
You can use Gmail API to retrieve attachments:
https://developers.google.com/gmail/api/v1/reference/users/messages/attachments/get#examples

After merging a Mandrill account into Mailchimp, how can I accept a verification email if my sending domain is not setup to receive emails?

We've been using Mandrill for years to deploy our app's signup confirmation and password reset emails. This has worked perfectly as we've had SPF and DKIM records added to the DNS configuration according to Mandrill's documentation for verifying sending domains.
However, after merging the Mandrill account with a new Mailchimp account--which is mandated by April 27th--it's requiring me to send a verification email to an address at that domain. The problem is that we don't have a mail server set up to receive emails. The domain is only used to send the "noreply#domain.com" emails.
Any ideas on how I might resolve this? Mailchimp is not giving an option to undo the merge, so effectively I have an app that users are not able to sign up for at the moment, which is problematic to say the least.
You'll want to configure at least one mailbox on that domain somehow to receive mail. That's the only way to confirm ownership of the domain.

Resources