 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sun May 14, 2006 2:15 pm Post subject: NMSMTP - no valid recipients problem |
|
|
Hi. Does anbybody know, why get an error message when I want to send
and e-mail to an another e-mail address. If I use the same address in
from or to, then everything works fine. After I have change the to
atribute to something else it doesn't work, I get this error message:
554 Error: no valid recipients.
I use this source code:
NMPOP31.Host := Trim(host.Text);
NMPOP31.UserID := Trim(userid.Text);
NMPOP31.Password := 'hinstance';
NMPOP31.Port := 110;
NMPOP31.Connect;
NMPOP31.Disconnect;
NMSMTP1.Host := Trim(host.Text);
NMSMTP1.Port := 25;
NMSMTP1.UserID := Trim(userid.Text);
NMSMTP1.EncodeType := uuMime;
NMSMTP1.SubType := mtPlain;
NMSMTP1.PostMessage.FromAddress := Trim(fromaddress.Text);
NMSMTP1.PostMessage.Subject := Trim(subject.Text);
NMSMTP1.PostMessage.FromName := EmptyStr;
NMSMTP1.PostMessage.ToAddress.Text := Trim(toaddress.Text);
NMSMTP1.PostMessage.Body.Assign(body.Lines);
try
NMSMTP1.Connect;
try
NMSMTP1.SendMail;
finally
msgDlgSound('E-mail was succesfully sent to: ' +
Trim(toaddress.Text), mtInformation, [mbOk]);
end;
except
On E:Exception do msgDlgSound('Can''t send e-mail because: ' +
E.Message, mtError, [mbOk]);
end;
NMSMTP1.Disconnect;
Please, it is important! :)
I know that there is 358 topic written about the sample problem, but
nobody answered this kind of question yet, some are from the year of
2003 or older 2001. So again, please, if somebody know a solution for
this.
Many thanks. |
|
| Back to top |
|
 |
Riki Wiki Guest
|
Posted: Sun May 14, 2006 9:15 pm Post subject: Re: NMSMTP - no valid recipients problem |
|
|
On 14 May 2006 06:28:24 -0700, phoenix1mail (AT) gmail (DOT) com wrote:
| Quote: | Hi. Does anbybody know
|
Hoi
Yes but not here.
FYI this newsgroup do not officially exist, that is why there is so few
posts and so few viewers here. The newsgroup you should use is
b.p.d.internet.winsock, and you need to post to the Borland news
groups server.
How to post to Delphi newsgroups:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups> |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|