Hi,
There is a problem with the file handling in bitmailer.cpp.
When called with the -F option. The file is copied into
message.
And message is inialised with "No Message!".
So if the content of the file is longer than what
message has been initialise with, it crashes.
I fixed it this making a malloc of message before
copying the file into it.
I send the modified source file. I also changed other
things here and there but this is irrelevant concerning
this problem.
Another thing that looks strange. For the smtp
authentication, before setting the username to the
Mailer class there is malloc of user. This malloc erase
the value of user, so after the call of m.username()
the setted user is nothing. I have not more
investingation yet.
Best regards,
Gael Le Coz
modified sources bitmailer.cpp