|
|
| 210 |
// Send the registrant a notification that their payment was received |
210 |
// Send the registrant a notification that their payment was received |
| 211 |
$schedConfSettingsDao =& DAORegistry::getDAO('SchedConfSettingsDAO'); |
211 |
$schedConfSettingsDao =& DAORegistry::getDAO('SchedConfSettingsDAO'); |
| 212 |
|
212 |
|
|
|
213 |
// Get registrant name and email |
| 214 |
$userDao =& DAORegistry::getDAO('UserDAO'); |
| 215 |
$user =& $userDao->getUser($queuedPayment->getuserId()); |
| 216 |
$registrantName = $user->getFullName(); |
| 217 |
$registrantEmail = $user->getEmail(); |
| 218 |
|
| 219 |
// Get conference contact details |
| 213 |
$schedConfId = $schedConf->getId(); |
220 |
$schedConfId = $schedConf->getId(); |
| 214 |
$registrationName = $schedConfSettingsDao->getSetting($schedConfId, 'registrationName'); |
221 |
$registrationName = $schedConfSettingsDao->getSetting($schedConfId, 'registrationName'); |
| 215 |
$registrationEmail = $schedConfSettingsDao->getSetting($schedConfId, 'registrationEmail'); |
222 |
$registrationEmail = $schedConfSettingsDao->getSetting($schedConfId, 'registrationEmail'); |
|
|
| 225 |
$registrationContactSignature .= "\n" . Locale::Translate('user.email') . ': ' . $registrationEmail; |
232 |
$registrationContactSignature .= "\n" . Locale::Translate('user.email') . ': ' . $registrationEmail; |
| 226 |
|
233 |
|
| 227 |
$paramArray = array( |
234 |
$paramArray = array( |
| 228 |
'registrantName' => $contactName, |
235 |
'registrantName' => $registrantName, |
| 229 |
'schedConfName' => $schedConfName, |
236 |
'conferenceName' => $schedConf->getFullTitle(), |
| 230 |
'registrationContactSignature' => $registrationContactSignature |
237 |
'registrationContactSignature' => $registrationContactSignature |
| 231 |
); |
238 |
); |
| 232 |
|
239 |
|
|
|
| 234 |
$mail = new MailTemplate('MANUAL_PAYMENT_RECEIVED'); |
241 |
$mail = new MailTemplate('MANUAL_PAYMENT_RECEIVED'); |
| 235 |
$mail->setFrom($registrationEmail, $registrationName); |
242 |
$mail->setFrom($registrationEmail, $registrationName); |
| 236 |
$mail->assignParams($paramArray); |
243 |
$mail->assignParams($paramArray); |
| 237 |
$mail->addRecipient($contactEmail, $contactName); |
244 |
$mail->addRecipient($registrantEmail, $registrantName); |
| 238 |
$mail->send(); |
245 |
$mail->send(); |
| 239 |
|
246 |
|
| 240 |
exit(); |
247 |
exit(); |