Using Better Email devices in Python

skoeppen
Posts: 47
Joined: Tue Oct 23, 2012 8:03 am
Location: Taneytown, Maryland

Using Better Email devices in Python

Post by skoeppen »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Using Better Email devices in Python

Post by FlyingDiver »

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
skoeppen
Posts: 47
Joined: Tue Oct 23, 2012 8:03 am
Location: Taneytown, Maryland

Re: Using Better Email devices in Python

Post by skoeppen »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Using Better Email devices in Python

Post by FlyingDiver »

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
Locked

Return to “Better Email”