Who invited
This commit is contained in:
@@ -396,6 +396,7 @@ long family_email(long mailtype, CVars in, CVars &out) {
|
||||
|
||||
//REQ_LONG( in, "member_id", 1, -1 );
|
||||
CVars x;
|
||||
CVars y;
|
||||
C_CGI_Form form("", "");
|
||||
|
||||
CGIList * inv_list = new CGIList(&form, "inv_items");
|
||||
@@ -429,7 +430,9 @@ long family_email(long mailtype, CVars in, CVars &out) {
|
||||
|
||||
case WRENCHBOARD_RELATIVES_REMINDER:
|
||||
load_db_record(x, "SELECT * FROM members_family_relative WHERE id = %lu ",out["relative_id"].Long());
|
||||
load_db_record(y, "SELECT firstname AS inv_firstname, lastname AS inv_lastname FROM members WHERE id = %lu ",x["member_id"].Long());
|
||||
vars2form(x, form);
|
||||
vars2form(y, form);
|
||||
form.LetStr("subject", "Invitation to Join Our Family Platform on WrenchBoard");
|
||||
form.LetStr("email", x["email"].c_str());
|
||||
form.Email("FAMILY/family_relative_invite.mailfile");
|
||||
|
||||
Reference in New Issue
Block a user