Yeah, I suppose I could just specify the host and scheme inline, thanks for the tip.
The emails are generated using a view template, which the mailer routine (called from cron every minute) retrieves with a call to response.render(). They're then posted to a PHP webservice which does the actual mailing. I set it up that way because for some reason the python mail service wasn't sending emails properly when they were sent to a mobile device (e.g. [email protected]). On Saturday, March 3, 2012 4:42:48 PM UTC-7, Anthony wrote: > > How are the emails being sent? Note, you can also do URL(..., > scheme='http', host='www.mysite.com'). > > Anthony > > On Saturday, March 3, 2012 6:23:48 PM UTC-5, Serpent_Guard wrote: >> >> I'm a bit of a novice when it comes to configuring apache. I followed >> the instructions >> here<http://www.scribd.com/doc/26436821/Howto-deploy-Web2py-on-amazon-Ec2>to >> install web2py on an EC2 instance, and it works great. Unfortunately, >> it seems web2py still thinks it's at http://127.0.0.1:8000/, since >> that's what comes out when I use URL(...,scheme=True,host=True). This >> isn't a problem for regular internal use since I can leave those flags off, >> but in emails they're necessary. At the moment I'm solving this by >> including a <base> element in the email head, but it'd be great if I could >> get by web2py install to know where it's at. >> >> Like I said, I'm a novice at configuring apache. Not sure if I'm using >> mod_proxy or mod_wsgi, I guess whatever was set in the ubuntu setup script >> at http://web2py.google.code.com/hg/scripts/setup-web2py-ubuntu.sh . >> Any help would be much appreciated. >> >

