Jump to content
Forum Roportal
Sign in to follow this  
gr3cu2008

Componenta nmsmtp, e calc meu diliu !? lol

Rate this topic

Recommended Posts

Daca ar dori sa ma ajute si pe mine cineva, ias fi recunoscator, am delphi 6 si nu inteleg de ce imi da o eroare , pentru ca am cautat codul sursa pe net si lam gasit absolut la fel ;) , am introdus si componenta nmsmtp. :cry: iata despre ce e vorba:

 

procedure TForm1.Button1Click(Sender: TObject);

begin

NMSMTP1.host :='Edit1.Text';

NMSMTP1.UserID:='Edit2.Text';

nmsmtp1.Password:='Edit8.Text';aici imi apare eroarea, nu mere sa se compileze imi arata la fel, e copiat exact la fel din codul meu sursa

NMSMTP1.Connect;

NMSMTP1.PostMessage.FromAddress:='Edit3.Text';

NMSMTP1.PostMessage.ToAddress.Text:='Edit4.Text';

NMSMTP1.PostMessage.ToCarbonCopy.Text:='Edit5.Text';

NMSMTP1.PostMessage.Body.Text:='Memo1.Text';

NMSMTP1.PostMessage.Attachments.Text:='Edit7.Text';

NMSMTP1.PostMessage.Subject:='Edit6.Text';

NMSMTP1.SendMail;

ShowMessage('Mail-ul a fost trimis!');

NMSMTP1.Disconnect;

Share this post


Link to post
Share on other sites

Mai exact imi apare:

[Error] Unit1.pas(37): Undeclared identifier: 'Password'

[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'

 

si nus ce inseamna , ma poate ajuta cineva? pls pls....

Share this post


Link to post
Share on other sites

Cauta in help la dephi daca nu cumva variabila are alt nume, e posibil ca tu si cel ce a postat codul sa aveti versiuni diferite de Delphi. Mesajul spune ca in definitia clasei nmsmtp nu e definita nici o variabila cu numele Password.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×