Package src :: Package gui :: Module email_sender
[hide private]
[frames] | no frames]

Module email_sender

source code

The module contains the function for sending email.


Author: Juho Tammela

Functions [hide private]
 
index(req)
The main function is called by a JavaScript file asynchronously.
source code
Variables [hide private]
  __package__ = 'src.gui'
Function Details [hide private]

index(req)

source code 

The main function is called by a JavaScript file asynchronously. It sends email to the user.

Email address and the message body is stored in Request object.

Parameters:
  • req - Mod_Python request object holding the information given in the Ajax call.
Returns:
The string to indicate success or failure in sending the email. The string can be parsed as XML because of Internet Explorer.

Internet Explorer wants XML as response, else it thinks something went wrong when it tries to parse xml out of the response and doesn't succeed!