email Plugin - attach different files based on conditions

Status
Not open for further replies.

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.

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
 
PHP:
if({bbs_register___activity_raw} != '12'){
   $file[] = 'images/documents/file_A.pdf';
} else {
   $file[] = 'images/documents/file_B.pdf';
}
return $file;
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top