wuschel_lux
Member
Hi all,
I have a registration form, and I want to send a confirmation e-mail (email plugin). Based on the activity chosen, a different file should be attached. bbs_register___activity_raw is the activity ID.
I tried following code without success, always file A is attached.
I would be happy for all hint and help. Thanks
I have a registration form, and I want to send a confirmation e-mail (email plugin). Based on the activity chosen, a different file should be attached. bbs_register___activity_raw is the activity ID.
I tried following code without success, always file A is attached.
Code:
if("bbs_register___activity_raw" != '12'){
$file[] = 'images/documents/file_A.pdf';
} else {
$file[] = 'images/documents/file_B.pdf';
}
return $file;
I would be happy for all hint and help. Thanks