Skip to content

Instantly share code, notes, and snippets.

@dreamspy
dreamspy / sendemail.py
Created May 21, 2020 16:35
Test SMPT python script
import smtplib
import sys
gmail_user = 'emailaddress@pan.is'
gmail_password = 'password'
sent_from = gmail_user
to = [gmail_user, gmail_user]
subject = 'OMG Super Important Message'
body = 'the body'
{% if displaycomments %}
<!-- Plugin: OpenDoors V1.1
Author: Michael Brüning <M.Bruening@compunics.com.ni>
Tested with: PTP V2.5.3, V2.5.7
-->
{% endif %}
<events name="OpenDoorsEvents" keep="true"
onTourStart="if(debug, showlog(); );"
onxmlcomplete="preload{{p.id}}();"
{% if displaycomments %}
<!-- Plugin: OpenDoors V1.1
Author: Michael Brüning <M.Bruening@compunics.com.ni>
Tested with: PTP V2.5.3, V2.5.7
-->
{% endif %}
<events name="OpenDoorsEvents" keep="true"
onTourStart="if(debug, showlog(); );"
onxmlcomplete="preload{{p.id}}();"