Hi!
I have strict on, the variables name is correct. When I set it to $text_mail= 'Testing'; just before inserting it in the msg, it doesn´t fail. I receive this variable from another function. I tried writing the same test-string in it there and then passed it to my "sendmail"-function. It failed again. I have one main function calling the buildText(), then passing 2 params to the sendMail() like shown in the code below.
buildText {
#blabla
return ($out, $text_mail );
}
sendMail {
my $p = { @_ };
my $body = $p->{body};
my $text_mail = $p->{text_mail};
#blabla
}
main_function {
#blabla
my ($body, $text_mail) = buildText();
return sendMail(
body => $body,
text_mail => $text_mail);
|