Sign in | Join
Last post 10-22-2009 2:59 PM by fxjamy. 7 replies.
Sort Posts: Oldest to newest Newest to oldest
I'm getting an System.InvalidOperationException: The SMTP host was not specified. when I try to use 2.0 password reset. I am using hashed password and when it trys to send email with new password I getting the above error
Thanks
I believe that you need to create an entry in your web.config file for the SMTP Server you will be using; place this entry below the </system.web> tag and fill out the entries required. You may or may not need the password and userName fields filled out if you are supplied with a SMTP server from your hosting company. <system.net> <mailSettings> <smtp from="YOUR_FROM_ADDRESS_HERE"> <network host="SMTP_SERVER_NAME_HERE" password="" userName=""/> </smtp> </mailSettings> </system.net> - Will
<system.net> <mailSettings> <smtp from="YOUR_FROM_ADDRESS_HERE"> <network host="SMTP_SERVER_NAME_HERE" password="" userName=""/> </smtp> </mailSettings> </system.net> - Will
<mailSettings> <smtp from="YOUR_FROM_ADDRESS_HERE"> <network host="SMTP_SERVER_NAME_HERE" password="" userName=""/> </smtp> </mailSettings> </system.net> - Will
<smtp from="YOUR_FROM_ADDRESS_HERE"> <network host="SMTP_SERVER_NAME_HERE" password="" userName=""/> </smtp> </mailSettings> </system.net> - Will
<network host="SMTP_SERVER_NAME_HERE" password="" userName=""/> </smtp> </mailSettings> </system.net> - Will
</smtp> </mailSettings> </system.net> - Will
</mailSettings> </system.net> - Will
</system.net>
- Will
Thanks ..that fixed it..
David
Hi friends,
I have a doubt here..
whighfield: <smtp from="YOUR_FROM_ADDRESS_HERE"> <network host="SMTP_SERVER_NAME_HERE" password="" userName=""/>
<network host="SMTP_SERVER_NAME_HERE" password="" userName=""/>
If i wanna mention "from address" in textbox, how can i mention it here?
And host address what should i mention here?
Please clear my doubt..
In the passwordrecovery you can add/change this:
<MailDefinition From="info@test.com" IsBodyHtml="True" Subject="Uw toegangsgegevens"> </MailDefinition>
would my email host; "smtp.orangehome.co.uk" go in the network host=?
What goes in the smtp form section, example please?
You can put it like this, i use localhost for smtp you need to change that in your smtp:
<system.net> <mailSettings> <smtp from=no_reply@test.com> <network host="localhost"/> </smtp> </mailSettings> </system.net>
thanks.
That works, i don't get that error anymore.
But the purpose is still not solved. Whenever i try to send mail, its not delivered, and stored in : c:\Inetpub\mailroot\Queue
I'm running my code on - iis 5.1 on NTFS.
please help