[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] email in CGIs



>In Regards to your letter <v01530500ad3ec5d1fcdb@[129.105.139.47]>:
>> I find that MacPerl is pretty fast when it comes to normal script handeling
>> but when I added a mail message sent to someone using sockets the return
>> time for the script jumped from 2-3 seconds to 13-15 seconds.  Has anybody
>> else experienced this problem.  I have not had that great of a time jump
>> when programing a UNIX box.
>
>On the Mac, you are waiting for the entire TCP based SMTP transaction
>to complete, which takes time especailly for hostname lookups and connect
>times. The only way around this would be to find a process on the Mac that
>could spool your email for you and return immediately, doing the smtp later.

AIMS will do this for you, although it's twisted and overkill:

   1) You'll need to write the mail file yourself;
   2) If MacPerl can't add resources to a file, you'll need to
      MacPerl:Applescript (or whatever) to add the correct resources
      to the file using the GTQ scripting additions, and then
   3) Move the file into the AIMS Incoming folder.

AIMS will handle it from there.

You can look at my FireShare code for examples of how this is done in
AppleScript.
   http://nspace.cts.com/html/NetLife/NSpace/FireShare/FireShare.html

Jerry
jerry@acusd.edu (Finger or Reply for PGP Public Key)
http://nspace.cts.com/             finger or e-mail help@nspace.cts.com
------
"Excelsior just don't do it anymore, pilgrims."
                    -- Terrence Chua, on Stan Lee