Mautic Community Forums

Lead fields in e-mails

Hi!



First of all, I would like to say, that you are doing a great job and so far I am very pleased with Mautic.



I do however have one question. We created a form and placed it into one of our landing pages. After submission of this form an e-mail is sent to the recipient. In the e-mail, we manually added two “personalization” fields: {leadfield=firstname} {leadfield=lastname}. We are doing this with “custom HTML”, NOT “e-mail builder”. These fields work great, as long as people fill out these fileds in the form. If they do not fill out these forms, the sent e-mail containts raw field code. What we expected was, that in such cases nothing would appear in place of this code.



For example, this is how the header of our e-mail looks like:



Hi, {leadfield=firstname} {leadfield=lastname}



If a visitor fills out these fields in the form, the sent mail looks like this:



Hi, John Doe



If a visitor does not fill out these fields, the sent mail looks like this:



Hi, {leadfield=firstname} {leadfield=lastname}



We would like it to be like this:



Hi,



(nothing else).



Thank you for your answer!



Cheers,

Rok Dominko

PNV Group

Hi!

First of all, I would like to say, that you are doing a great job and so far I am very pleased with Mautic.

I do however have one question. We created a form and placed it into one of our landing pages. After submission of this form an e-mail is sent to the recipient. In the e-mail, we manually added two “personalization” fields: {leadfield=firstname} {leadfield=lastname}. We are doing this with “custom HTML”, NOT “e-mail builder”. These fields work great, as long as people fill out these fileds in the form. If they do not fill out these forms, the sent e-mail containts raw field code. What we expected was, that in such cases nothing would appear in place of this code.

For example, this is how the header of our e-mail looks like:

Hi, {leadfield=firstname} {leadfield=lastname}

If a visitor fills out these fields in the form, the sent mail looks like this:

Hi, John Doe

If a visitor does not fill out these fields, the sent mail looks like this:

Hi, {leadfield=firstname} {leadfield=lastname}

We would like it to be like this:

Hi,

(nothing else).

Thank you for your answer!

Cheers,
Rok Dominko
PNV Group

Hello!

that is great question. The email builder will be redesigned in the next release. I tested similar use case as you described on the latest development version and custom email does not display the field code if the field is empty.

The next version should be released this week.

HI!

Thank you very much! Looking forward to the new release then!

Cheers,
Rok Dominko