Add if/else Statement in Message Body – sending image to recipient
-
Hi,
I want to add if/else Statement in the Message Body, so depending on what the person selects (maybe using radio buttons), a specific image will be added to the message body and then sent to them.
I have a radio button with 3 options, and each option has an image with it (for example (1)flower, (2) cats, (3)beautiful landscape). Depending on what the person chooses, one of the image will be inserted into the email message body then being sent to them. So if the person selects the ‘flower’ image option, that image along with other text will be sent to the recipient.
Is it possible to add php code to my theme functions.php to get that to happen? or what other options are there to get this to work?
Thank you
- The topic ‘Add if/else Statement in Message Body – sending image to recipient’ is closed to new replies.