gmail

Detecting if a browser's cache is full

混江龙づ霸主 提交于 2019-12-03 14:55:46
We've identified that full browser caches are the cause of a problem on our extranet. It only affects a small number of our users, but we'd like to alert them to the problem and give them some guidance on how to fix the problem for themselves. We'd like to use a similar system to the one which GMail uses. When it detects that your browser's cache is full is not behaving as it should, it shows a warning message telling users that their cache is full and that it may cause problems with GMail, along with a link to a Gmail Help page on clearing your browser's cache . Does anyone know if there any

Remove an attachment of a Gmail email with Google Apps Script

99封情书 提交于 2019-12-03 14:06:58
Using Google Apps Script ( http://script.google.com ), I know from the docs , how to send, forward, move to trash messages, etc. but I don't find how to remove a file attachement of an email , i.e.: keep the text content (either in HTML or just plain text would be fine) keep the original sender, keep the recipient keep the original message date/hour (important!) remove the attachment If it's not possible via the API, is there a way to resend the message to myself, while keeping 1, 2 and 3? Note: the GmailAttachment class looks interesting and allows to list recipients: var threads = GmailApp

Get all email addresses of user using Google API

我怕爱的太早我们不能终老 提交于 2019-12-03 13:58:35
For my own gmail account, I have multiple email addresses associated with it. For example, I have an email address from my university that is associated with my gmail, and I can send emails from my gmail as if they are coming from my university email address. I'm reading up on the Google APIs, and I see that I can get a user's gmail address, but can I also get any other email address that is associated with their gmail account? When a user logs in to my site, I'd like to present them with a list of the gmail-associated email addresses and let them select the one they would like to use. EDIT:

Confirmation email from devise on rails3 using gmail not arriving

泪湿孤枕 提交于 2019-12-03 13:50:12
I've set the following up. ---------------------- config/environments/development.rb ---------------------- 29 ActionMailer::Base.delivery_method = :smtp 30 ActionMailer::Base.perform_deliveries = true 31 ActionMailer::Base.raise_delivery_errors = true 32 33 ActionMailer::Base.smtp_settings = { 34 :enable_starttls_auto => true, #this is the important stuff! 35 :address => 'smtp.gmail.com', 36 :port => 587, 37 :domain => 'foo.com', 38 :authentication => :plain, 39 :user_name => '---@---.---', 40 :password => '---' 41 } However when devise sends the confirmation email webbrick prints out the

Sending Asp.Net email through gmail

跟風遠走 提交于 2019-12-03 13:26:58
问题 I am trying to send an email via GMail from ASP.Net using the code and config below. Unfortunatly it doesn't seem to be working and it also isn't throwing an error message. There is nothing in the server logs or the mail IIS mail folders, I even checked the trash of the from address to see if the mail ended up there. Any help would be really appreciated. C# Section public void SendFeedback() { string emailFrom = this.Email.Text; MailMessage message = new MailMessage(); // here is an important

E-mail attachment through intent using `mailto:` scheme

放肆的年华 提交于 2019-12-03 13:20:32
I'm using this code to attach a file: final Intent emailIntent = new Intent(android.content.Intent.ACTION_SENDTO); String uriText; Uri file = Uri.fromFile(new File(path)); uriText = "mailto:" + "?subject=the subject" + "&body=the body of the message"+ "&attachment="+file; uriText = uriText.replace(" ", "%20"); Uri uri = Uri.parse(uriText); emailIntent.setData(uri); startActivity(Intent.createChooser(emailIntent, "Send mail...")); (Note that path is something like "/sdcard/test.jpg" and that I used ACTION_SENDTO because I just want to see e-mail apps in the chooser.) The intent will provide a

Gmail Add-Ons onTriggerFunction only ran once per email even if opening the email again

纵饮孤独 提交于 2019-12-03 13:17:28
问题 We're building a Gmail Add-On however we wish to show a different card on depending on some business logic when the add-on's onTriggerFunction is called. This works fine for the first time the function runs when an email opens. We have the conditional logic, but Gmail appears to cache the result of the initial call returning the first card. Going to another email and back to original, the onTriggerFunction is not called again, so the conditional logic is not run to change the initial card

:hover pseudoclass selector in email for gmail

我怕爱的太早我们不能终老 提交于 2019-12-03 13:10:10
问题 I am sending some mail from my php script. it has structure like: <style type="text/css"> .elements{ /*its CSS*/ } .elements:hover{ /* Hoverd CSS changes background and color*/ } </style> <center> Actual Mail Body <a class="elements" href="URL">Element</a> <center> and this works fine in all mail clients except gmail . So a quick SO search lead me to: HTML formatted email not showing up at all in Gmail but is in other mail clients and I came to know that gmail doesn't support <style> but

Images not displayed for Gmail

百般思念 提交于 2019-12-03 12:28:03
问题 Recently Google announced that Gmail will load external images using a proxy for safety purpose. This causing an issue for my application while displaying images in gmail. Gmail image element inspection: https://ci5.googleusercontent.com/proxy/N4RZncgANd5glVi64ElKxecSE10SH6iAhu2VKOK3jJtgaRKBUsqwOn6iDwY49unvlD9Xi6cSZp0T4u1N_KHhBY-TxFaV8PvPNSMn4A=s0-d-e1-ft#http://localhost:8080/email/thread/1301/images/correct) no-repeat">올바른 답변 As per above HTML actual image url is prepended with a Google

Connection could not be established with host smtp.gmail.com [Operation timed out #60]

半腔热情 提交于 2019-12-03 12:18:59
I can't sent out any email in my local environment. I keep getting : _ .env file. MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=my-email@gmail.com MAIL_PASSWORD=***** Note : Surprisingly - I have the same setting in my production server, and it works perfectly. Any hints / suggestions ? Update my driver line to MAIL_DRIVER=sendmail It works on the first try. Final .env file should look like this MAIL_DRIVER=sendmail MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=my-email@gmail.com MAIL_PASSWORD=***** For me the following worked with GMAIL: 'encryption' => 'ssl',