Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Poortvliet <jospoortvliet@gmail.com>2020-04-23 22:16:29 +0300
committerJos Poortvliet <jospoortvliet@gmail.com>2020-04-23 22:16:29 +0300
commit4f5e51f07fce17ad71a0aaca92baecaeec6946a6 (patch)
tree3eecc025772e798d4b1998a9fa75b0cbc64a912f /page-ionossubmit.php
parent81aaf87750a5180c78bdbb00c590a33f1765b2a5 (diff)
update press and ionos pages
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'page-ionossubmit.php')
-rw-r--r--page-ionossubmit.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/page-ionossubmit.php b/page-ionossubmit.php
index 60f2056f..7481d045 100644
--- a/page-ionossubmit.php
+++ b/page-ionossubmit.php
@@ -248,19 +248,28 @@ if(isset($_POST['email'])) {
$email_message .= "Signed terms: " . clean_string($terms) . "\n\n";
// create email headers
- $headers = 'From: sales@nextcloud.com' . "\r\n" .
+// $headers = 'From: sales@nextcloud.com' . "\r\n" .
+// 'Reply-To: ' . $email_from . ', sales@nextcloud.com' . "\r\n" .
+// 'Cc: ' . $email_from . "\r\n" .
+// 'Content-Type: text/plain; charset=UTF-8';
+ $headers = 'From: sales@nextcloud.com' . "\r\n" .
'Reply-To: ' . $email_from . ', sales@nextcloud.com' . "\r\n" .
- 'Cc: ' . $email_from . "\r\n" .
'Content-Type: text/plain; charset=UTF-8';
// Send the email
// $recipients = ['orders'];
// $recipients = ['sales', 'jos', 'frank'];
- $recipients = ['jos','sales','frank']; // for testing
+ $recipients = ['jos','viakom-sales','frank'];
+// $recipients = ['jos','jos.poortvliet',]; // for testing
// $recipients = ['frank']; // for testing
$successfullySend = true;
foreach ($recipients as $recipient) {
$successfullySend &= mail($recipient . '@nextcloud.com', $email_subject, $email_message, $headers);
}
+ // send to user themselves
+
+ $email_message_user = "Thank you for your submission! The form contents below have been send to our sales team.\n\n" . $email_message;
+
+ mail($email_from, $email_subject, $email_message_user, $headers);
// store in log
$data = [
'subject' => $email_subject,
@@ -277,6 +286,7 @@ if(isset($_POST['email'])) {
<pre><?php
echo $email_message;
?></pre>
+ <p><?php echo $l->t('Find a copy in your inbox.');?></p>
<?php
} else {
// TODO: log something here