Vadik
asked on
how to send mail?
Give me example of using senddoc function of the smtp-component of Delphi2,3.I want to send my file c:\temp\myfile.txt to mail@whom.net.
ASKER
Hi sburck! Unfortunately it doesn't work in D2,3 :-( There is no PostMessage method in SMTP-component.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
procedure TForm1.SendBtnClick(Sender
begin
NMSMTP1.PostMessage.FromAd
NMSMTP1.PostMessage.FromNa
NMSMTP1.PostMessage.ToAddr
NMSMTP1.PostMessage.ToCarb
NMSMTP1.PostMessage.ToBlin
NMSMTP1.PostMessage.Body.A
NMSMTP1.PostMessage.Attach
NMSMTP1.PostMessage.Subjec
NMSMTP1.PostMessage.LocalP
NMSMTP1.SendMail;
end;