Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Dear all,

Is there any way to show display name in send_email function.

I tried doing name<noreply@website.com>

Even tried concat, like

Code: Select all
<cms:set noreply_email="<cms:concat 'name<' k_email_from '>' />" 'global' />


But it fails, i guess it's because of the < > symbols.
Could someone help me to do it properly.

Thanks,
Asha
Hi Asha,

As far as setting the variable (noreply_email) is concerned, your code is doing it correctly.
Even the following does it the same way -
Code: Select all
<cms:set noreply_email="name<<cms:show k_email_from />>" 'global' />

Both will show something like -
Code: Select all
name<contact@yourdomain.com>

So nothing wrong with this part of your code.
We'll have to examine that part where you are trying to use the variable set above within <cms:send_mail>.
Please post it here and we'll test to see what is going wrong.

Thanks.
2 posts Page 1 of 1