gmail

Generating valid oauth token and secret for gmail imap?

[亡魂溺海] 提交于 2019-12-04 04:36:36
问题 I have been searching everywhere for a Java port of xoauth.py. As I really want to use the same authentication process in my java web app. I have tried using the GoogleOAuthHelper to generate the token and secret but when I plugin them in to the google mail java sample, I get errors back saying invalid credentials. If anyone can help I would be very appreciative. I have been stuck on this for sooo long now. 回答1: Have you tried the links on this page https://developers.google.com/google-apps

Is javamail a less secure application?

孤街醉人 提交于 2019-12-04 04:22:55
问题 I was just working on an email program that read emails from Gmail and does further processing. Initially using the code provide in SO(link provided below) I was getting an exception which says that "My access has been blocked and I need to login via web browser". On the same time I saw an email in inbox (to which I am trying to connect) which says that " Google Account: sign-in attempt blocked " and I need to disable modern security from following link "https://www.google.com/settings

preventing gmail from stripping href, target, and id attributes

北城余情 提交于 2019-12-04 04:21:30
问题 I'm sending an email from my NodeJS server using Mailgun to a Gmail account, but Gmail strips all the attributes in the email. What is the reason for this and how do I prevent this from happening? I tried encoding the href value using encodeURIComponent but that did nothing for the href tag. I'm also not using any CSS or anything so I'm confused why this is happening. before: <a href="/resetpw" id="reset-link" id="reset" target="_blank">Reset Password</a> after (when I checked the HTML of the

Using gmail as SMTP server in Java web app is slow

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 04:19:57
I was wondering if anyone might be able to explain to me why it's taking nearly 30 seconds each time my Java web app sends an email using Gmail's SMTP server? See the following timestamps: 13/04/2010-22:24:27:281 DEBUG test.service.impl.SynchronousEmailService - Before sending mail. 13/04/2010-22:24:52:625 DEBUG test.service.impl.SynchronousEmailService - After sending mail. I'm using spring's JavaMailSender class with the following settings: email.host=smtp.gmail.com email.username=myaccount@gmail.com email.password=mypassword email.port=465 mail.smtp.auth.required=true Note that the mail is

Programmatically logout from Gmail via Oauth

扶醉桌前 提交于 2019-12-04 04:17:53
I have a website where I use Oauth to log users into Gmail, and then retrieve their contacts and other info. What do I need to do to ensure that when the user logs-off my website, he automatically logs out from Gmail too? As far as I know, there is no logout in OAuth. You simply stop sending tokens between your application and Gmail. Graeme This may be a shortcoming of the 3-legged OAuth flow. The user must sign into their account to provide consent, but once they provide the consent, the OAuth flow takes them away from Gmail. Since users are in a different mind-set when signing in to provide

How to build a chrome extension to add panel to gmail windows?

一笑奈何 提交于 2019-12-04 03:40:09
I want to build a chrome extension like rapportive.com . I'm new to Chrome extensions and Gmail Content Script. Can any one please suggest how to go about this? Currently I'm reading Google's Gadget docs . Here are some notes to you started. There are more robust ways to build this, but this is the "hello world" of the functionality you are talking about: You will need to define a content script that you add to the context of gmail. This part is pretty easy and can work with any of the content script examples available in the Google's documentation. You should read and learn about what it

SPF issue: what causes softfail?

那年仲夏 提交于 2019-12-04 03:07:26
Whenever I use PHP to send emails to members of my site, the email ends up in the spam folder for most email providers like Gmail and Hotmail. When I check the original source in Gmail, I see the following: Delivered-To: mypersonalmail@gmail.com Received: by 10.236.41.34 with SMTP id g22cs272510yhb; Wed, 1 Jun 2011 05:38:27 -0700 (PDT) Received: by 10.236.77.102 with SMTP id c66mr7228248yhe.303.1306931907131; Wed, 01 Jun 2011 05:38:27 -0700 (PDT) Received-SPF: softfail (google.com: best guess record for domain of transitioning info@mywebserver.com does not designate as permitted sender)

Can send emails through Gmail account only if account has “Access for less secure apps” enabled

删除回忆录丶 提交于 2019-12-04 02:38:19
If my Gmail account has Access for less secure apps disabled , then my application can't send emails through this account . Instead I get " The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required " exception. Here Google explains that by disabling Access for less secure apps , only apps that use modern security standards can sign in . What are those modern security standards my code needs to implement and can you show me how to implement them with an example ( not sure if it matters, but my app and Gmail account

Cannot deliver email to Google Apps address; Gmail receives the same email fine

雨燕双飞 提交于 2019-12-04 01:46:57
问题 I have a Drupal site with the Webform module installed to send out emails to a small group of people with Google apps accounts. It used to work; now, with nothing having been changed, they do not receive the messages at all. They are not in spam; they just never arrive period. However, if I put in my own personal Gmail address as a recipient, I receive it fine... not in spam or anything. I thought maybe the problem was that my domain (hosted at MediaTemple) didn't have an SPF record, so I

JavaMail API, Gmail-Auth and setFrom

荒凉一梦 提交于 2019-12-04 01:24:12
问题 for this app i'm following this example: http://pipoltek.blogspot.com/2008/02/sending-mail-using-gmail-smtp-server.html I can send emails, it looks good.....but i want to modify the sender email using this: MimeMessage msg = new MimeMessage(mailSession); msg.setFrom(new InternetAddress("baba-jaga@gmail.com")); baba-jaga@gmail.com is dummy E-Mail, is not mine :) When t use setFrom , i recive the email from this email, which i use to authenticate. Is the authentication the reason, which disable