Page 14 of 25

Posted: Wed Oct 31, 2007 3:26 pm
by Psychophanta
It works now like a charm in my XP SP2!!!
Smuuuuak Gnozal :D 8)

Posted: Wed Oct 31, 2007 3:50 pm
by DoubleDutch
Now it works fine on Vista! :D

Posted: Thu Nov 01, 2007 2:17 pm
by Psychophanta
One more point.
From the manual:
Attachements :

- no file attached : Attachements.s = ""
- 1 file attached : Attachements.s = "Filename"
- X files attached : Attachements.s = "Filename1;Filename2;...;FilenameX"
But in windows a file name can contain ';' character and that is an inconvenience. Perhaps another separator character like #LF$ or so :roll:

Posted: Fri Nov 02, 2007 1:04 pm
by bembulak
Thanks for the great lib!
Works like a charm on W32, XP Prof, here!
:D

Posted: Sun Jan 06, 2008 2:18 pm
by nicolaus
Gnozal i have send you a privat message after probs with the SMTP lib.

If you see the private message you understand wyh i have send it as privat message :wink:

regards,
Nico

Posted: Tue Jan 08, 2008 12:46 pm
by bobobo
Notice
4.20Beta - Your nice lib throws an PolinkError referring to _PB_Mid (SubSystems also) while trying to compile

Posted: Tue Jan 08, 2008 1:12 pm
by gnozal
bobobo wrote:Notice
4.20Beta - Your nice lib throws an PolinkError referring to _PB_Mid (SubSystems also) while trying to compile
Version compiled with PB4.20 beta 1 : http://freenet-homepage.de/gnozal/PureSMTP___.zip (not tested).

Posted: Tue Jan 08, 2008 2:02 pm
by bobobo
:D seems to be ok now

THANK YOU

Posted: Wed Jan 23, 2008 12:30 pm
by kinglestat
this is a really nice lib
very easy to use
I am impressed with how you make your tools powerful and yet easy to use

Anyhow, enough of the sweet talk

I have a simple question

When using the
PureSMTP_OpenSMTPConnection
with PureSMTP_SetAttachmentCallback

How do you abort an email which is being sent?
I tried closing connection....but got some really nice crashes

cheers
and keep up the good work

Posted: Wed Jan 23, 2008 1:46 pm
by gnozal
kinglestat wrote:When using the PureSMTP_OpenSMTPConnection with PureSMTP_SetAttachmentCallback how do you abort an email which is being sent?
You can't.
The callback is only to show the progression, I didn't think about aborting the mail. Why would you ?
I guess I could stop sending the mail, but I don't know how the SMTP server would react if I send 'end message' while sending an attachment : would he abort the message, send the message without attachment, send a corrupt file ?

Posted: Wed Jan 23, 2008 9:15 pm
by kinglestat
I understand your point
but there must be a way how to close a connection cleanly?
when I try CloseConnection...as I mentioned earlier....I just have a hangup

Posted: Thu Jan 24, 2008 8:56 am
by gnozal
kinglestat wrote:I understand your point
but there must be a way how to close a connection cleanly?
when I try CloseConnection...as I mentioned earlier....I just have a hangup
If you close the connection in the callback (not expected !) the next SendNetworkData() call in the PureSMTP_SendMessage() loop will fail (no current network ID) : so crash.

Posted: Thu Jan 24, 2008 6:11 pm
by kinglestat
how does outlook do it?
Ie if if sending a large email, and you press cancel, you get lots of red crosses, but email is aborted
I'd like to reproduce that effect if possible with your library
can you guide me on what I should do?

Posted: Fri Jan 25, 2008 9:08 am
by gnozal
kinglestat wrote:how does outlook do it?
Ie if if sending a large email, and you press cancel, you get lots of red crosses, but email is aborted
I'd like to reproduce that effect if possible with your library
can you guide me on what I should do?
You can't do anything.
I have to modify the library...

Posted: Fri Jan 25, 2008 11:22 am
by gnozal
Update (PB 4.xx versions only)

Changes :
- enhanced function PureSMTP_SetAttachmentCallback()
If the callback returns #True (<> #Null), the PureSMTP_SendMessage() function aborts and closes the connection to the SMTP server.
The message is not sent and PureSMTP_SendMessage() returns #PureSMTP_Abort error.