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!
|