CustomEmail

Description

Handles the form allowing you to email a user from their profile.

Syntax

void CustomEmail ()


Notes

  • Requires a user ID or message ID sent via $_REQUEST
  • $_REQUEST['msg'] is set if you're sending an email to a specific poster
  • Actually sends the email if $_POST['send'] and $_POST['email_body'] are set
  • Uses the custom_email subtemplate of the SendTopic template

Context ($context) Variables
Name Description
$context['recipient'] An array of info about the recipient. Contains id, name, email, email_link and link
$context['show_email_address'] One of the results from showEmailAddress indicating whether the current user can see this person's email address (and why)
Advertisement: