?
Solved

TNMSMTP component - "530 authentication required"

Posted on 2008-10-16
4
Medium Priority
?
2,047 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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.
Suggested Courses

765 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