"Error sending SMTP mail: need MAIL From: first." makes me think perhaps the order in which the e-mail is composed is wrong? (Perhaps first the recipient and then the sender, in stead of the other way around).
Another thing could be that there is no sender in this specific mail?