Hi
When users fill out a new ticket, I have it so that the email field is filled automatically from some POST data. This field is used if an alternative email box IS NOT filled in by the user. This alternative field is the primary email address for the ticket if it is completed.
What I would like to do is email both addresses if the alternative field is filled in, but only store the alternative address. I.e.
someone@somewhere.com is the auto filled email address.
another@another.com is the alternative and will be used for all ticket correspondence.
However, when the new ticket email autoresponder is sent, it should go to both addresses - someone@somewhere.com just gets this and no further correspondence.
I hope this makes sense, I'm currently looking at the following in class.ticket.php:
if($email){
//Reply separator tag.
if($cfg->stripQuotedReply() && ($tag=$cfg->getReplySeparator()))
$body ="\n$tag\n\n".$body;
$email->send($ticket->getEmail(),$subj,$body);
}
Thanks