Solved

TNMSMTP component - "530 authentication required"

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

825 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