Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emailing problem with TidMessage [D7/INDY/EMAIL]

Status
Not open for further replies.

StellaIndigo

IS-IT--Management
Sep 19, 2002
118
GB
OK I've got an odd message deleivery problem with an app. (delphi 7, using TIdSMTP and TIdMessage, Win2K and Exchange 5.5)

When the recipient is within my domain everything works OK. If however I address someone outside my domain I get a delivery failure. Outlook to the same external address from the same machine works fine.

So this works OK:

myMessage := TIdMessage.Create( nil );
toRecipient := myMessage.Recipients.Add;
toRecipient.Name := 'Me';
toRecipient.Address := 'me@mycompany.co.uk';
.. do the send ..

While this will fail:

myMessage := TIdMessage.Create( nil );
toRecipient := myMessage.Recipients.Add;
toRecipient.Name := 'Me';
toRecipient.Address := 'me@athome.co.uk';

Any ideas

Ta

There are 10 types of people in the world. Those that understand binary and those that don't.
 
OK sorted this problem.

As a good sysadmin I have relay/forward SMTP traffic turned OFF on my exchange server. I've now changed it to authenticated users only and used

idSMTP.AuthenticationType := atLogin;
idSMTP.Username := 'myname';
idSMTP.Password := 'mypassword';

on the TidSMTP object and it works ok.





There are 10 types of people in the world. Those that understand binary and those that don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top