Home » U++ Library support » U++ MT-multithreading and servers » SmtpMail class
Re: SmtpMail class [message #5778 is a reply to message #5766] |
Sun, 15 October 2006 23:13   |
nicomesas
Messages: 104 Registered: September 2006 Location: Barcelona, Spain
|
Experienced Member |
|
|
Hello Luigi
This weekend I have investigated a little plus the subject this of the SmtpMail class and have for of conclusions that I believe that they are important.
In Linux I can use the class to directly send mail to the adressees (using the resolv library) who we could make an effort to us in port to Windows... but arises the problem from which if we used this method, then the servers think that the machine that sends the mail it have a virus of which they send Spam and they mark the IP like spamer.
At sight of this problem I see clear that we will not be able to use this method in the future (and in Windows either in the present) so I have myself I decide to use the classic method of mail shipment, that is to say, happening through a real smtp server.
This enough difficult me the management of the send-errors in my program, but the mails arrive at least at their destiny.
For it I have as much been using the class jwSMTP that works very well, in linux and Windows, but it has the problem of which the license is GPL. Well, for my it is not problem, but it would prefer to use a class better integrated in U++.
The case is that I have extracted of the class jwSMTP the code that serves to autentificate (to do login) in smtp server, I have added it class to the SmtpMail and.... it works!
I have created a class new "SmtpMailEx" to test here and you the shipment so that you prove it in Windows to see what happens.
If this works, I believe that we could propose to Mirek to add these functions to the original class, and of step to put the messages that are in cheko in English or to use the method of standard translation.
In any case you have the class here.
Nico
-
Attachment: smtpEx.zip
(Size: 4.75KB, Downloaded 2002 times)
|
|
|
Goto Forum:
Current Time: Wed Jun 18 15:46:50 CEST 2025
Total time taken to generate the page: 0.05329 seconds
|