Feb-03-2017, 04:58 PM
Stop using global variables. If you want to send an email with a specific message, then pass that message as a parameter to send_message(). Because right now, you're changing
message
, but your send_message() never uses that variable at all.