Commits

Scott Anderson committed 7a534cb

Screwed up 0.7.1 by introducing a new bug. This should fix it.

Comments (0)

Files changed (9)

+[0.7.2] - 8/5/2012
+  * Accidentally released a bugged 0.7.1, so it's now fixed and had to release
+      this new version to fix it.  Oops!
+
 [0.7.1] - 8/5/2012
   * The MVC MailerBase now inherits from Controller instead of ControllerBase. This
       is an attempt to fix issue #46 that outlined problems with the SMTP client

create-new-release.bat

+@ECHO OFF
+CLS
+
+SET NewVersion=
+SET /P NewVersion=What is the new version called? 
+SET MvcDir=%CD%\src\ActionMailer.Net.Mvc\bin\Release
+SET PostmarkDir=%CD%\src\ActionMailer.Net.Postmark\bin\Release
+SET StandaloneDir=%CD%\src\ActionMailer.Net.Standalone\bin\Release
+SET NgMvcDir=%CD%\nuget\base\ActionMailer
+SET NgPostmarkDir=%CD%\nuget\base\ActionMailer.Postmark
+SET NgStandaloneDir=%CD%\nuget\base\ActionMailer.Standalone
+
+ECHO Performing clean release build...
+
+CMD /c C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe %CD%\src\ActionMailer.Net.sln /t:Clean /p:Configuration=Release
+CMD /c C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe %CD%\src\ActionMailer.Net.sln /t:Rebuild /p:Configuration=Release
+
+ECHO Compressing ActionMailer.Net.Mvc to Zip...
+
+CMD /c "%PROGRAMFILES%\7-Zip\7z.exe" a -tzip %MvcDir%\ActionMailer.Net.Mvc-v%NewVersion%.zip %MvcDir%\*.dll %MvcDir%\*.pdb %MvcDir%\*.txt %MvcDir%\*.xml
+CMD /c "%PROGRAMFILES%\7-Zip\7z.exe" a -tzip %PostmarkDir%\ActionMailer.Net.Mvc-v%NewVersion%.zip %PostmarkDir%\*.dll %PostmarkDir%\*.pdb %PostmarkDir%\*.txt %PostmarkDir%\*.xml
+CMD /c "%PROGRAMFILES%\7-Zip\7z.exe" a -tzip %StandaloneDir%\ActionMailer.Net.Mvc-v%NewVersion%.zip %StandaloneDir%\*.dll %StandaloneDir%\*.pdb %StandaloneDir%\*.txt %StandaloneDir%\*.xml
+
+ECHO Creating NuGet Packages...
+
+CMD /c nuget pack %NgMvcDir%\ActionMailer.nuspec -Version %NewVersion% -BasePath %NgMvcDir% -OutputDirectory %CD%\nuget\output
+CMD /c nuget pack %NgPostmarkDir%\ActionMailer.Postmark.nuspec -Version %NewVersion% -BasePath %NgPostmarkDir% -OutputDirectory %CD%\nuget\output
+CMD /c nuget pack %NgStandaloneDir%\ActionMailer.Standalone.nuspec -Version %NewVersion% -BasePath %NgStandaloneDir% -OutputDirectory %CD%\nuget\output
+
+ECHO Release v%NewVersion% complete!

nuget/base/ActionMailer.Postmark/ActionMailer.Postmark.nuspec

 <package> 
   <metadata> 
     <id>ActionMailer.Postmark</id>
-    <version>0.7.1</version> 
+    <version>0.0.1</version>
     <authors>Scott Anderson</authors>
     <summary>ActionMailer integration with the Postmark mail sending service.</summary>
     <description>ActionMailer.Net aims to be an easy, and relatively painless way to send email from your application. The concept is pretty simple. We can render HTML by utilizing some pretty snazzy view engines, so why can't we do the same thing for email?</description> 

nuget/base/ActionMailer.Standalone/ActionMailer.Standalone.nuspec

 <package> 
   <metadata> 
     <id>ActionMailer.Standalone</id>
-    <version>0.7.1</version> 
+    <version>0.0.1</version>
     <authors>Scott Anderson</authors>
 	<summary>A simple library to allow you to render emails using the Razor view engine.</summary>
     <description>ActionMailer.Net aims to be an easy, and relatively painless way to send email from your application. The concept is pretty simple. We can render HTML by utilizing some pretty snazzy view engines, so why can't we do the same thing for email?</description> 

nuget/base/ActionMailer/ActionMailer.nuspec

 <package> 
   <metadata> 
     <id>ActionMailer</id>
-    <version>0.7.1</version> 
+    <version>0.0.1</version>
     <authors>Scott Anderson</authors>
 	<summary>An MVC 3-based port of the Rails ActionMailer library to ASP.NET MVC. The goal is to make it easy and relatively painless to send email from your application.</summary>
     <description>ActionMailer.Net aims to be an easy, and relatively painless way to send email from your ASP.NET MVC application. The concept is pretty simple. We render HTML by utilizing some pretty snazzy view engines, so why can't we do the same thing for email?</description> 

nuget/output/ActionMailer.0.7.2.nupkg

Binary file added.

nuget/output/ActionMailer.Postmark.0.7.2.nupkg

Binary file added.

nuget/output/ActionMailer.Standalone.0.7.2.nupkg

Binary file added.

src/ActionMailer.Net.Mvc/MailerBase.cs

             Attachments = new AttachmentCollection();
             MailSender = mailSender ?? new SmtpMailSender();
             MessageEncoding = defaultMessageEncoding ?? Encoding.UTF8;
+            if (System.Web.HttpContext.Current != null)
+                HttpContextBase = new HttpContextWrapper(System.Web.HttpContext.Current);
         }
 
         /// <summary>