>
> Sender's name: Cindy
> Sender's e-mail:  *xx...@gmail.com* 
>
> Hello world! This is where my message text will be.
>
>
For a text-based email, you could do:

message="Sender's name: %s\nSender's e-mail: %s\n\nHello World!..." % (
request.vars.your_name,
    request.vars.your_email)

The "\n" represents a newline (i.e., line break). For an HTML email, do:

message=CAT("Sender's name: ", request.vars.your_name, BR(), "Sender's 
e-mail: ",
    request.vars.your_email, BR(), BR(), 'Hello World!...')

For more complex formatting (either text or HTML based), you can also use 
web2py templates: 
http://web2py.com/books/default/chapter/29/8#Using-the-template-system-to-generate-messages
.

Anthony

Reply via email to