Large File Attachments Get SMTP 10054 Error

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
cabramson
Newbie
Posts: 6
Joined: Wed Jul 04, 2007 5:56 pm
Location: Cypress, CA

Large File Attachments Get SMTP 10054 Error

Post by cabramson » Tue Dec 08, 2009 4:33 am

I'm trying to send zip files via the SMTPSendMail approach.

Larger files, or slower PC's, result in an error if the time to assemble the attachement requires a bit more than 10 minutes.

I was hoping that settting the SMTP_TIMEOUT to a larger number would help; but, no joy.

It seems like the SMTPSendMail requires a lot more time to execute than an Outlook attach file and email.

I've noticed some of the scripts for using Outlook; but, not a clear approach for adding attachments by specifying a file name.

Perhaps I'm missing something in the available scripts?

Thanks,

Carl

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Dec 08, 2009 9:41 am

The question of how to add attachments to an Outlook email object seems to come up roughly once a week. Each time it comes up I search for "outlook attachment" (without quotes) in the search box at the top right of the site and find the answer. I wonder why it only works when I do that ;-)

See:
http://www.mjtnet.com/forum/viewtopic.php?t=5590

I don't know why SMTPSendMail is failing. The difference though is that it is communicating directly with the mail server, whereas if you send by outlook you're just putting an email into it's queue for later delivery and it handles the communication with the server.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts