mail_member
Usage: bool mail_member (int userid, string subject, string message)
Purpose: Sends an e-mail to a member.
Availability: IPB SDK 1.0
Purpose: Sends an e-mail to a member.
Availability: IPB SDK 1.0
Sends member userid an e-mail with the subject line subject and message message.
Returns TRUE on success, or FALSE on failiure.
// Sends User 20 an email with subject "Badger Badger" and Message "Mushroom Snake"
if ($SDK->mail_member(20, "Badger Badger", "Mushroom Snake")) {
echo 'it worked';
}
// Sends an email to user cow with subject "Dwaggy has flown away" and message "Visit http://evolution.neondragon.net"
if ($SDK->mail_member($SDK->name2id("cow"), "Dwaggy has flown away", "Visit http://evolution.neondragon.net")) {
echo 'it worked';
}
if ($SDK->mail_member(20, "Badger Badger", "Mushroom Snake")) {
echo 'it worked';
}
// Sends an email to user cow with subject "Dwaggy has flown away" and message "Visit http://evolution.neondragon.net"
if ($SDK->mail_member($SDK->name2id("cow"), "Dwaggy has flown away", "Visit http://evolution.neondragon.net")) {
echo 'it worked';
}
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net
There are currently no user contributed notes for this page.