?
Solved

TNMSMTP component - "530 authentication required"

Posted on 2008-10-16
4
Medium Priority
?
2,076 Views
Last Modified: 2013-11-23
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.  
0
Comment
Question by:MariusPTA
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:wd123
ID: 22729931
TNMSMTP don't support authentication, you can use Indy )http://www.indyproject.org/Sockets/wizard/DownloadWizard.EN.aspx) it's have IdSMTP1.AuthType:=atDefault
0
 

Author Comment

by:MariusPTA
ID: 22731193
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.
0
 
LVL 5

Accepted Solution

by:
wd123 earned 375 total points
ID: 22731629
0
 

Author Closing Comment

by:MariusPTA
ID: 31506669
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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question