Hi All,
I am having some troubles and hope someone can enlighten me.
I have a contact form with a ListboxField. The user chooses an option and based on this option I need to send an email to different people with different subjects.
I have code here http://pastie.org/1337807
Currently the selection chooses the email reciepient but I am left with a generic subject - $email->setSubject('Website Contact');
Is there any way to have the email subject dynamically chosen aswell? Something like $email->setSubject($data['Subject']); - this obviously will set as the email address.
I'm probabbly approaching from the wrong direction.
Hope I have explained clearly.
Neilos