Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UCommWebforms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
UCommWebforms
Commits
a69fbd8a
Commit
a69fbd8a
authored
14 years ago
by
Eric Rasmussen
Browse files
Options
Downloads
Patches
Plain Diff
Finish the email, add another email address
parent
ecd8141c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config-landscape-outdoorevents.sample.php
+2
-1
2 additions, 1 deletion
config-landscape-outdoorevents.sample.php
www/landscape/outdoorevents/index.php
+34
-8
34 additions, 8 deletions
www/landscape/outdoorevents/index.php
with
36 additions
and
9 deletions
config-landscape-outdoorevents.sample.php
+
2
−
1
View file @
a69fbd8a
...
...
@@ -18,7 +18,8 @@ function myautoload($class)
require_once
$file
;
}
$sendToEmail
=
""
;
//Will send form data to this email address.
$sendToEmail
=
"jdoe1@unl.edu"
;
$sendToEmailDev
=
"appdev1@unl.edu"
;
$sendFromEmail
=
"no-reply@ucommxsrv1.unl.edu"
;
//Will send email from this address.
$emailSubject
=
"UNL Outdoor Event Space Request"
;
//Subject for the email.
...
...
This diff is collapsed.
Click to expand it.
www/landscape/outdoorevents/index.php
+
34
−
8
View file @
a69fbd8a
...
...
@@ -7,20 +7,46 @@ if (file_exists(dirname(__FILE__).'/../../../config-landscape-outdoorevents.inc.
if
(
!
empty
(
$_POST
))
{
$mailer
=
new
UNL_WDN_Emailer_Main
();
$body
.
=
"<h5>Event Information</h5>"
;
$body
.
=
"<strong>Location:</strong> "
.
$_POST
[
'location'
]
.
"<br/>"
;
$body
.
=
"<strong>Begin Date:</strong> "
.
$_POST
[
'begindate_month'
]
.
"/"
.
$_POST
[
'begindate_day'
]
.
"/"
.
$_POST
[
'begindate_year'
]
.
" "
;
$body
.
=
"<strong>End Date:</strong> "
.
$_POST
[
'enddate_month'
]
.
"/"
.
$_POST
[
'enddate_day'
]
.
"/"
.
$_POST
[
'enddate_year'
]
.
"<br/>"
;
$body
.
=
"<strong>Title of Event:</strong> "
.
$_POST
[
'title'
]
.
"<br/>"
;
$body
.
=
"<strong>Description:</strong> "
.
$_POST
[
'description'
]
.
"<br/>"
;
$body
.
=
"<strong>Start Time:</strong> "
.
$_POST
[
'starttime_hour'
]
.
":"
.
$_POST
[
'starttime_minute'
]
.
" "
.
$_POST
[
'starttime_ampm'
]
.
" "
;
$body
.
=
"<strong>End Time:</strong> "
.
$_POST
[
'endtime_hour'
]
.
":"
.
$_POST
[
'endtime_minute'
]
.
" "
.
$_POST
[
'endtime_ampm'
]
.
"<br/>"
;
$body
.
=
"<strong>Expected Attendance:</strong> "
.
$_POST
[
'attendance'
]
.
"<br/>"
;
$body
.
=
"<strong>Sponsor:</strong> "
.
$_POST
[
'sponsor'
]
.
"<br/>"
;
$body
.
=
"<h5>Contact Information</h5>"
;
$body
.
=
"<strong>Name:</strong> "
.
$_POST
[
'name'
]
.
"<br/>"
;
$body
.
=
"<strong>Phone Number:</strong> "
.
$_POST
[
'phone'
]
.
"<br/>"
;
$body
.
=
"<strong>Email Address:</strong> "
.
$_POST
[
'email'
]
.
"<br/>"
;
$body
.
=
"<strong>URL to video:</strong> "
.
$_POST
[
'video'
]
.
"<br/>"
;
$body
.
=
"<strong>Type:</strong> "
.
$_POST
[
'type'
]
.
"<br/>"
;
$body
.
=
"<strong>Proposal:</strong><br/>"
.
$_POST
[
'proposal'
]
.
"<br/>"
;
$body
.
=
"<strong>Email:</strong> "
.
$_POST
[
'email'
]
.
"<br/>"
;
$body
.
=
"<strong>Address:</strong> "
.
$_POST
[
'streetaddress'
]
.
"<br/>"
;
$body
.
=
"<strong> </strong> "
.
$_POST
[
'city'
]
.
" "
.
$_POST
[
'state'
]
.
" "
.
$_POST
[
'zip'
]
.
"<br />"
;
$body
.
=
"<strong>Business Phone:</strong> "
.
$_POST
[
'business'
]
.
"<br/>"
;
$body
.
=
"<strong>Home Phone:</strong> "
.
$_POST
[
'home'
]
.
"<br/>"
;
$body
.
=
"<strong>Fax:</strong> "
.
$_POST
[
'fax'
]
.
"<br/>"
;
$body
.
=
"<h5>Event Requirements</h5>"
;
$body
.
=
"<strong>Litter Containers:</strong> "
.
$_POST
[
'litter_number'
]
.
"<br/>"
;
$body
.
=
"<strong>Picnic Tables:</strong> "
.
$_POST
[
'picnic_number'
]
.
"<br/>"
;
$body
.
=
"<strong>Electricity Hookup:</strong> "
.
$_POST
[
'electricity'
]
.
"<br/>"
;
$body
.
=
"<h5>Other Information</h5>"
;
$body
.
=
"<strong>Bad Weather Contingency:</strong> "
.
$_POST
[
'weather'
]
.
"<br/>"
;
$body
.
=
"<strong>Additional Comments:</strong> "
.
$_POST
[
'comments'
]
.
"<br/>"
;
$mailer
->
html_body
=
$body
;
$mailer
->
to_address
=
$
sendToE
mail
;
$mailer
->
to_address
=
$
_POST
[
'e
mail
'
]
;
$mailer
->
from_address
=
$sendFromEmail
;
$mailer
->
subject
=
$emailSubject
;
$mailer
->
send
();
// Send another copy to the UNL WDN address, as a backup.
$mailer
->
to_address
=
'ericrasmussen1@gmail.com'
;
// Send to head of Landscape Services
$mailer
->
to_address
=
$sendToEmail
;
$mailer
->
send
();
// Send another copy to the developer as a backup
$mailer
->
to_address
=
$sendToEmailDev
;
$mailer
->
send
();
header
(
'Location: thankyou.php'
);
exit
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment