Testing Email Locally with AppEngine Patch on Windows

Fri, Mar 5, 2010

Tech Tips

If you need to get email working on your windows dev machine for Google AppEngine, here is one method:

  1. Download Fake Sendmail for Windows. Unzip the files and copy them into a new folder.
  2. Add this new folder to your windows PATH, by right clicking on My Computer -> Properties. Click Advanced Tab -> Environmental Variables. Edit the PATH variable under System variables. Append your path to the end of the string. Do not replace the existing paths, just add it to the end preceded by a semi colon. Ex: “;c:\apps\fakesendmail”
  3. In your fakesendmail folder, you must configure the “sendmail.ini” file. You have two choices:
    • Use your own custom smtp server settings (if you have one), by setting “smtp_server”, “auth_username”, “auth_password”, and “default_domain”
    • Use Windows default smtp service by setting “smtp_server” to “C:\Inetpub\mailroot\Pickup” and “default_domain” to “localhost”. This second choice will not send your emails but most likely will store your emails in the “C:\Inetpub\mailroot\Queue”.
  4. Open a new command console (must reopen the console to pick up the new path variable). Run the appengine patch from your apps root folder with the following argument:
    “manage runserver –enable_sendmail”

Some Additional Info:
This will resolve the error message “SMTP AUTH extension not supported by server”.

These steps were derived from this google discussion.

Bookmark and Share
,

Comments are closed.