Hi,
When using the password recovery control this is the error I get
"SMTP host was not specified."
Where do I set this please?
Thanks
I think I have managed to fix the problem (Partially).When using the password recovery control it seems that the password gets sent by email only to the users that have specified an email address outside the office and not the ones inside the office.
What is wrong please?
Thanks
Did you set up SMTP and/or specify a SMTP server for this site?
Jeff
Here is what I did:
placed this in web.cofig
<
mailSettings><
smtpfrom=username@.test.org.uk><
networkhost="127.0.0.1"password=""userName="" /></
smtp></
mailSettings></
system.net>and placed the following line in appsettings:
<
addkey="MailServer"value="127.0.0.1"/>I then went to inetmgr in the run command
Then in properties of default smtp virtual server, in access tab, clicked relay, made sure the option for all except the list below is selected. In addition the checkbox at the bottom which is for all all computers... is also checked
Thia is all done from my workstation where I am developing the asp.net 2.0 website
Pplease note that the site does send emails to the external addresses but not the internal ones.
Thanks
Could be a DNS issue. Do you have a mail server internally? If so, is there a MX entry on your internal DNS for hat server, poitning to the internal IP of it?
Jeff
hmmm, I do not know.
If you set up logging, check your SMTP logs to see what may have happened. If not, set it up, test again and then look at the logs.
Jeff
I know for sure that this is to do with a configuration issue because the email does indeed get sent but does not get delivered.
Do you agree?
Thanks
Most likely a configuration error, but whether it's SMTP, DNS, your network, etc. is the question. All your script does is create a message and send it to the SMTP server. If the address is wrong it won't be delivered. If SMTP is incorrectly configured, it won't get delivered. If SMTP can't find the destination it won't get delivered. If the destination is blocked by a firewall, it won't get delivered. If the destination refuses the message, it won't get delivered. There are a ton of possibilties, and you need to narrow them down. You've narrowed it to only internal email recipients. Start checking the internal mail delivery. Log files are a good place to start tracking this. Non delivery reports, messages left in the SMTP queue, messages in the Badmail folder, all can help you.
Jeff
0 comments:
Post a Comment