>Generally smtp servers are only configured to send to or from domains in
which they belong.

Hmmm... several ISP's I've used allow any value in the "From" header field.
I'd also like to mention that while many SMTP servers will only allow a
valid domain address in the From field, there is usually no such restriction
on what you stick in the "Reply-To" header field.

(I'd like to point out that using fake "From" addresses gets boring after
about the fifth prank email from [EMAIL PROTECTED] to your
friends...)

The ability to change a "From" field is very useful for automated emailing.
(By which I don't mean spam, but those emails from [EMAIL PROTECTED])

Regards, 

Liam Clarke


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Adisegna
Sent: 20 November 2005 14:26
To: Danny Yoo
Cc: tutor@python.org
Subject: Re: [Tutor] smtplib alternative???


Hi Danny,

Yes, when sending an email your mail client will always send the email to
the mail server specified by the MX record in the authoritive domain.
Usually the domain specificed after the @ symbol. The problem with smtplib
is that I have to specify the mail server I'm sending email too. What if I
wanted to send an email to 3 different people on three different domains
hosted by 3 different mail servers? Smtlib prohibits this functionality. Do
you see what I mean now...?

Thanks for replying...


On 11/20/05, Danny Yoo < [EMAIL PROTECTED]> wrote:


On Sat, 19 Nov 2005, Adisegna wrote:

> I found this script to send mail online. It works fine but requires me 
> to enter an mail server. I'm looking for something else that doesn't 
> require and SMTP server. Having to specify a mail server prohibits me 
> from sending to alternate domains.

Hi Adisegna,

I've always assumed that emails have to talk with some SMTP server. RFC821
seems to confirm this:

     http://www.faqs.org/rfcs/rfc821.html

so what you're asking, to be able to send mail without an SMTP server, may
not be possible.  There is an 'smtpd' module that comes with Python:

     http://www.python.org/doc/lib/module-smtpd.html

I'm also not sure I understand the reason you're trying to avoid talking to
an outside smtp server.  But again, I'm unfamiliar enough with how the SMTP
email protocol really works that perhaps I'm just overlooking something.





--
Arthur DiSegna
Network Operations Center
Authentium, Inc.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

A new monthly electronic newsletter covering all aspects of MED's work is now 
available.  Subscribers can choose to receive news from any or all of seven 
categories, free of charge: Growth and Innovation, Strategic Directions, Energy 
and Resources, Business News, ICT, Consumer Issues and Tourism.  See 
http://news.business.govt.nz for more details.




http://www.govt.nz - connecting you to New Zealand central & local government 
services

Any opinions expressed in this message are not necessarily those of the 
Ministry of Economic Development. This message and any files transmitted with 
it are confidential and solely for the use of the intended recipient. If you 
are not the intended recipient or the person responsible for delivery to the 
intended recipient, be advised that you have received this message in error and 
that any use is strictly prohibited. Please contact the sender and delete the 
message and any attachment from your computer.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to