I've tried to figure out how to add recipients though code. With a little reverse engineering I finally managed to get it to work, but I still have a problem with the property numOfRecipients not getting updated. It's not a biggy but I'm not happy with my solution.
My solution is based on adding recipient directly into the database table, and not through the API. I did this cause I didn't find any way to add recipients through, can this be true?
I've tried to figure out how to add recipients though code. With a little reverse engineering I finally managed to get it to work, but I still have a problem with the property numOfRecipients not getting updated. It's not a biggy but I'm not happy with my solution.
My solution is based on adding recipient directly into the database table, and not through the API. I did this cause I didn't find any way to add recipients through, can this be true?
This is the core of my solution,
DatabaseHandler.GetScalar("spEPiServerMailAddRecipient", txtEmail.Text, false, recipientContainer.ID);
This can't be the best way. How should I do this? I've been looking at the sample code, but that is also based on a lot of db-calls.
I'm running EPiMail 4.4 SP1