Use the PureSMTP_AddHeader() block only one time before PureSMTP_SendMail(). The second time you are sending the headers twice. The server may not like it.
Changes :
- new function PureSMTP_AddHeader(Header.s, String.s) ; Set additional header strings.
- new function PureSMTP_ClearHeader() ; Clears the additional the header strings.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
That didn't work, but adding this PureSMTP_CloseSMTPConnection() did hehehe I added it to the second code but not the first
Thank you so much for your hard work gnozal. I think I have all your libs for PB4 and use them frequently, specially love PureRESIZE, that makes my life so much easier
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
I wouldn't normally want to send a file of zero length either. My 'automated' system tried...
But, other email systems seem to allow it and PurePop3 will accept and create a zero length file. So I guessed it may have been overlooked with PureSMTP. Thought you may not have noticed.
Also, could there be an option to change the boundary 'pre-text', it seems set to : PureSMTP_[boundary here]
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Flype wrote:hello, first time i use it. it's very useful.
on my dev computer it's ok - every time i send a mail.
but on our server i get this message :
354 Enter mail, end "." on a line by itself
The SMTP server sends '354' when it is ready to receive the mail text.
A communication example :
<CONNECT>
RECEIVE : 220 VSMAIL.myserver.local Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Thu, 18 Jan 2007 16:53:37 +0100
yes i get this message from your last message function.
also - and it is important - the mail is send correctly (i can check it and i really received it).
and i receive #PureSMTP_ServerTimeOut = -6 as a result of the send mail function.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
That's strange ...
If the mail is sent correctly and you get the time out error, then the following seems to happen : 1. PureSMTP dialogs with server 2. Server sends 'Start Message' (354) 3. PureSMTP sends the mail text 4. PureSMTP sends 'End of message' (CRLF.CRLF) 5. PureSMTP waits for 'Closing transmission' message (221) from the server 6. PureSMTP doesn't get any answer and quits with #PureSMTP_ServerTimeOut error (and last server message is 354)
Why does the server not answer, I don't know ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
after some test, it works successfully about 2 times on 3.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer