Gmail API Error from Code Sample – a bytes-like object is required, not ‘str’

Found a solution, replace this line: return {‘raw’: base64.urlsafe_b64encode(message.as_string())} with: return {‘raw’: base64.urlsafe_b64encode(message.as_string().encode()).decode()} Notice added .encode() and .decode() method calls. First, str object is encoded to bytes object – base64.urlsafe_b64encode requires it in Python 3 (compared to str object in Python 2). Then, the base64 encoded bytes object must be decoded back to str. This … Read more

Is there an alternative google-apps for mail? [closed]

I’m basically looking for alternatives too and so far I can only recommend Zoho Mail: http://www.zoho.com/mail/ http://www.zoho.com/mail/zohomail-pricing.html They have a lite version supporting 5 email accounts. Update: as of 2014-11-18, Zoho’s lite version now has 10 email accounts and Zoho has improved quite substantially. They now have mobile apps to access Zoho emails (very important … Read more

Gmail Email Table Spacing

I’ve actually run into this problem a lot recently. The code we found that works best (read: looks consistent in the most mail clients) is the following: <img src=”###” style=”display: block;” /> Just add the display: block to every image and it fixes the problem.

Django SMTPAuthenticationError

A relatively recent change in Google’s authentication system means you’re going to have to “allow less secure app access” to your Google account, in order for this to work. In your error, you are recommended to visit this link: https://support.google.com/mail/answer/78754 On that page: Step #2 asks you to try Displaying an Unlock Captcha Step #3 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)