Script changes!
This commit is contained in:
parent
45e32adc61
commit
6b13214c4d
9 changed files with 69 additions and 7 deletions
|
@ -47,6 +47,7 @@ if __name__ == "__main__":
|
|||
env_var="SUBJECT",
|
||||
default=f"Test message {now.strftime('%H:%M:%S')}",
|
||||
)
|
||||
parser.add_argument("-c", "--callout", env_var="CALLOUT", action="store_true")
|
||||
|
||||
parser.add_argument("-b", "--body", env_var="BODY", default="")
|
||||
parser.add_argument("-g", "--gtube", env_var="GTUBE", action="store_true")
|
||||
|
@ -176,8 +177,9 @@ Input arguments:
|
|||
send(f"AUTH PLAIN {encoded}")
|
||||
send(f"MAIL FROM: <{args.sender}>")
|
||||
send(f"RCPT TO: <{args.receiver}>")
|
||||
send("DATA")
|
||||
send(text)
|
||||
if not args.callout:
|
||||
send("DATA")
|
||||
send(text)
|
||||
send("QUIT")
|
||||
sys.exit(0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue