Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi all,

I'm sure this is an easy answer, but I'm lost. I'm wanting to know if there is a way to format the success message that gets emailed to the admin person after the form is filled out? In my tests everything works great, but the first 2 lines are indented, which just makes the email look a bit wonky.

You can see in my attached example what I mean.

Is there a way to format this? Thanks in advance!

Attachments

Hi,

The <cms:send_mail> outputs verbatim whatever text is enclosed within it - that includes all white-spaces too. So what you are seeing are the white-spaces present in your template itself. Please make those indented lines flushed left to remove any white-spaces and you'll get your desired formatting.

That said, there was one breaking change in v2.0 with regards to how <cms:send_mail> deals with newlines. Please see the 'Misc.' section at almost the end of the following post for more details - viewtopic.php?f=5&t=10241

Hope this helps.
2 posts Page 1 of 1
cron