Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57297

Re: using smtp in python

References <90f07095-359c-4c57-9948-39ac089b21da@googlegroups.com>
Date 2013-10-22 11:44 -0700
Subject Re: using smtp in python
From Dan Stromberg <drsalists@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1374.1382467449.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Oct 22, 2013 at 11:00 AM, <ashikbekal@gmail.com> wrote:

> I'm trying to send an email using python. The mail content is taken from
> file and subject of the mail is name of the file. The program is invoked as
>     ./mailclient.py -f <from email address> -d <recipient email address>
> -i <file1> -s <server IP address>
> .
> How to i use server ip address and the mail id to send the email ? (would
> i require the password)
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Some SMTP servers require a password and some do not.  I'm guessing more
and more do, as spammers attack.

Here's a module that shows how to do it with a password:
http://stromberg.dnsalias.org/svn/mailer/trunk/mailer.py

You can check it out with svn checkout <url>, or just browse to the URL in
a web browser.

HTH

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

using smtp in python ashikbekal@gmail.com - 2013-10-22 11:00 -0700
  Re: using smtp in python Dan Stromberg <drsalists@gmail.com> - 2013-10-22 11:44 -0700
  Re: using smtp in python xDog Walker <thudfoo@gmail.com> - 2013-10-22 15:02 -0700
  Re: using smtp in python Chris Angelico <rosuav@gmail.com> - 2013-10-23 17:16 +1100

csiph-web