I noticed there are a couple of bugs in the current version of the smtpmail.p. The proper format for SMTP protocol requires email addresses to be enclosed with <> and the code currently does not put them in the correct format.
The sender address should look like this:
MAIL From: tester@testing.com
The recipient address should look like this:
RCPT To: tester@testing.com
The latest version includes a function called FormatRCPTAddress which is supposed to take in an email address as its parameter and returns the address enclosed in <> and send delivery status. The function as it sits now does neither of these things. I determined the reason why.
FormatRCPTAddress depends on a logical variable called DelReciept which is suppose to represent whether one has requested a delivery reciept or not.
The function never returns the address enclosed in <> because delReciept is false when there is only one sender so the code in the function is never executed.
In the cases where emailFrom and emailTo are being created in set the function is called for the emailTo but not the emailFrom part.
I've attached a document showing screenshots of the way it is programmed now and the way it should be. Hope this helps.