PluginProbe
UpdraftPlus: WP Backup & Migration Plugin / 1.4.2
UpdraftPlus: WP Backup & Migration Plugin v1.4.2
1.26.7 1.26.6 1.26.5 1.26.4 1.26.3 1.9.19 1.9.25 1.9.26 1.9.30 1.9.31 1.9.32 1.9.4 1.9.40 1.9.41 1.9.42 1.9.43 1.9.44 1.9.45 1.9.46 1.9.5 1.9.50 1.9.51 1.9.60 1.9.62 1.9.63 All 371 releases
updraftplus / methods / email.php

email.php in UpdraftPlus: WP Backup & Migration Plugin 1.4.2, at methods/email.php

30 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Files can easily get way too big for this method
4
5 class UpdraftPlus_BackupModule_email {
6
7 function backup($backup_array) {
8
9 global $updraftplus;
10
11 foreach ($backup_array as $type => $file) {
12 $fullpath = trailingslashit(UpdraftPlus_Options::get_updraft_option('updraft_dir')).$file;
13 wp_mail(UpdraftPlus_Options::get_updraft_option('updraft_email'), "WordPress Backup ".date('Y-m-d H:i',$updraftplus->backup_time), "Backup is of the $type. Be wary; email backups may fail because of file size limitations on mail servers.", null, array($fullpath));
14 $updraftplus->uploaded_file($file);
15 }
16 $updraftplus->prune_retained_backups("email", null, null);
17 }
18
19 public static function config_print() {
20 ?>
21 <tr class="updraftplusmethod email">
22 <th>Note:</th>
23 <td>The email address entered above will be used. If choosing &quot;E-Mail&quot;, then be aware that mail servers tend to have size limits; typically around 10-20Mb; backups larger than any limits will not arrive. If you really need a large backup via email, then you could fund a new feature (to break the backup set into configurable-size pieces) - but the demand has not yet existed for such a feature.</td>
24 </tr>
25 <?php
26 }
27
28 }
29
30 ?>