PersonalMessage.php Question

Started by Matthew K., January 06, 2010, 12:29:38 AM

Previous topic - Next topic

Matthew K.

What in PersonalMessage.php limits personal messages to the forum, instead of allowing it to be sent to an email address for instance?

If there isn't just one specific place, what should I be looking for?

Thanks,
Labradoodle-360

Matthew K.

I am curious to know, what file defines what is sent/when to a users email when they receive a new personal message.

SoLoGHoST

Is this topic solved, or is this topic still looking for help?  If so, you should look in Subs-Post.php at the sendpm() function, not the PersonalMessage.php file.  Although the PersonalMessage.php file calls the sendpm() function, but sending the pm via forum and e-mail are both done through the sendpm() function within the Subs-Post.php file, so this is where you should start to get an idea on this.  But not really sure what you are trying to do here?  Can you be more specific or let me know if this question is still valid or not?

Thanks :)

SoLoGHoST

Look in Subs-Post.php at the sendpm() function or the sendmail() function

Matthew K.

After considering what I need to accomplish, a better question was where is the email defined that is sent out to a member when they receive a new pm, and how it selects their email from the db.

So this is resolved, my other question is not.
Labradoodle-360

Arantor

So, as I seem to ask everyone who posts in this board, which version of SMF is this for?

Seriously though, it's all in sendpm() in terms of looking up the emailAddress / email_address column from the members table for the member(s) receiving the PM. I forget where it is in 1.1.x but it's in EmailTemplates.{language}.php in 2.0.

* Arantor merges the two very closely related topics.
Holder of controversial views, all of which my own.


Matthew K.


Arantor

In which case you will be wanting to look up EmailTemplates.{language}.php for the text of the PM that gets sent out.
Holder of controversial views, all of which my own.


Advertisement: