i am trying to send an email from my application. The code run successfully with out error. But it do not send the email. It show this message on Console.
You are not currently sending out real email.
If you have sendmail installed you can use it by using the
server with --enable_sendmail
The sample code provided by the google is:
message = mail.EmailMessage(
sender="shaizi9687@gmail.com",
subject="Your account has been approved")
message.to = "ABC <shahzebakram@hotmail.com>"
message.body = """Dear Albert:
Your example.com account has been approved. You can now visit
http://www.example.com/ and sign in using your Google Account to
access new features.
Please let us know if you have any questions.
The example.com Team
"""
message.send()