gmail

imaplib - What is the correct folder name for Archive/All Mail in Gmail?

醉酒当歌 提交于 2019-12-05 16:05:22
I have a script which exports all the email in Gmail as text files. It works fine with this line where you select the folder: mail.select("inbox") But I am not sure what the name is for Gmail's archive, where all of the email is stored. I've tried archive and all mail and stuff, but no luck. Anyone know the correct name? Solved it. It is [Gmail]/All Mail or, if you are a Gmail UK user like me, it may be [Google Mail]/All Mail , because Gmail used to be called Google Mail in the UK due to trademark issues. If you're doing this for general use, I'd recommend testing to see if [Gmail]/All Mail

Sending Activation Email , SMTP server did not accept the password

核能气质少年 提交于 2019-12-05 15:57:38
问题 I'm sending an email using CakePHP and I got an Error: SMTP server did not accept the password , along with an email in my inbox says that: sign-in attempt blocked! , we recently blocked a sign-in attempt to your Google Account . Is that normal? I'm using Xampp. function sendActivationEmail($user_id) { Debugger::dump($user_id); $user = $this->User->findById($user_id); if ($user==false) { debug(__METHOD__." failed to retrieve User data for user.id: {$user_id}"); return false; } $this->set(

Smalltalk Pharo ZdcSecureSMTPClient not showing html formatting in GMail?

这一生的挚爱 提交于 2019-12-05 15:56:13
I'm using ZdcSecureSMTPClient to send an html formatted string to a gmail account. But when I send it it displays the html encoding as plain text. ie) mailMessage := MailMessage empty. mailMessage setField: 'subject' toString: 'Trying to send html '. mailMessage body: (MIMEDocument contentType: 'text/html\n' content: '<html><head><b> Dear </b></head></html>' This shows is Gmail as: 'html> head> Dear /b>/head>/html>' Using Seaside/Pharo 2.0 one click image. What you use to set the mime type is not what is expected (additionally, the content of the message should be in body , not head ). Use

Sending email from gmail using Python

╄→гoц情女王★ 提交于 2019-12-05 14:31:08
I'm trying to teaching myself how to program by building programs/scrips that will be useful to me. I'm trying to retool a script I found online to send an email through gmail using a python script ( Source ). This example has a portion of code to attach files, which I don't want/need. I have tweaked the code so that I don't have to attach any files, but when I do this I lose the body of the email. Any help/tips on how to modify the code to keep the body of the email intact? Appreciate the help. The sample code you're using creates a multi-part MIME message. Everything is an attachment,

Reading email from gmail is not working

白昼怎懂夜的黑 提交于 2019-12-05 13:14:29
I am using Java Mail API along with the following code to read email from my gmail account. import java.util.Properties; import javax.mail.Folder; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.NoSuchProviderException; import javax.mail.Session; import javax.mail.Store; public class CheckMails { public static void check(String host, String storeType, String user, String password) { try { Properties properties = new Properties(); properties.put("mail.pop3.host", host); properties.put("mail.pop3.port", "995"); properties.put("mail.pop3.starttls.enable", "true"

What mechanism does Gmail use for user authentication?

主宰稳场 提交于 2019-12-05 12:28:33
I want to authenticate myself using my Gmail ID and password on a Gmail SMTP server. I am using the GSASL library. I have a set of mechanisms that my client supports: Anonymous, External, Login, Plain, SecureID, Digest-MD5 and CRAM-MD5. Does somebody know which mechanism Gmail uses for user authentication? To quote Google's documentation for authenticating to GMail's SMTP : Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use authentication) Use Authentication: Yes Use STARTTLS: Yes (some clients call this SSL) Port: 465 or 587 the authentication in this case is "Plain". To find out

UIActivityViewController Gmail Share subject and body going Same

僤鯓⒐⒋嵵緔 提交于 2019-12-05 12:05:47
问题 I am sharing Some content via UIActivityController . It is working fine for other Options. I am able to get subject and body in Default Mail App. But when I use to share the content with gmail then my Subject of the mail is gone and I am getting Body content in Gmail Subject's section: Here is my code: NSString *body = @"I am Body"; NSString *tagLine = @"I am Subject"; NSArray *objectToShare = [NSArray arrayWithObjects:body, nil]; UIActivityViewController *activityVC = [

Javascript to check Gmail Unread Count

冷暖自知 提交于 2019-12-05 12:00:51
How in javascript would get the number of unread emails for the currently signed in gmail account? Related question - does Google offer any documentation on this sort of stuff? Here's the docs's you are looking for: http://code.google.com/apis/gmail/docs/ Note, that there's no way to 'steal' the unread count from someones account using somme simple javascript without authentication. 来源: https://stackoverflow.com/questions/3081421/javascript-to-check-gmail-unread-count

Font Color in HTML Email - Gmail

放肆的年华 提交于 2019-12-05 11:39:18
问题 I know that I have to use inline CSS to style anything in an HTML email, but I am noticing an odd override that is occuring in gmail. I am trying to change the color of the text in a table row: <tr style='color: #000; font-size: 14px; font-family: Verdana, serif;'> but when I open this email in gmail, the font-family and black color is being overwrote by gmail stylings. I'm seeing this via Firebug: That purple color is being used instead of the black I want, and the font family is defaulting

imaplib/gmail how to download full message (all parts) while not marking read [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-05 11:28:23
This question already has answers here : Fetch an email with imaplib but do not mark it as SEEN (4 answers) Closed 3 years ago . I inadvertently marked all the messages in my inbox as read with this python statement: status, data = conn.uid('fetch', fetch_uids, '(RFC822)') But I was able to walk through all the parts of the message with the following set of statments: email_message = email.message_from_string(data[0][1]) for part in email_message.walk(): print '\n' print 'Content-Type:',part.get_content_type() print 'Main Content:',part.get_content_maintype() print 'Sub Content:',part.get