[rt-users] From: on the outgoing emails

charlycr74 at yahoo.com.ar charlycr74 at yahoo.com.ar
Tue Apr 9 16:40:41 EDT 2013


This works now, my next question is:

Is it possible to replace the "Company Name" by the Queue name or a Custom Field on the ticket?

Thank you, Charly

 De: Thomas Sibley <trs at bestpractical.com>
Para: rt-users at lists.bestpractical.com 
Enviado: martes, 9 de abril de 2013 16:17
Asunto: Re: [rt-users] From: on the outgoing emails
On 04/09/2013 12:37 PM, charlycr74 at yahoo.com.ar wrote:
> Hi,
> I would like to have a specific From on the outgoing emails hiding the
> name of the users.
> I would like to have something customized like this:
> From: "Company Name" <queue-email at company.com>
> I try this:
>                 Set($FriendlyFromLineFormat, "\"Company Name\" <%s>");
> I get:
>                 From: "Company Name" <"FirstName LastName"@localdomain.localdomain>

Try this:

    Set($FriendlyFromLineFormat, '"Company Name" <%2$s>');

the format string is a printf format, so you can choose which positional
parameter to substitute using the standard conventions (N$ in front of
the format type).

Note I changed your Set() line to use single quotes to avoid escaping
the double quotes and $.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130409/cf808744/attachment.htm>

More information about the rt-users mailing list