So, meanwhile as I got the mais to send I'm running into the next problem … my custom fields are not populated.
Wherever {$fields.MYFIELD} should be populated I only receive "".
So, first I thought perhaps the variables don't fit (because I uploaded the newsletter recipients and the fields were added automatically … if I remember this right, it's been a while). Hence I deleted the custom fields, re-added them again and typed the extra-field-data manually into the recipients (lucky there weren't too many).
Still no joy.
At some point I figured I'll try to pull all the data what is in the call and put a {get_template_vars} into my message body.
Now I got following data with the newsletter-email:
Code: Select all
… various … other … data … here …
]
$fielddefs (array) = [
.Anrede (object of type: nms_fielddef) = { }
.Vorname (object of type: nms_fielddef) = { }
.Nachname (object of type: nms_fielddef) = { }
]
$subject (string) = MySubject
$username (string) = MyUserName
$email (string) = mymailaddress@example.com
… some … more …other … data …
Okay, now I'm officially confused and ask you guys for a little hint.
The custom fields ARE there (I can clearly see them in the dump from the get_template_vars), but appear to be empty?
I mean - shouldn't there within the brackets be more data then?
Usually?
Like, if I use that in the regular template I see stuff in the second, third and so forth level, right?
Also in the other portion of the transmitted data it goes into the deep (or is that in any way a different kind of data?):
Code: Select all
…
$encoding (string) = utf-8
$message (array) = [
.messageid (string) = 1
.uniqueid (string) = 3e66da0f2dfbdeaf1df38c6f7d42b8fb
.subject (string) = 2020-12-28
.message (string) = {get_template_vars}
{$fields.Anrede} {$fields.Vorname} {$fields.Name},
this is a test message only.
So, whatever I enter there, remains there. Seems to be fully functional.
But still I can't pull the data, neither with {$fields} nor with {$fielddefs} and not even with god-mode {get_template_vars}?
Gee. I can't help my self any more.
Thanks for your help!