Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Relay Error in Send Mail in 2.0

Thread Tools

Relay Error in Send Mail in 2.0

Posts: n/a
Hi everyone,

I am trying to send mail to external domains like gmail,hotmail via my
local network exchange server. The code works in .net 1.1 with the
User name and password [user created with full rights on the Exchange
server] provided by the Network admin to me.

Although, I still couldnt figure out the fact that if I send emails to
external domain through outlook which is configured to the same
exchange server, there isnt any problem. But when I did that through
my code, it threw our very own 550 5.7.1 relay error. Thankfully, the
problem in .net 1.1 is solved.

Now, using the same credentials, I want to send the mails through 2.0
but I get the same error.i have tried all the solutions I could find
on the net but in vain. With local host it doesnt throw an error but
the mail ends up in Badmail. Besides I want to use exchange server but
that too isnt working. There isnt any firewall issue. If there was,
then the mail in 1.1 shouldnt be working on the same machine using
same parameters and it doesnt have SSL authentication.

SmtpClient client = new SmtpClient();
client.Host = "localhost"; //If i specify my exchange
server here, it throws an error
client.Port = 25;
client.Credentials = new
System.Net.NetworkCredential("username", "pass");

I really cant understand what the problem is so please any help will
be highly appreciated
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error + Send Mail + ERROR: Failure sending mail. Don Quijote de Nicaragua ASP .Net 5 06-26-2008 01:13 PM
error message when i try to send mail with windows mail using a ya radgey gadgey hl ASP .Net 0 11-25-2007 06:29 PM
Dhcp Relay Agent And Acl On Sw 3750, DHCP Relay Agent and ACL on Sw 3750 Vimokh Cisco 3 09-06-2006 02:16 AM
Mail.SmtpMail.Send won't send to one of my addresses Nathan Sokalski ASP .Net 3 11-23-2005 09:25 PM
HELP.. ERROR: Unable to relay for Tim::.. ASP General 2 06-23-2004 12:45 AM