How To Resolve Access Denied For User ‘root’@’localhost’ (using Password: Yes) When Connect MySQL Database

When I connect MySQL databases in source code, such as Java code or Python code. I encounter an error which I do not meet when I use MySQL client tool software to connect it. The error message is Access Denied For User ‘root’@’localhost’ (using Password: Yes). To resolve this issue is not hard, this example […]

How To Resolve Access Denied For User ‘root’@’localhost’ (using Password: Yes) When Connect MySQL Database Read More »

How To Resolve 502 Server Dropped Connection

When I develop the Django application and use the browser (for example google chrome) to browse my local Django website such as http://127.0.0.1:8000/user/register/, I got an error page that shows error message 502 Server dropped connection. I googled some time and finally find that the error reason is that my web browser uses a polipo

How To Resolve 502 Server Dropped Connection Read More »

Django User Registration And Login Use Built-in Authorization Example

Django framework provides built-in user management and authorization feature. You can use it to add a user group and user account to the Django project admin web page. You can also use the module django.contrib.auth to integrate the user authorization feature in your python source code. This article will tell you how to use it

Django User Registration And Login Use Built-in Authorization Example Read More »

Python Parse Emails And Attachments From POP3 Server Example

This example will tell you how to use python code to retrieve emails from the pop3 email server and parse out the email info such as from/to email address, subject, text content, and attachment files. In this example, I create a local SMTP and pop3 email server with apache James. You can refer article How

Python Parse Emails And Attachments From POP3 Server Example Read More »

Python Send Email To Multiple Contact In CSV File With Personalized Content Example

This article will tell you how to send emails to multiple contacts which are saved in a CSV file, and how to use email subject and content templates to make the email content personalized in Python. There are mainly two steps in this example, the first step is to read user contacts in a CSV

Python Send Email To Multiple Contact In CSV File With Personalized Content Example Read More »

Python Send Plain Text, Html Content, Attached Files, Embedded Images Email Example

The python modulesmtplib provides functions to send emails to an SMTP server. This article will show you how to send plain text, Html content emails using the smtplib module, it also shows how to send emails with attached files and how to embedded images in your email.

Python Send Plain Text, Html Content, Attached Files, Embedded Images Email Example Read More »