[Zope] sending mail slow?

2000-08-18 Thread Chris Withers

Hi,

I've noticed that sending mail from within Zope the sendmail tab or
mailhost.send() is very slow (like it adds a few seconds to the time it
takes to get a page back from a post).

Why is that? how can I make it faster?

I'd thought about having the actual mail sending done in a different
thread/process but I don't know how I'd do that or whether it'd be worth
doing. I wonder where the slowness is coming from :S

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] sending mail slow?

2000-08-18 Thread Kapil Thangavelu

Chris Withers wrote:

 
 Hi,
 
 I've noticed that sending mail from within Zope the sendmail tab or
 mailhost.send() is very slow (like it adds a few seconds to the time it
 takes to get a page back from a post).
 
 Why is that? how can I make it faster?
 
 I'd thought about having the actual mail sending done in a different
 thread/process but I don't know how I'd do that or whether it'd be worth
 doing. I wonder where the slowness is coming from :S
 
i was think about this in regard to doing bulk email, the best i could
think of was to response.write and than send the email. no real
confirmation but the user gets the page and the mail hopefully gets
sent. i was planning on doing this from python with either calls to the
mailhost or smtplib.

Kapil

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] sending mail slow?

2000-08-18 Thread Loren Stafford

From: "Chris Withers" [EMAIL PROTECTED]

 I've noticed that sending mail from within Zope the sendmail tab or
 mailhost.send() is very slow (like it adds a few seconds to the time it
 takes to get a page back from a post).

 Why is that? how can I make it faster?

 I'd thought about having the actual mail sending done in a different
 thread/process but I don't know how I'd do that or whether it'd be worth
 doing.

You could use Xron to schedule sending the email. You could schedule it for
later or for "now". Either way the email would be sent asyncronously from
the original request. (But check out another email dated today titled "Xron
test").

-- Loren



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )