Link to home
Start Free TrialLog in
Avatar of MariusPTA
MariusPTA

asked on

TNMSMTP component - "530 authentication required"

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.Connect;
   NMSMTP1.PostMessage.FromAddress := FromAdress; //'mstander@inteletrack.co.za';
   NMSMTP1.PostMessage.ToAddress.Text := Email1; //'mstander@inteletrack.co.za';
   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. ');
   NMSMTP1.SendMail;
   NMSMTP1.Disconnect;
Thanks.  
Avatar of wd123
wd123
Flag of Belarus image

TNMSMTP don't support authentication, you can use Indy )http://www.indyproject.org/Sockets/wizard/DownloadWizard.EN.aspx) it's have IdSMTP1.AuthType:=atDefault
Avatar of MariusPTA
MariusPTA

ASKER

Thanks, With a bit of strugle I had Download Indy 9, and install in in my Delphi 5.
The only problem is that Indi 9 does not have the AuthType atDefault parameter.
I had  download indi 10, but still strigle to install it as the automatic install on Indi's website 'http://www.indyproject.org/Sockets/Download/Files/Indy10.EN.aspx does noet work.
Will let you know if Indi 10 had an AuthType atDefault option.
ASKER CERTIFIED SOLUTION
Avatar of wd123
wd123
Flag of Belarus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, I believe It is the Sullution, I just cannot get it right to add the INDI 10 components into Delhi 5. I try to compile the things ect, but there is always some problem. The big problem is the Auto installer is not available to down. I had once get it right to install only some of the Core? components.