Page 1 of 1
Dear Fred, SendNetworkData() + message-size
Posted: Sat Mar 13, 2004 1:34 pm
by Tomio
Fred,
none of the sendmail-programs at the forums at jconserv.net/purebasic and purearea.net I found were able to send messages larger then 16000 bytes. And my own program (with many tests) too.
So, I'm convinced there is a bug or an unintended limit in PB's code.
A sendmail tool is an important planned detail in our project.
Please be so kind and check if the limitation could be removed easily.
Thank's.../tomio
Posted: Sat Mar 13, 2004 4:43 pm
by Kale
none of the sendmail-programs at the forums at jconserv.net/purebasic and purearea.net I found were able to send messages larger then 16000 bytes.
eh? I have sent emails with attachments of >1mb using my code here:
viewtopic.php?t=9775
Posted: Sat Mar 13, 2004 6:26 pm
by Tomio
Kale wrote:none of the sendmail-programs at the forums at jconserv.net/purebasic and purearea.net I found were able to send messages larger then 16000 bytes.
eh? I have sent emails with attachments of >1mb using my code here:
viewtopic.php?t=9775
Kale,
a txt-file of about 17000 byte send as message-part or attachment:
----> RECV = 500 = "Line too long"
The same with an mp3 file of 38KB.
../tomio
Posted: Sat Mar 13, 2004 7:07 pm
by Tomio
Kale wrote:eh? I have sent emails with attachments of >1mb
Kale,
very confused: the file of 17KB I mentioned in my previous reply cannot be send on my WIN98 AND on my WinXP.
But another txt-file of about 34.1KB can be send on Win98 + WinXP. No error.
Both look like simple txt-files. "Attributes" are the same.
I wanted to let you know. Perhaps you have an idea?
../tomio
Posted: Sat Mar 13, 2004 8:13 pm
by Kale
hmm... very odd! I have no idea why this might be happening. This is what i am testing it with and all are attached and sent properly:
Main Message: 100k
Attachments:
"D:\__PureBasic__\Ape Mail\build\mails.ico" (3.6k)
"D:\__PureBasic__\Ape Mail\build\Mercury.gif" (5.8k)
"D:\__PureBasic__\Ape Mail\build\mercury.jpg" (19.1k)
"D:\__PureBasic__\Ape Mail\build\StringHandling.pbi" (21.9k)
"D:\__PureBasic__\Ape Mail\build\Atom Logo.ai" (578.0k)
"D:\__PureBasic__\Ape Mail\build\Red Dwarf - Tongue Tied.mp3" (1.5mb)
Posted: Sun Mar 14, 2004 10:48 am
by Tomio
Kale,
could I send you 2 files which you try to send with your sendmailer?
A txt of 17KB and an mp3 file of about 35 KB.
.../tomio
Posted: Sun Mar 14, 2004 2:24 pm
by Kale
Posted: Mon Mar 15, 2004 12:31 pm
by Tomio
Kale,
I must confess that until now I didn't read your sendmail program carefully.
And now I see that I have to set the #SENDMAILAS_BASE64 flag for my mp3.
I'll do another try when I come home this evening and let you know the result.
../tomio
Posted: Mon Mar 15, 2004 12:57 pm
by Kale
You dont have to use #SENDMAILAS_BASE64 in the bas64 section, all it does is add the CRLFs after every 76 chars.
Posted: Mon Mar 15, 2004 10:54 pm
by Tomio
Kale wrote:You dont have to use #SENDMAILAS_BASE64 in the bas64 section, all it does is add the CRLFs after every 76 chars.
I got it. With some tweaks I could force your program to classify the mp3 as binary. Now it works. The weak point is the IsBinary(). You check for the 1. byte. But many formats start with an identifier which is written in 'normal' letters (ID3 in this case, or "BM" == bmp-file).
I think your program is super, but you should take the file-extension to define the binary type or make it an option to the user.
Thank you for your help!.../tomio
Posted: Mon Mar 15, 2004 10:59 pm
by Tomio
To Fred !!
> So, I'm convinced there is a bug or an unintended limit in PB's code.
Fred, it was not a bug. Sorry!
../tomio