>Hello Nigel,
>
> Your class works perfect for me but with just one detail: when I send mail y must first receive incoming mail.
>How can I avoid that ?
>
>Thanks a lot !
>
>
>P.S. How can I send messages with pasted code from a text editor and keep indentations ?
I don't understand; you should be able to send mail without having to receive mail first?!?
If you want to keep your formatting, I believe you would need to change your messaging format (to raw text or something like that).