Yes. and the way it is rendered is correct for a web page because the browser knows the hostname already (since you typed it in to request the page). The recipient of the email does not.
On Apr 26, 10:46 am, annet <[email protected]> wrote: > Massimo, > > Isn't the view being rendered by web2py before it's send to the mail > server? > > Regards, > > Annet > > On Apr 26, 4:27 pm, mdipierro <[email protected]> wrote: > > > <img src="http://www.fitwise.nl/ > > mock_crm{{=URL(r=request,c='static',f='crm/media/header.jpg')}}" > > alt="Header" width="600" height="192" /> > > > You know the hostname, the email program does not. > > > On Apr 26, 9:21 am, annet <[email protected]> wrote: > > > > In an html e-mail view I have the following links: > > > > {{=A('View it in your browser', > > > _href=URL(r=request,c='clublocatormail',f='browser_version',args=[item.bedrijfcontactpersoon.bedrijf_id,item.contactpersoon.id]), > > > _target="_blank")}} > > > > <img src="{{=URL(r=request,c='static',f='crm/media/header.jpg')}}" > > > alt="Header" width="600" height="192" /> > > > > When I send the mail from > > > within:https://admin.fitwise.nl/admin/default/design/mock_crm > > > the links in the e-mail read like: > > > > <a target="_blank" href="http://mock_crm/clublocatormail/ > > > browser_version/1/3">View it in your browser</a> > > > > <img src="http://mock_crm/static/crm/media/header.jpg"> > > > > Whereas they should read: > > > > <a target="_blank" href="http://www.fitwise.nl/mock_crm/ > > > clublocatormail/browser_version/1/3">View it in your browser</a> > > > > <img src="http://www.fitwise.nl/mock_crm/static/crm/media/ > > > header.jpg"> > > > > How do I solve this problem? > > > > Kind regards, > > > > Annet. > > > > -- > > > Subscription > > > settings:http://groups.google.com/group/web2py/subscribe?hl=en

