I was able to get this to work using Postmaster. Thanks to Justin over there for pointing me in the right direction.
I created a new php file in the hooks dir of postmaster:
E.g.
Member_member_register.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Member_member_register_postmaster_hook extends Base_hook {
protected $title = 'Member member register';
public function __construct($params = array())
{
parent::__construct(array());
}
public function trigger($data, $member_id)
{
$member = $this->channel_data->get_member($member_id)->row_array();
$member['email'] = $_POST['email'];
$member['street_address'] = $_POST['street_address'];
$member['city'] = $_POST['city'];
$member['state'] = $_POST['state'];
$member['zipcode'] = $_POST['zipcode'];
return $this->send($parse_vars, $member);
}
}
Then in my postmaster template, I accessed the data like such:
Name: {hook:screen_name}
Email: {hook:email}
Address: {hook:street_address}
{hook:city}, {hook:state} {hook:zipcode}
The downside is that you have to hard code the values. If you were to add more fields, you would have to change the hook file. I'm sure with some tweaking you could make this dynamic.