Try something like this if you are using simple text email:
line1 = T('This is line one')
line2 = T('This is line two')
message = '%s\n%s' % (line1, line2)
mail.send(to='[email protected]',
subject='hello',
# If reply_to is omitted, then mail.settings.sender is used
reply_to='[email protected]',
message=message)
Here "\n" do the new line.
In HTML text email, use "<br /> instead of "\n"
2014-04-16 17:36 GMT-04:30 Kenneth <[email protected]>:
>
>
> Hello,
>
> text
>
> send.mail()
>
>
> Kenneth
>
>
> what format are you sending the emails ? text or html ? What's the used
>> function to send the emails ?
>>
>> On Wednesday, April 16, 2014 2:20:02 PM UTC+2, Kenneth wrote:
>>>
>>> Hello,
>>>
>>> I'm trying to send email that is made from about 6-7 T('texts'). But
>>> newlines are not inserted into the emails.
>>>
>>> How should I do that?
>>>
>>>
>>> Kenneth
>>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.