|
@@ -0,0 +1,56 @@
|
|
1
|
+<?php
|
|
2
|
+if (!function_exists("emailInicioProcesoDescarga")) {
|
|
3
|
+ function emailInicioProcesoDescarga($fechaInicioProceso, $arrayArchivos)
|
|
4
|
+ {
|
|
5
|
+ $asunto = "Inicio descarga y proceso de archivos de licitaciones";
|
|
6
|
+ $archivosEmail = "";
|
|
7
|
+ foreach ($arrayArchivos as $file) {
|
|
8
|
+ $archivosEmail .= "<p>" . $file . "</p>";
|
|
9
|
+ }
|
|
10
|
+ $cuerpo = "<!DOCTYPE html>
|
|
11
|
+ <html lang='en'>
|
|
12
|
+ <head>
|
|
13
|
+ <meta charset='UTF-8'>
|
|
14
|
+ </head>
|
|
15
|
+
|
|
16
|
+ <body style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;'>
|
|
17
|
+ <div class='contenedor' style='max-width:900px; width:100%; margin:0px auto;'>
|
|
18
|
+ <div class='texto-inicio'>
|
|
19
|
+ <p><strong>A continuación se mostraran los ficheros implicados en el proceso de descarga a fecha :" . $fechaInicioProceso . ".</strong></p>
|
|
20
|
+ </div>
|
|
21
|
+ <div class='campos'>
|
|
22
|
+ $archivosEmail;
|
|
23
|
+ </div>
|
|
24
|
+ </div>
|
|
25
|
+ </body>
|
|
26
|
+ </html>";
|
|
27
|
+
|
|
28
|
+ $email = "chcalvoleon@mindden.com";
|
|
29
|
+ enviarEmail($asunto, $cuerpo, $email, false);
|
|
30
|
+ }
|
|
31
|
+}
|
|
32
|
+
|
|
33
|
+if (!function_exists("emailFinProcesoDescarga")) {
|
|
34
|
+ function emailFinProcesoDescarga($fechaInicioProceso)
|
|
35
|
+ {
|
|
36
|
+ $asunto = "Fin descarga y proceso de archivos de licitaciones";
|
|
37
|
+
|
|
38
|
+ $cuerpo = "<!DOCTYPE html>
|
|
39
|
+ <html lang='en'>
|
|
40
|
+ <head>
|
|
41
|
+ <meta charset='UTF-8'>
|
|
42
|
+ </head>
|
|
43
|
+
|
|
44
|
+ <body style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px;'>
|
|
45
|
+ <div class='contenedor' style='max-width:900px; width:100%; margin:0px auto;'>
|
|
46
|
+ <div class='texto-inicio'>
|
|
47
|
+ <p><strongEl proceso de importación con fecha $fechaInicioProceso ha terminado.</strong></p>
|
|
48
|
+ </div>
|
|
49
|
+ </div>
|
|
50
|
+ </body>
|
|
51
|
+ </html>";
|
|
52
|
+
|
|
53
|
+ $email = "chcalvoleon@mindden.com";
|
|
54
|
+ enviarEmail($asunto, $cuerpo, $email, false);
|
|
55
|
+ }
|
|
56
|
+}
|