On 8 Jan 2013, at 11:40 AM, Adi <adnan.smajlo...@gmail.com> wrote:
> Hi Jonathan,
> Mine is putting properly company name in front of the address, by using:  
> mail.settings.sender = 'Company', but knowing that you are a guru here, may 
> not be at all what you are looking for... If you wanted I could send you a 
> sample email privately to see if that's what you needed?

I'd appreciate it, thanks. 

> 
> Adnan
> 
> 
> 
> 
> On Tuesday, January 8, 2013 1:32:23 PM UTC-5, Jonathan Lundell wrote:
> I tried to persuade the web2py emailer to use a full name (like: 'My Name 
> <mym...@mail.com>') in the From: header by setting it in the headers 
> argument, but it didn't work: From continued to be set to the value of sender 
> (the bare email address). 
> 
> As I read the code, From is initialized to the value of sender, but should be 
> overridden by headers. And for reference, if I set 'X-From' instead, that did 
> end up in the headers as I would have expected. 
> 
> The Python smtplib suggests that it doesn't mess with the embedded headers. I 
> suppose it could be happening farther down the line, and eventually I'll do 
> some experimentation, but I thought I'd see whether anyone on the list has 
> solved the problem first. 
> 
> 
> -- 
>  
>  
>  


-- 



Reply via email to