I have succefully setup my ASP app to be drop the email to a maildrop box designated by the ISS. I can see the email in the folder which I have specified. This is what I have specified in my IIS management settings:
E-mail address: administrator#aspdotnet-suresh.com
Store e-mail in pickup directory: C:\temp\maildrop
Will this send an email to my account specified in the app? This is a password reset system and the email document inside the folder has the correct to and from address but I don't know how to install the actual SMTP server and not sure if the IIS Manager will make it happen by dropping it in this folder?
Sorry, I am new to this stuff
If you want the email delivered, you want to use an SMTP relay [of some sort]. Placing it in the maildrop assumes that there is some other protocol which is going to be used to retreive it from that maildrop (ie. POP3).
If you want to talk about how to configure IIS and SMTP, your question will probably get better results on www.serverfault.com.
Related
I'm looking for just some orientation about how to control that an ASP.NET web site could be only loaded from specific IP client addresses. I mean: the user is only allowed to load web app from its PC at office, but can not load web app from other PC.
It seems obvious that the login web page should get the IP address or PC name from the client and check with a database query if that IP address plus the userid account match its database record.
However, catching the IP address with
Request.ServerVariables("REMOTE_ADDR")
could get a IP address distorted by a firewall, NAT or router configuration. So that option is discarded.
Other option that I've heard is about creating a dll file with a name like "license.dll", and store inside that dll file some credential or IP address or serial number. That data plus the userid account have to be stored in database . When user loads the web page, it should read first that dll file and get the credential inside it, make a query to database and match userid account and dll credential. If matching is correct, then web page is loaded.
Is it possible to store some credential in a dll file and make the web page able to read that dll?
EDIT:
There is a web app that works in the same way I explained:
In order to access that web app with userid and password, for the first time, you have to install at your PC a client side certificate and a dll file. After that, you can only access this web app from that PC and is not possible to get access with your userid and password from other PC.
Setup a DMZ around the server. Only those machines that are part of the DMZ will be able to connect to the server. Another option is NTML with Windows Authentication. I don't think the IP address solution is a good option.
From what I've gathered, mail won't work offline using WAMP unless set up. So right now I have users that aren't activated. I'm not able to log in(or register) to wordpress as a registered user to create a specific additional functionality. Is there a way to get around this without taking it online?
Additionally can you collect more information from a registered user via additions to the form? How much access do you have to this information? The end goal is to try and keep specific information only visible to certain registered users. Only registered users that I allow would have access.
The Online/Offline of WAMPServer only changes the access allowed to Apache
Online = Apache accepts access from any ip address
Offline = Apache only accepts connections from the local PC i.e. the one running WAMPServer
The reason you cannot send emails is that Windows does not have a mail server installed by default like a *nix system. If you want to send emails you have to install some sort of email server that PHP can pass emails to.
There are a number that you can use :
I prefer hMailServer but it is a little complicated to configure unless you understand a bit about mail servers
Alternatively you could try fake Sendmail for windows
I added the gmail smtp configuration to the alfresco share. Whenever I created a new site. Whenever I invite someone a url is sent to the corresponding person but the url which is send is the problem. It is sending the local address which when clicked by the user in different computer will take to his localhost instead of alfresco share.
How to change this url. I am using alfresco share 4.2e,CE.
You need to set the properties of Alfresco's sysAdmin subsystem in your alfresco-global.properties:
http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/concepts/sysadmin-subsystem-props.html
e.g.:
share.host=myalfresco
share.port=80
Edit the file alfresco-global.properties
In Linux
/opt/alfresco-5.1/tomcat/shared/classes/alfresco-global.properties
In Windows
C:\alfresco-community\tomcat\shared\classes\alfresco-global.properties
Change 127.0.0.1 for ip address or hostname (for Share context only)
share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http
Restart service alfresco
I have an ASP.NET 2 application that sends email to specific users to notify them of certain events. The application uses the System.Net.Mail.SmtpClient class to construct the email and send it.
Whilst developing and testing the application I'd like to make sure we aren't sending emails to the production email addresses. I'd like to avoid branching in the application code (e.g. using compiler directives and build configurations) as this means not all code paths can be tested until we deploy the application to the production environment. Ideally I'd like to configure the application in development to use a development SMTP server host that takes all email and sends it to a specific address regardless of the address it was instructed to send to. Is this possible using Windows XP / IIS 5?
What other approaches could be taken in this scenario.
One aproach is get like a flag test or something, so that according to whats configured for example in web.config you send the email to test email assigned by you.
But in my opinion, this is a bit of hack, an alternative and more recommended solution would be set DeliveryMethod to SmtpDeliveryMethod.SpecifiedPickupDirectory in web.config and specify a directory for your messages to be saved, so instead of actually sending the email, you just create it and place it in a folder so you can check it out. This way you can have one web.config for testing and the other one for production that has DeliveryMethod set as Network with all production smtp settings.
We have been running an ASP application in local intranet using IIS7 and now have requirement to get Client computer name and logged user name, so that we can show his home page according to his setting. I did search on internet but did not find any solution yet. I also tried using LOGON_USER server variables but it works fine when I run using localhost but not when use IP Address (Return blank value). I also enabled window authentication and disabled anonymous but I prompt for user name and password even I did not set user name and password.
You will not be able to determine the computername directly. You will need to perform a reverse DNS lookup on the client's IP. Check out the link below from ASP101 to accomplishing this in ASP classic.
As far as the username, you will need to enable authentication in IIS otherwise all incoming requests will be anonymous. If you are running in a trusted environment, setup IIS for "Integrated Windows Authentication". This will allow the client's current user information to be used to authenticate to your website without a userid/password prompt. Note that integrated authentication is not part of the default IIS7 install.
Good luck.
ASP based Reverse DNS Lookup
http://www.asp101.com/articles/jason/reversedns/default.asp
Integrated Windows Authentication in IIS6 and IIS7
http://blogs.iis.net/nitashav/archive/2010/03/12/iis6-0-ui-vs-iis7-x-ui-series-integrated-windows-authentication.aspx
You can also achieve this by using WMI, however the remote computer and logged on user must be part of a domain that you have the administration credentials for. You will also need to use reverse DNS to find out the computer name, which #jking89 has given a great reference to above. Take a look at the WMI Win32_ComputerSystem class, here http://msdn.microsoft.com/en-us/library/aa394102(VS.85).aspx. Hope this helps as an alternate solution.