Dear Fred, SendNetworkData() + message-size

Everything else that doesn't fall into one of the other PB categories.
Tomio
Enthusiast
Enthusiast
Posts: 291
Joined: Sun Apr 27, 2003 4:54 pm
Location: Germany

Dear Fred, SendNetworkData() + message-size

Post 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
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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
--Kale

Image
Tomio
Enthusiast
Enthusiast
Posts: 291
Joined: Sun Apr 27, 2003 4:54 pm
Location: Germany

Post 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
Tomio
Enthusiast
Enthusiast
Posts: 291
Joined: Sun Apr 27, 2003 4:54 pm
Location: Germany

Post 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
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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)
--Kale

Image
Tomio
Enthusiast
Enthusiast
Posts: 291
Joined: Sun Apr 27, 2003 4:54 pm
Location: Germany

Post 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
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

--Kale

Image
Tomio
Enthusiast
Enthusiast
Posts: 291
Joined: Sun Apr 27, 2003 4:54 pm
Location: Germany

Post by Tomio »

Kale wrote:sure: sab@freeuk.com
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
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

You dont have to use #SENDMAILAS_BASE64 in the bas64 section, all it does is add the CRLFs after every 76 chars.
--Kale

Image
Tomio
Enthusiast
Enthusiast
Posts: 291
Joined: Sun Apr 27, 2003 4:54 pm
Location: Germany

Post 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
Tomio
Enthusiast
Enthusiast
Posts: 291
Joined: Sun Apr 27, 2003 4:54 pm
Location: Germany

Post 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
Post Reply