Non SMTP email with Python
<p>I want to send emails with custom 'FROM' field, like *noreply@example_company.com*, it's easy to do in PHP, but I don't know how to do that in python and can't find any good documentation. </p>

<p>in other words, what is the python equivalent of the following php code?</p>

<pre><code>$to = "user@gmail.com";
$subject = "Weekly news";
$message = "Hello, you've got new Like";
$from = "noreply@example_company.com";
$headers = "From: WeekNews" . '&lt;'.$from.'&gt;';
mail($to,$subject,$message,$headers);
</code></pre>

<p>Note that there is no need to setup SMTP server connection, you just give it a custom $from address.</p>
