Version 4 of smtp

Updated 2001-11-07 17:34:05

Documentation can be found at http://tcllib.sourceforge.net/doc/smtp.html


Here's a minimal useful example:

      proc send_simple_message {recipient email_server subject body} {
          package require smtp
          package require mime

          set token [mime::initialize -canonical text/plain -string $body]
          mime::setheader $token Subject $subject
          smtp::sendmessage $token \
                  -recipients $recipient -servers $email_server
          mime::finalize $token
      }

      send_simple_message [email protected] localhost \
                "This is the subject." "This is the message."










Category Package, subset Tcllib