By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,876 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,876 IT Pros & Developers. It's quick & easy.

Send a mail with System.Net.Mail.SmtpClient

P: n/a
hi, im doing a aplication in asp.net 2.0 and i want send an automatic
mail when the users do an operations. i use the library
System.Net.Mail.MailMessage. and I specify all the properties
(to,from,body,host and port). i want send the mail by another port not
from the port 25. Can i do That?. I dont specify credencials.
i configure the server to the port that i want send in the IIS, but its
not works.

System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The
server response was: 5.7.1 Unable to relay....

this is the error.

Can I send the mail by another port that is not the 25?

thks and sorry for my English!

Aug 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

I have a complete 2.0 (and 1.1) example at my blog.

You have to match the ports.
Your smtp server has to receive messages on a non standard port ........
If that's the case, then you can specify a different port number.

http://sholliday.spaces.live.com/ 2/8/2006 entry

"refv8" <fe**************@globalsis.com.arwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
hi, im doing a aplication in asp.net 2.0 and i want send an automatic
mail when the users do an operations. i use the library
System.Net.Mail.MailMessage. and I specify all the properties
(to,from,body,host and port). i want send the mail by another port not
from the port 25. Can i do That?. I dont specify credencials.
i configure the server to the port that i want send in the IIS, but its
not works.

System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The
server response was: 5.7.1 Unable to relay....

this is the error.

Can I send the mail by another port that is not the 25?

thks and sorry for my English!
Aug 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.