Dear Fred, SendNetworkData() + message-size
Dear Fred, SendNetworkData() + message-size
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
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
eh? I have sent emails with attachments of >1mb using my code here: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.
viewtopic.php?t=9775
Kale,Kale wrote:eh? I have sent emails with attachments of >1mb using my code here: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.
viewtopic.php?t=9775
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
Kale,Kale wrote:eh? I have sent emails with attachments of >1mb
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
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)
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)
Kale,Kale wrote:sure: sab@freeuk.com
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
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).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 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


