sendmail question

  • Thread starter CSGalloway@nc.rr.com
  • Start date
C

CSGalloway@nc.rr.com

Guest
I am using TCMD 10..... under XP Pro sp3

If I have too many attachments for an email as it comes back with "Command line too long" - besides making a ZIP and sending that instead how else can i send a large number of attachments?

========================echo . > "%USERPROFILE%\desktop\a.err"
for %fldr in (@dirlist.lst) (
Echo Working on %Fldr...
cdd "%fldr"
(for %fn in (*) set cAtt=%cAtt /A "%fn") >>&> "%USERPROFILE%\desktop\a.err"
echo sending email now...
sendmail %cAtt /d "someone@someplace.com" "%fldr" for your pleasure
unset cAtt
delay 120
cdd -
)
========================
 
May 20, 2008
3,515
4
Elkridge, MD, USA
CSGalloway@nc.rr.com wrote:
| I am using TCMD 10..... under XP Pro sp3
|
| If I have too many attachments for an email as it comes back with
| "Command line too long" - besides making a ZIP and sending that
| instead how else can i send a large number of attachments?
|
| =======================| echo . > "%USERPROFILE%\desktop\a.err"
| for %fldr in (@dirlist.lst) (
| Echo Working on %Fldr...
| cdd "%fldr"
| (for %fn in (*) set cAtt=%cAtt /A "%fn") >>&>
| "%USERPROFILE%\desktop\a.err" echo sending email now...
| sendmail %cAtt /d "someone@someplace.com" "%fldr" for your pleasure
| unset cAtt
| delay 120
| cdd -
| )
| =======================
You could keep track of the command line length (via the length of variable
cAtt) as you build cAtt, and use sendmail multiple times, until all files
are sent. I would also check the relevant RFC to learn about the limit on
the number of attachments, if any, a mail server and client are required to
deal with to conform to WWW standards. You may also neeed to check your
ISP's policies about the frequency at which it accepts outgoing mail.
--
HTH, Steve
 
Similar threads
Thread starter Title Forum Replies Date
Jay Sage How to? SENDMAIL with G-Suite Mail Account Support 6
vefatica SENDMAIL via smtp.gmail.com? Support 3
C How to? inline IMG with sendmail? Support 7
R TCC-RT sendmail Support 8
R Fixed Sendmail parameter /USER= does not work Support 4
C sendmail in v20.00.25 x64 Support 7
Mordachai How to pass URL to sendmail? Support 10
J Sendmail, SSL and MS Servers Support 11
C SendMail and yahoo.com Support 1
C Sendmail w/GMail - problem Support 6
C Google Sendmail ? Support 15
Joe Caverly How to? SendMail and SSL Support 2
Dan Glynhampton Fixed v15 sendmail : password encryption problem Support 18
Jay Sage SENDMAIL Apparently Not Setting Priority Support 2
S @CON: does not work with sendmail for pipe Support 2
vefatica SENDMAIL, command line override SMTP server? Support 2
Joe Caverly SENDMAIL under v14 Support 3
dcantor SENDMAIL /= missing field Support 4
C Using dif. sending addresses with sendmail Support 11
C sendmail TO name? Support 9
A Using SENDMAIL with Exchange Server Support 1
H Minor bug in v12 SENDMAIL Support 0
Jay Sage SENDMAIL Problem in TCC12 Support 10
dcantor Problem with SENDMAIL /H Support 4
Jay Sage How Can SENDMAIL Create Messages with Plain Text and HTML Support 2
dcantor Feature request for SENDMAIL Support 0
S SENDMAIL attachment size limit Support 1
S SENDMAIL vs. RFC 2822 Support 0
S SENDMAIL vs. RFC 2822 Support 0
J Configure SendMail to go through GMAIL as SMTP server Support 10
Gisle Vanem How to? 4NT "detach" question Support 2
D PDIR question Support 0
C forum Posting Question... Support 3
C question re: Move Support 3
S How to? Upgrade Question: What supporting documentation is required at time of purchase? Support 2
Peter Murschall Documentation Question to %@PSHELL Support 4
Fross Tab Question Support 6
Fross Quick Function Question Support 17
Dick Johnson Question about the Touch command Support 0
rps Documentation "Copy+Paste+run" question Support 2
vefatica SFTP question Support 17
vefatica Question about IPWorks Support 0
C How to? SHORTCUT question..... Support 6
vefatica TPIPE, crash and question Support 1
C Question / Suggestion Support 1
MickeyF Another TPIPE question Support 6
vefatica Another @EVERYTHING question Support 4
mikea How to? %@everything[] question Support 10
A License Question for Single User Support 5
Jay Sage Help Correction (and Related Question) Support 0

Similar threads