SmtpClient problem

  • Thread starter Thread starter Torben Laursen
  • Start date Start date
T

Torben Laursen

My program needs to be able to send e-mails back to me.
It is all working fine.
I use my own SMTP server with username and password given.

But on some customers computers I get the error: "Mailbox name not allowed.
The server response was: sorry, that domain isn't allowed to be relayed thru
this MTA".

The simples solution would be to use the SMTP that the customer is using,
but how do I get my hand on what that is?

Thanks Torben
 
Brian,

Thanks for the link.

However I don't see how this can be used in a real world application since I
don't have access to all my customers SMTP settings.
So it will not solve the problem.

Regards Torben
 
Typically you would solicit for the customer's SMTP server during
installation, and use that for sending email. Remember there is usually an
IT department responsible for managing SMTP configuration to ensure email is
relayed appropriately and that firewall settings are set accordingly. Using
your own STMP server is usually futile since the IT department are unaware
of its existence and won't keep it updated.

Brian
 
Thanks all.
I am checking out the links but I am also looking into WCF in C# version 3.0
to replace the use of SMTP

Regards Torben


28 Feb 2007 03:51:23 -0500 said:
However I don't see how this can be used in a real world application since
I
don't have access to all my customers SMTP settings.
So it will not solve the problem.

See if this link can be of any help for you.

http://www.codeguru.com/forum/showthread.php?t=343810


Best regards
 
Back
Top