Python Forum
[Solved]Help Displaying Emails properly via Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved]Help Displaying Emails properly via Python
#4
I would add this code between where you get the receiver and the message, and where you send the email. This should work as it did in your test because you are using the same receiver and message body as in your test.
sender = "[email protected]"    
receiver = "[email protected]" 
message = """\
From: "Baxter"
Subject: Alert!
 
Hello Commander,
This is a test.
"""

    #Send Email
If this works, remove the receiver reassignment and test if it still works:

If that works the error must be in the message. Remove the message reassignment to verify. I'd also add in some code to print out what message is sent:
    autoTypeAnimation('What should I say?')
    msg = UserInput()
 
    message = """\
    From: "Baxter"
    Subject: Alert!
    """ + msg
    print(type(message))
    print(len(message))
    print(message)
    #Send Email
Is the printed information what you expected to see?
Reply


Messages In This Thread
RE: Help Displaying Emails properly via Python - by deanhystad - Sep-27-2022, 04:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Excel isnt working properly after python function is started IchNar 2 376 May-01-2024, 06:43 PM
Last Post: IchNar
  How do I properly implement restarting a multithreaded python application? MrFentazis 1 700 Jul-17-2023, 09:10 PM
Last Post: JamesSmith
  Sending Emails on Autopilot Gyga_Hawk 3 1,768 Mar-15-2022, 08:20 AM
Last Post: Larz60+
  Mark outlook emails as read using Python! shane88 2 6,729 Feb-24-2022, 11:19 PM
Last Post: Pedroski55
  Trying out the parsing/reading of emails from my outlook cubangt 0 6,334 Jan-12-2022, 08:59 PM
Last Post: cubangt
  reading shared outlook emails zarize 0 2,531 Mar-03-2020, 01:47 PM
Last Post: zarize
  Python Library for Reading POP Emails? bmccollum 1 3,738 Jan-06-2020, 06:37 PM
Last Post: micseydel
  Read in trades from emails semantina 2 2,193 Nov-06-2019, 06:12 PM
Last Post: semantina
  In Visual Studio Python is not properly installed jalea148 4 3,185 Sep-26-2019, 12:31 PM
Last Post: snippsat
  Python 2.7.13 Issue Reading .txt files Properly username1145 3 2,598 Mar-24-2019, 03:08 PM
Last Post: username1145

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020