Saturday, 13 March 2010

Send automatic email message?


hi, released first mac os x app keeps track of batteries in wireless devices , offers estimate of when they'll die. user claims department of school , he'd install app on school's computers. he'd if app automatically send him email when estimates batteries die within week.

know can open url start mail , have message , address filled out, how can go bit further , have compose message, address it, , send automatically?
 

python has smtplib can automate process.

code:
 import smtplib emailserver = smtplib.smtp('my.mail.server.address.com') emailserver.sendmail("me@foo.com", ['you@foo.com'], "hello world") emailserver.quit() 
your app call python script emails battery low warning.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment