mirror of
https://github.com/aljazceru/cryptoanarchywiki.github.io.git
synced 2025-12-17 21:24:20 +01:00
Update big changes
This commit is contained in:
88
_site/django/2016/04/19/email-backend-with-smtp-gmail.html
Normal file
88
_site/django/2016/04/19/email-backend-with-smtp-gmail.html
Normal file
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Email BackEnd with SMTP Gmail </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="/about/">About Me</a><br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<h1>Email BackEnd with SMTP Gmail</h1>
|
||||
<span class="time">19 Apr 2016</span>
|
||||
|
||||
<div class="content">
|
||||
<div class="post"><p>Add this configurations in your <code class="highlighter-rouge">settings.py</code></p>
|
||||
|
||||
<p>This configurations is if you work with <code class="highlighter-rouge">smtp.gmail.com</code>, other smtp is similiar with configurations.</p>
|
||||
|
||||
<ul>
|
||||
<li>Unlock Captha: <a href="https://accounts.google.com/DisplayUnlockCaptcha">https://accounts.google.com/DisplayUnlockCaptcha</a></li>
|
||||
<li>Change to active: <a href="https://www.google.com/settings/security/lesssecureapps">https://www.google.com/settings/security/lesssecureapps</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="highlighter-rouge"><pre class="highlight"><code>EMAIL_HOST = 'smtp.gmail.com'
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_HOST_USER = 'your_gmail@gmail.com'
|
||||
EMAIL_HOST_PASSWORD = 'your_password'
|
||||
EMAIL_USE_TLS = True
|
||||
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user