gmail

Gmail API returning status code 400, error “Mail service not enabled”

烂漫一生 提交于 2019-12-10 14:55:30
问题 I recently started seeing the following error from the gmail API: { "code" : 400, "errors" : [ { "domain" : "global", "message" : "Mail service not enabled", "reason" : "failedPrecondition" } ], "message" : "Mail service not enabled" } Every gmail api call I've tested causes the error, but the following code shows a normal example: public static List<String> getThreadIdsFromRFC822MessageIds(Collection<String> messageIds, User u) throws IOException, NoOauthCredentialsException { List<String>

Login in Android app with Gmail credentials

半城伤御伤魂 提交于 2019-12-10 14:22:32
问题 After getting the auth Token how to use it to login with google credentials AccountManager am=AccountManager.get(this); Account[] accounts= am.getAccountsByType("com.google"); account=accounts[0]; amf = am.getAuthToken(account,"com.google", true, new AccountManagerCallback<Bundle>() { public void run(AccountManagerFuture<Bundle> arg0) { try { Bundle result; Intent i; String token; result = arg0.getResult(); if (result.containsKey(AccountManager.KEY_INTENT)) { i = (Intent)result.get

Extra space added to HTML e-mail when sent from Outlook to Gmail

蹲街弑〆低调 提交于 2019-12-10 14:17:07
问题 If I open the following HTML e-mail in Gmail or Outlook it renders as it should: <img src="img.png" /> However, if I open it in Outlook and then forward it to Gmail, it adds extra garbage HTML that makes the area taller than it should be (the 'p' tag is responsible for the added height - 3px specifically): <p class="MsoNormal"> <span style="font-size:10.0pt"> <img src="img.png"> <u></u> <u></u> </span> </p> There are lots of solutions for fixing spacing issues in Gmail, like adding display

Is there a URL handler for Gmail for iOS to compose a message?

给你一囗甜甜゛ 提交于 2019-12-10 14:16:05
问题 My iOS application includes sending emails as part of its functionality. MFMailComposeViewController allows in-app composition of an email, with the OS using Mail.app in the background to send the message. However, I want to allow users to send an email with the Gmail app for iOS if they so choose. Since remote view controllers aren't public API, the only way this would be possible is with a URL handler, but I couldn't find one documented online anywhere. Does anyone know of one? If there is

SMTP Error: 454 4.7.0 Too many login attempts, please try again later

六月ゝ 毕业季﹏ 提交于 2019-12-10 13:23:11
问题 I have set up SMTP server with gmail account. It was working fine till few days back. When I checked the logs I found below entry in it: SMTP Error: 454 4.7.0 Too many login attempts, please try again later. I have restarted SMTP service twice. I have checked the configuration that was set up using this link. Everything is same as we have set up. I have restarted the SMTP server & the machine too. I have checked for 2 step verification settings. It is not enabled. I have checked for "less

HTML Email in Gmail - embedding images

雨燕双飞 提交于 2019-12-10 13:12:28
问题 HTML mail with an embedded image in gmail - with the following email body - just spits out the exact text. It does not show what's inside the "body" tags. This is the content of the mail: Content-Type: multipart/related; boundary="bananarepublic12345" This is a multipart message in MIME format. --banana12345republic Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head

Gmail says “Images are not displayed”, but not “Always display images from” [closed]

自作多情 提交于 2019-12-10 12:46:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . My application is sending transactional email through Mandrill. If we include linked images, Gmail doesn't show them by default. That's normal. What's weird is that, in my test email to myself, it doesn't give me an option to "Always display images from" the address that sent the email. Gmail's help document

How can I use my GMAIL account to send out emails using PHP?

怎甘沉沦 提交于 2019-12-10 12:26:27
问题 After searching for days on how to do this I came across this question: Send email using the GMail SMTP server from a PHP page Seems like exactly what I have been trying to achieve but I have had no success, maybe it's because I don't know how to do the HTML to work with this code? for testing purposes I tried the code on the top voted question on the link I pasted and made a button that when you click it, it would go to the PHP file (No success). 回答1: You can't do it with PHP only, because

When connect to gmail using nodejs imap in MacOS, some error comes up

依然范特西╮ 提交于 2019-12-10 12:04:58
问题 I have a node.js program to watch specific email from my supplier. It works well on a windows 7 system, but it does not work in MacOS. When run shell script in MacOS terminal, some error comes up. This is the shell command I run: #!/bin/bash node uploadCSV.js (This command is in run.command file) This is the whole error I had seen: events.js:72 throw er; // Unhandled 'error' event ^ Error: Invalid credentials v46mb316321295eeg ............. And first part to connect to my gmail in js file

Send link with custom scheme through Gmail

﹥>﹥吖頭↗ 提交于 2019-12-10 11:36:48
问题 I'm trying to send a deep link that opens my Android app: String body = "<a href=\'myscheme://myurl?Id=37\'>Link to simulation</a>"; Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("text/html"); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "share"); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(body)); startActivity(Intent.createChooser(emailIntent, "Email:")); But when I got the email with the code above and with