November Happy Hour will be moved to Thursday December 5th.

Adding recipients

Vote:
 

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 

#41577
Jul 14, 2010 10:35
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.