gmail

Did Android Gmail 4.2.1 break html intents? [closed]

非 Y 不嫁゛ 提交于 2019-12-01 04:56:54
问题 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 6 years ago . I've been using Intents to send HTML formatted emails using Gmail on Android from other apps. Today they stopped working. They look good in the Gmail compose display but all of the HTML tags get stripped when Gmail sends the email. I've tried every variation of Intent formatting that I've seen posted and all

Gmail POP3 not getting all messages in Java application

我的梦境 提交于 2019-12-01 04:36:41
问题 I have enabled POP3 settings for my gmail. I am able to connect to the POP3 store using my password in a Java app. I have around 10k messages in my inbox. When I call getMessages on the Inbox folder it returns only 280 old messages. When I call getMessages in a loop, every call returns me same messages. I also tried getMessages(start, end) but it does not return other messages than those 280. How do I retrieve the other messages? 回答1: By default, GMail's POP3 and IMAP server does not behave

Javamail and Gmail Pop3 SSL

*爱你&永不变心* 提交于 2019-12-01 04:21:21
问题 i'm trying to connect my app to Gmail to check emails. I must use SSL for POP3. This is my code: Properties props = new Properties(); props.put("mail.host", "pop.gmail.com"); props.put("mail.store.protocol", "pop3s"); props.put("mail.pop3s.auth", "true"); props.put("mail.pop3s.port", "993"); Session session = Session.getDefaultInstance(props, null); Store store=session.getStore(); store.connect("myuser@gmail.com","mypass"); And I get this error: Exception in thread "main" javax.mail

Error in sending email through Gmail by using mailR

梦想与她 提交于 2019-12-01 04:10:16
I am trying to send an email from RStudio using mailR package and gmail. The following is my code... library(mailR) sender <- "xxxxx@gmail.com" recipients <- c("xxxxx@gmail.com") send.mail(from = sender, to = recipients, subject = "Test mail from Rstudio", body = "Test email body", smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "xxxxx@gmail.com", passwd = "******", ssl = TRUE), authenticate = TRUE, send = TRUE) I get the following error message... org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465 at org.apache

Send HTML email with plain text fallback via Gmail API

一曲冷凌霜 提交于 2019-12-01 03:38:05
问题 An answered question at StackOverflow suggests that adding html-markup to the body of the email will do the trick. Is that solution correct? But what if the recipient's email server/client does not support HTML email? E.g. when using Apache commons email, I do the following: // set the html message email.setHtmlMsg("<html>Our logo - <img src=\"cid:"+cid+"\"></html>"); // set the alternative message email.setTextMsg("Your email client does not support HTML messages"); Is there any way to tell

Getting Permission error java.lang.SecurityException: Permission Denial on 3.x Android devices while getting email attachment name

拜拜、爱过 提交于 2019-12-01 03:19:07
I am facing issue in opening Email in MYApp when I made its launch mode to "singleInstance". I have attached sample Android project which reads file name from email attachment and displays it on screen. Works fine in case of onCreate but throws error in onNewIntent when apps launch mode is singleInstance. Launchmode.java package your.namespace.launchmode; public class LaunchModeActivity extends Activity { private static final int OPEN_ACT = 2; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Sending HTML message through PEAR while using SMTP authentication returns an error

人盡茶涼 提交于 2019-12-01 03:09:10
问题 I'm trying to send an HTML message while using SMTP authentication to Gmail in PHP. Here is the script that I am using: require_once "Mail.php"; require_once 'Mail/mime.php'; $from = "Some Name <myemail@gmail.com>"; $to = "Other Name <otheremail@gmail.com>"; $subject = "This is a test"; $crlf = "\n"; $host = "ssl://smtp.gmail.com"; $port = "465"; $username = "myemail@gmail.com"; $password = "mypass"; $headers = array ('From' => $from, 'Return-Path' => $from, 'Subject' => $subject); $smtp =

Connecting to Gmail IMAP PHP “Couldn't open stream”

柔情痞子 提交于 2019-12-01 03:02:16
There are lots of people having similar issues but no one is answering their questions. I have IMAP enabled in PHP, Using all the correct information. I don't see where I'm going wrong. Here's my code: $hostname = '{imap.gmail.com:995/imap/ssl/novalidate-cert}'; $username = 'emailaddress@gmail.com'; $password = 'password'; $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error()); print_r(imap_errors()); Not returning any errors other than: Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:995/imap/ssl/novalidate

Google Contacts read only (OAuth 2.0)

浪尽此生 提交于 2019-12-01 02:49:38
问题 We're using OAuth 2.0 to access Gmail Contacts. Do you know if it is possible to request access (scope) in such a way that the authorization pop-up indicates that we need read only access. Right now the pop say says "Manage your contacts" - view and manage your Google Contacts. This "manage" part is discouraging to many users while all we need is to view them. So far we tried the following scopes but the pop-up is the same ("Manage contacts"): - https://www.google.com/m8/feeds/ - https://www

laravel Your connection is not private error in chrome

徘徊边缘 提交于 2019-12-01 02:24:24
问题 I am using laravel 5.4 and I updated the .env file to be as follows: MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=my gmail MAIL_PASSWORD=my password MAIL_ENCRYPTION=tls when I tried to test that I got the following message Attackers might be trying to steal your information from test.dev (for example, passwords, messages, or credit cards). Learn more NET::ERR_CERT_AUTHORITY_INVALID so I tried to return everything to the default but I still got the same message ..