I have read some FAQs on System.net.mail but I have not seen a clear explaination of how to set up the email to hit a remote server
We use Godaddy.com for our Email so I want to log on and delivery my outgoing email to them.
Both IIS and .Net allow me to specify server settings - so how should I do this?
1. Tell .net in web.config that my server is "localhost" and then configure IIS SMPT to log onto Godaddy?
2. Tell .Net in Web.Config that my server is the Godaddy server and log on directly from there, bypassing IIS?
IIS SMPT is called a "virtual server" - does that mean it needs to hit a "real" server or can it be used to send real email directly?
if #1 above, should I use the IIS pickup directory or not?
Thanks
Bill
Remove SMTP from IIS. You don't need it for system.net.mail, you just need a SMTP server somewhere that you can send your mail through.
Now, configure system.net.mail, in web.config or elsewhere, to send through the GoDaddy server with the login/password fo your account. Seewww.systemnetmail.com for help on the coding.
Jeff
Thanks,
Perhaps that first sentence should be in the Faq's since I read plenty about using Localhost or 127.0.0.1 which suggesed to me that IIS was necessary.
Bill
Back in the NT4 days with CDONTS, a local SMTP server was required. IIS ships with a SMTP server, so it's always a possibility. But the only real requirement is a SMTP server somewhere that can be reached by the code. Of course, tha can still be Localhost, though if you're on a broadband connection or a dynamic IP many SMTP servers will refuse transactions with you, since the "hobbyist" servers are more likely to be compromised and sending SPAM.
Jeff
0 comments:
Post a Comment