- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
// Validation
$err = $fc->validationInput($fieldsArray, wire('input')->post);
if( $err === false ) {
// Saving
$fc->saveInput($fieldsArray, wire('input')->post);
// Send emails to the submitter and to the owner
$toSubmitter = wire('user')->email;
$toOwner = wire('pages')->get(wire('page')->created_users_id)->email;
$subject = "reservation #{$destPage->id}";
ob_start(); ?>
<p>Dear <?php echo $owner->o_firstname; ?>,</p>
<p>We have enquiry for your <?php echo $destPage->id->title; ?> in your account on site. Please log in to see details and replay to the guests directly.</p>
<p>Here is the link: <a href="<?php echo 'http://'.$loginLink; ?>">http://<?php echo $loginLink; ?></a><p>
<p>Thank you in advance for contacting guests shortly. If you require any assistance please do not hesitate to get in touch.</p>
<p>The Team<br />
Lionl<br />
237 Perrier<br />
74700 <br />
<br />
Fr</p>
<?php $textBody = ob_get_clean();
$sent1 = wireMail($toSubmitter, '', $subject, '', array( 'bodyHTML' => $textBody ));
wireMail($toSubmitter, '', $subject, array( 'bodyHTML' => $textBody ));
$agentMail = $fc->getInput('reservation_contact_email')->value;
$agentName = $fc->getInput('leader')->value;
$agentPhone = $fc->getInput('reservation_contact_phone')->value;
$regUser = wire('users')->find("email=$agentMail");
$destPage->of(false);
Комментарии (0) RSS
Добавить комментарий