|
|
|
|
| Author |
Messages |
|
Rodney Joyce Gold Membership
 Nuke Master Posts:307


 |
| 2/18/2007 2:46 AM |
|
Hi Scott,
I am now thinking of using Private Messages even more in the ST product suite - for example, I am working on a "My Friends" functionality for the ST UserProfile module, and I want to send a "Friend Request" email to the user you want to add as your friend.
I then thought that instead of reinventing the wheel I could just call the PM CreateMessage (or whatever) and it would handle the sending et.c of the message. The advantages are that the use gets a consistient interface and all their internal mails are stored in one place.
I have the same requirement for inviting people to events, groups and leagues, but I think it could be quite a simple requirement.
Obviously I don't want to create work for you - I just wanted to hear your thoughts on this - do you expose the CreateMessage function in your assembly? I would have to reference the .dll but I would wrap it in a Setting so that they have to have it installed.
What do you think?
|
|
Thanks Rodney Smart-Thinker & The DotNetNuke Directory PokerDIY - Free tools and leagues for home poker players |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12598


 |
| 2/18/2007 3:06 AM |
|
A few methods, you could reference the assembly or directly call the stored proc.
Let me know if there is anything you need from my side to achieve this. |
|
Scott McCulloch Site Administrator |
|
|
Rodney Joyce Gold Membership
 Nuke Master Posts:307


 |
| 2/18/2007 3:20 AM |
|
| Hmm - so if I called the SP directly would it handle the actually sending by email and doing all the correct business logic (send email, put in Sent items etc) - or would it just tell the user that they have a new message (with the popup, if enabled). I'll start going through your source a bit - if this works it could really be pretty cool, but it may need to handle bulk sending... |
|
Thanks Rodney Smart-Thinker & The DotNetNuke Directory PokerDIY - Free tools and leagues for home poker players |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12598


 |
| 2/18/2007 3:39 AM |
|
No you would need the assembly for that, and actually, now that I think of it, it wouldn't work too well because it uses the "settings" for that module instances. But if you referenced it, those settings wouldn't exist.
I think the best method might be to create some kind of API. |
|
Scott McCulloch Site Administrator |
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|
|
|