Solved

TNMSMTP component - "530 authentication required"

Posted on 2008-10-16
4
2,010 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 125 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now