Good day to All.
I'm new here and hope someone can help me.
I'm using Delphi 5's TNMSMTP component to send E-Mail from my application. I don't receive Email here.
On some Host's, (Like smtp.saix.net) in South Africa all is working good.
Some other hosts (Like smtp.bizmail.yahoo.com), needs Authentication, and I cannot get a way to enable it in the TNMSMTP component.
I get the Error message '530 authentication required'.
Can some please help me on this OR show me some other way to send Email using a host that require authentication?
My code look as follow and work good on some providers.
NMSMTP1.Host := Host; //'smtp.saix.net';
NMSMTP1.UserID := UserId; //'user@Provider.co.za';
NMSMTP1.PostMessage.FromAddress := FromAdress; //'email@example.com';
NMSMTP1.PostMessage.ToAddress.Text := Email1; //'firstname.lastname@example.org';
NMSMTP1.SubType := mtHTML; // or mtPlain'
NMSMTP1.PostMessage.Body.Text := Edit1.text;
NMSMTP1.PostMessage.Subject := 'TEST EMAIL send on '+DateTimeToStr(Now);
NMSMTP1.PostMessage.Body.Add(' Please do not reply to this address. ');