Tmail2000 research-demo bug where email cannot be sent

Source: Internet
Author: User

I studied tmail2000 today and found that it is enough to send an email for his demo.

It is found that every time [Save fields to header], an empty item is always added to the mtonames list. The message returned by sending an email is also bad address XXXX.

Later tracking found

Function tsmtp2000.sendmessageto (const from, dests: string): Boolean;

In this method, it does not care whether the dests item is empty

For Loop: = 0 to sdests. Count-1 do
Begin
Fsockettalk. Talk ('RCPT TO: <'+ sdests [loop] +'> '#13 #10, #13 #10, strcpt );
Fsockettalk. waitserver;

 

Then I added

For Loop: = 0 to sdests. Count-1 do
Begin
If sdests [loop] = ''then continue; // Add By mofen

Fsockettalk. Talk ('RCPT TO: <'+ sdests [loop] +'> '#13 #10, #13 #10, strcpt );
Fsockettalk. waitserver;

......

Everything is normal. It seems that tmail2000 is not charged or not carefully done.

Today, I only studied the function of sending emails. I have not studied the function of receiving emails.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.