Re: SMTP returns sockXXX error when sending large emails



Roy Terry wrote:
"Robert Joy" <robert@xxxxxxxxx> wrote in message
news:aa-dnR-OlqWQRmnZnZ2dnUVZ_qqdnZ2d@xxxxxxxxxxxxxx
Hi,

On a Windows XP Pro box I have a strange problem when using the smtp
package to send large emails or emails with large attachments (>70KB not
all that big really). The problem seems to be related to the Trf package
that is loaded inside the smtp module. If I remove the bit about Trf and
try to send I can send huge files wiht no issue what so ever. Has any
one ever seen this OR have any idea why this is happening. I have no
problems emailing large files using Outlook or Thunderbird on my system.
I currently using the iocpsocket package but the problem orignally was
happening with the standard Tcl socket at a much lower payload (>10K).

This is oddly similar to errors I've encountered with mime/smtp, so for
future reference, if
nothing else, I'll put some google links in. In short, I found that
disabling use
of trf allowed sending of mime attachments to succeed.

http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/a128dff48a87a423/1c77124adacb3e57?lnk=gst&q=royterry++trf&rnum=1#1c77124adacb3e57

and

http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/fd3536de6bc59b5d/15f4f8a7dda4f512?lnk=gst&q=royterry++trf&rnum=2#15f4f8a7dda4f512


The error is as follows:

400: error writing "iocp508": invalid argument

I had Pat Thoyts look at the issue and he's recommended using sockspy to
debug the problem but when I put sockspy in the loop the problem went
away.
Also, I noticed that when I enable the -usetls option it does not
encrypt the message as it's sending so I'm also wondering if this may
have something to do with the issue. Like there is a package missing but
no documentation to help you figure this out.

Now Pat Thoyts swears that this all works fine for him on his Windows XP
box but I have yet to see it work for me. I've tried it on both my
desktop and my laptop with the same result. I'm baffled. Any help would
be very much appreciated!

Robert Joy


Roy,

Did you see my reply in this thread dated 8/29/2006 9:30 PM? It details the inclusion of the tls package that resolves (in part) the issue. I believe there is still an issue with the smtp package but maybe not necessarily related to the trf package. Pat needs to revisit this code.

Robert
.



Relevant Pages

  • Re: SMTP returns sockXXX error when sending large emails
    ... On a Windows XP Pro box I have a strange problem when using the smtp ... package to send large emails or emails with large attachments (>70KB not ... The problem seems to be related to the Trf package ... of trf allowed sending of mime attachments to succeed. ...
    (comp.lang.tcl)
  • Re: smtp authentication problem?
    ... In the SMTP conversation opening the client sends its hostname as ... reported by [info hostname] so that should be what gives you the @jen ... > % package require smtp ... package after we released tcllib 1.6. ...
    (comp.lang.tcl)
  • Re: SMTP returns sockXXX error when sending large emails
    ... Robert Joy wrote: ... On a Windows XP Pro box I have a strange problem when using the smtp package to send large emails or emails with large attachments. ...
    (comp.lang.tcl)
  • Re: tcllib: smtp date generation broken?
    ... package require mime ... If you do not supply a date in the header, then the date used is the date on the SMTP server. ... it is the time on the originating machine. ...
    (comp.lang.tcl)
  • Re: SMTP error. Connection refused
    ... Have you blocked SMTP connections? ... Check your SMTP virtual server properties ... from the Finance computer, can you telnet to smtp port on your Exchange ... In the setup for this package I have added the Exchange 2003 server's IP ...
    (microsoft.public.exchange.admin)