470,591 Members | 1,869 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

Send a mail with System.Net.Mail.SmtpClient

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
1 1862

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.

Similar topics

2 posts views Thread by Cimento Cola | last post: by
2 posts views Thread by David Lozzi | last post: by
14 posts views Thread by Professor Yonce | last post: by
8 posts views Thread by shapper | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.