Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    simplemail 0.3

    Download button

    No screenshots available
    Downloads: 78  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ilya A. Otyutskiy | More programs
    MIT/X Consortium Lic... / FREE
    September 19th, 2012, 16:25 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    simplemail description

    An easy way to send emails in Python

    simplemail is a module that offers an easy way to send emails in Python. It will use a sendmail binary which is almost always available and ready to go.

    Sample usecase

    The code has docstrings which explains how to use the library. But here's the sample usecase I just made up for showing you the benefits and simplicity of using it.

    Let's assume that you have a general announcement which you would like to send out to your mailing list. The message itself is common for every member of your list, but you want to greet every person by his or her name in the beginning of your message.

    So you have a list of your customer in a dictionary.

     from simplemail import Simplemail

     mailinglist = {"Bob": "bob@domain.tld",
     "Alice": "alice@domain.tld"}


    Let's fire the default settings for all our emails.

     message = Simplemail(sender="Maillist Owner ",
     subject="Monthly announcement")


    Next you are going to write a default message body for everyone.

     body = "We are proudly to present our new feature."

    Let's compose a personal greeting for every member of your list and fire an email.

     for person in mailinglist.keys():
     gr = "Hello, %snn%s" % (person, body) message.send(recipient=mailinglist[person], body=gr)


    Now you have a personal greeting for all of your subscribers.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    send emails | Python library | Python | send | email

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM