Wednesday, September 25, 2013

How to configure SMTP with IIS 7 and windows server 2008

Make sure that SMTP windows feature is installed on the server. You can verify this by using the following steps :-

Step1 :- Go to control panel
Step2 :- Click on turn windows features on or off
Step3 :- Click on features and see if SMTP is installed. if not then click on Add Features from right top corner.
Step4:- Select SMTP and install it.




Next thing is to check that Simple Mail Transfer Protocol Service is enabled and running on the server. You can check this using following step:
Go to run window (windows icon+R) and type services.msc


Last step is to go to IIS 6.0 Manager from administrator tools and configure SMTP.

In case of any question, just let me know.



Rendering PDF using HTML DIV

Download and install notepad++ for better and advanced features of html and html5. If you have simple notepad.exe then that is enough. I am referring notepad++.


<!DOCTYPE html>
<html>
<head>
<title></title>
<body>
<object data="OneTerms.pdf" type="application/pdf"></object>

</body>
</html>

You can use the height and width as per your design for defined object.

Result :-

IIS 7.5 error: Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list

This is the common error seen with IIS 7 with windows server 2008 R2. Here is the fix :-


Step1 :- Open the command window as an administrator.

Step2 :- Run the following command

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i


Try again to open the web page, you should be good.