Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jun : Sending email with ".co.uk" problem - D7/indy10.0.52
| Subject: | Sending email with ".co.uk" problem - D7/indy10.0.52 |
| Posted by: | "Jacques" (jacques.no..@btinternet.com) |
| Date: | Tue, 7 Jun 2005 01:44:27 |
This is very strange, whenever i use a domain ending in .co.uk my mail
application does not send the message, everything else seems to work fine.
the exception that is raised is :
EIdSMTPReplyError.CreateError(NumericCode,FEnhancedCode,Text.Text);
ReplyError with message".
I assume the dot refers to the .co.uk bit of the domain?
Here's the code doing the sending:
....
//setup SMTP
sen.Host :=host1 ;
sen.Port := 25;
sen.Password:=pw1;
//setup mail message
Mess2.From.address :=ledFrom.Text;
Mess2.Recipients.EMailAddresses:=ledTo.Text;
Mess2.CCList.EMailAddresses:=ledCC.Text;
Mess2.Subject :=ledSubject.Text;
Mess2.Body.Text := Body.Lines.Text;
if FileExists(ledAttachment.Text) then
TIdAttachmentfile.Create(Mess2.MessageParts, ledAttachment.Text);
//send mail
try
try
sen.Connect;
sen.Send(mess2);
//playsound('suc.wav',0,SND_ASYNC);
showmessage('Message successfully Sent at ' + datetimetostr(td) + ' to
' + ledto.Text +'!');
except //on E:Exception do
showmessage('Some fault');
end;
finally
if Sen.Connected then
Sen.Disconnect;
end;
Thanks