Search code examples
pythonpyramid

Python email "from name" customization


I have a python script to send email and it works just fine but the problem is when I check my email inbox. enter image description here

I want that username to be customize username and not the whole email address.

enter image description here


Solution

  • The format you should use for the from address is:

    Your Name <[email protected]>