Using Better Email devices in Python

Posted on
Wed Mar 14, 2018 10:18 am
skoeppen offline
Posts: 37
Joined: Oct 23, 2012
Location: Taneytown, Maryland

Using Better Email devices in Python

I've defined a Better Email SMTP device. It's obvious how to use it to send mail from within the Indigo UI, but how do I send email via a Python command? Is there a command similar to the Indigo server command: indigo.server.sendEmailTo( 'address text', subject='subject text', body='body text' )? I couldn't find this anywhere in the Forum discussions.

Steve Koeppen
X10 user from the early 80's
Converted to Insteon 2011- 2014
Started adding z-wave 2014
Happy :D Indigo owner since v1 in 2005

Posted on
Wed Mar 14, 2018 10:24 am
FlyingDiver offline
Posts: 2399
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Using Better Email devices in Python


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Mar 14, 2018 12:03 pm
skoeppen offline
Posts: 37
Joined: Oct 23, 2012
Location: Taneytown, Maryland

Re: Using Better Email devices in Python

Thanks Joe. I added the recipient as a function argument to make it a bit more general.
Last edited by skoeppen on Wed Mar 14, 2018 12:04 pm, edited 1 time in total.

Steve Koeppen
X10 user from the early 80's
Converted to Insteon 2011- 2014
Started adding z-wave 2014
Happy :D Indigo owner since v1 in 2005

Posted on
Wed Mar 14, 2018 12:04 pm
FlyingDiver offline
Posts: 2399
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Using Better Email devices in Python

skoeppen wrote:
Thanks Joe. I added the recipient as a function argument to make it a bit more general..


That's probably a good idea. That was just a quick example from one of my existing scripts.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests