-
Notifications
You must be signed in to change notification settings - Fork 0
/
Helper_Functions.php
58 lines (39 loc) · 59.5 KB
/
Helper_Functions.php
1
2
3
4
5
6
7
8
9
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
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
class Helper_Functions
{
// constructor
function __construct()
{
}
// destructor
function __destruct()
{
}
public function sendEmail($email, $codice)
{
// Subject
$subject = 'Birdbase confirmation';
// Message
$message = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n".'<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head>'."\n".'<!--[if gte mso 9]><xml>'."\n".'<o:OfficeDocumentSettings>'."\n".'<o:AllowPNG/>'."\n".'<o:PixelsPerInch>96</o:PixelsPerInch>'."\n".'</o:OfficeDocumentSettings>'."\n".'</xml><![endif]-->'."\n".'<meta http-equiv="Content-Type" content="text/html; charset=utf-8">'."\n".'<meta name="viewport" content="width=device-width">'."\n".'<!--[if !mso]><!-->'."\n".'<meta http-equiv="X-UA-Compatible" content="IE=edge">'."\n".'<!--<![endif]-->'."\n".'<title></title>'."\n".'<!--[if !mso]><!-->'."\n".'<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">'."\n".'<!--<![endif]-->'."\n".'<style type="text/css" id="media-query">body{margin:0;padding:0}table,tr,td{vertical-align:top;border-collapse:collapse}.ie-browser table,.mso-container table{table-layout:fixed}*{line-height:inherit}a[x-apple-data-detectors=true]{color:inherit!important;text-decoration:none!important}[owa] .img-container div,[owa] .img-container button{display:block!important}[owa] .fullwidth button{width:100%!important}[owa] .block-grid .col{display:table-cell;float:none!important;vertical-align:top}.ie-browser .num12,.ie-browser .block-grid,[owa] .num12,[owa] .block-grid{width:550px!important}.ExternalClass,.ExternalClass p,.ExternalClass span,.ExternalClass font,.ExternalClass td,.ExternalClass div{line-height:100%}.ie-browser .mixed-two-up .num4,[owa] .mixed-two-up .num4{width:180px!important}.ie-browser .mixed-two-up .num8,[owa] .mixed-two-up .num8{width:360px!important}.ie-browser .block-grid.two-up .col,[owa] .block-grid.two-up .col{width:275px!important}.ie-browser .block-grid.three-up .col,[owa] .block-grid.three-up .col{width:183px!important}.ie-browser .block-grid.four-up .col,[owa] .block-grid.four-up .col{width:137px!important}.ie-browser .block-grid.five-up .col,[owa] .block-grid.five-up .col{width:110px!important}.ie-browser .block-grid.six-up .col,[owa] .block-grid.six-up .col{width:91px!important}.ie-browser .block-grid.seven-up .col,[owa] .block-grid.seven-up .col{width:78px!important}.ie-browser .block-grid.eight-up .col,[owa] .block-grid.eight-up .col{width:68px!important}.ie-browser .block-grid.nine-up .col,[owa] .block-grid.nine-up .col{width:61px!important}.ie-browser .block-grid.ten-up .col,[owa] .block-grid.ten-up .col{width:55px!important}.ie-browser .block-grid.eleven-up .col,[owa] .block-grid.eleven-up .col{width:50px!important}.ie-browser .block-grid.twelve-up .col,[owa] .block-grid.twelve-up .col{width:45px!important}@media only screen and (min-width:570px){.block-grid{width:550px!important}.block-grid .col{vertical-align:top}.block-grid .col.num12{width:550px!important}.block-grid.mixed-two-up .col.num4{width:180px!important}.block-grid.mixed-two-up .col.num8{width:360px!important}.block-grid.two-up .col{width:275px!important}.block-grid.three-up .col{width:183px!important}.block-grid.four-up .col{width:137px!important}.block-grid.five-up .col{width:110px!important}.block-grid.six-up .col{width:91px!important}.block-grid.seven-up .col{width:78px!important}.block-grid.eight-up .col{width:68px!important}.block-grid.nine-up .col{width:61px!important}.block-grid.ten-up .col{width:55px!important}.block-grid.eleven-up .col{width:50px!important}.block-grid.twelve-up .col{width:45px!important}}@media(max-width:570px){.block-grid,.col{min-width:320px!important;max-width:100%!important;display:block!important}.block-grid{width:calc(100% - 40px)!important}.col{width:100%!important}.col>div{margin:0 auto}img.fullwidth,img.fullwidthOnMobile{max-width:100%!important}.no-stack .col{min-width:0!important;display:table-cell!important}.no-stack.two-up .col{width:50%!important}.no-stack.mixed-two-up .col.num4{width:33%!important}.no-stack.mixed-two-up .col.num8{width:66%!important}.no-stack.three-up .col.num4{width:33%!important}.no-stack.four-up .col.num3{width:25%!important}.mobile_hide{min-height:0;max-height:0;max-width:0;display:none;overflow:hidden;font-size:0}}</style>'."\n".'</head>'."\n".'<body class="clean-body" style="margin:0;padding:0;-webkit-text-size-adjust:100%;background-color:#FFFFFF">'."\n".'<style type="text/css" id="media-query-bodytag">@media(max-width:520px){.block-grid{min-width:320px!important;max-width:100%!important;width:100%!important;display:block!important}.col{min-width:320px!important;max-width:100%!important;width:100%!important;display:block!important}.col>div{margin:0 auto}img.fullwidth{max-width:100%!important}img.fullwidthOnMobile{max-width:100%!important}.no-stack .col{min-width:0!important;display:table-cell!important}.no-stack.two-up .col{width:50%!important}.no-stack.mixed-two-up .col.num4{width:33%!important}.no-stack.mixed-two-up .col.num8{width:66%!important}.no-stack.three-up .col.num4{width:33%!important}.no-stack.four-up .col.num3{width:25%!important}.mobile_hide{min-height:0!important;max-height:0!important;max-width:0!important;display:none!important;overflow:hidden!important;font-size:0!important}}</style>'."\n".'<!--[if IE]><div class="ie-browser"><![endif]-->'."\n".'<!--[if mso]><div class="mso-container"><![endif]-->'."\n".'<table class="nl-container" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;min-width:320px;Margin:0 auto;background-color:#fff;width:100%" cellpadding="0" cellspacing="0">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td style="word-break:break-word;border-collapse:collapse!important;vertical-align:top">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#fff"><![endif]-->'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:20px;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:20px;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<div align="center" class="img-container center fixedwidth" style="padding-right:0;padding-left:0">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr style="line-height:0px;line-height:0px"><td style="padding-right:0;padding-left:0" align="center"><![endif]-->'."\n".'<img class="center fixedwidth" align="center" border="0" src="https://i.imgur.com/dl2cyrC.png" alt="Logo" title="Logo" style="outline:0;text-decoration:none;-ms-interpolation-mode:bicubic;clear:both;display:block!important;border:0;height:auto;float:none;width:100%;max-width:165px" width="165">'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:0;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:0;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="line-height:120%;color:#fff;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:14px;color:#fff;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<span style="font-size:28px;line-height:33px">'."\n".'<span style="line-height:33px;font-size:28px">Benvenuto su birdbase, </span>'."\n".'</span>'."\n".'<br>'."\n".'<span style="font-size:28px;line-height:33px">grazie per esserti registrato</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="line-height:150%;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:18px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:21px;text-align:center">Inserisci il codice di conferma e sarai pronto ad utilizzare la tua nuova app'."\n".'<span style="color:#a8bf6f;font-size:14px;line-height:21px">'."\n".'<strong>'."\n".'<br>'."\n".'</strong>'."\n".'</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="line-height:120%;color:#fff;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:14px;color:#03c9a9;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<strong><span style="font-size:30px;line-height:33px;letter-spacing:.5em;text-transform:uppercase">' . $codice . '</span></strong>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<span style="font-size:12px;line-height:14px">Inserendo il codice di conferma sull\'app, confermerai che questo è l\'indirizzo associato al tuo account.</span>'."\n".'<br>'."\n".'<span style="font-size:12px;line-height:14px">Una volta fatto potrai accedere liberamente all\'app e iniziare a creare il tuo allevamento.</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<table border="0" cellpadding="0" cellspacing="0" width="100%" class="divider" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;min-width:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td class="divider_inner" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;padding-right:10px;padding-left:10px;padding-top:25px;padding-bottom:25px;min-width:100%;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<table class="divider_content" height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;border-top:0 solid transparent;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;font-size:0;line-height:0;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<span> </span>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:5px;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:5px;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<span style="font-size:16px;line-height:19px">Per maggiori informazioni ti invitiamo a contattarci:</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:5px;padding-left:5px;padding-top:5px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">Email:'."\n".'<a style="color:#BDC3C7" title="[email protected]" href="mailto:[email protected]?subject=Info">[email protected]</a>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:5px;padding-left:5px;padding-top:5px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">Sito web:'."\n".'<a style="color:#BDC3C7" title="Website" href="https://www.birdbase.it" target="_blank" rel="noopener">https://www.birdbase.it</a>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:5px;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:5px;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<div align="center" style="padding-right:10px;padding-left:10px;padding-bottom:10px" class="">'."\n".'<div style="display:table;max-width:119px">'."\n".'<!--[if (mso)|(IE)]><table width="99" cellpadding="0" cellspacing="0" border="0"><tr><td style="border-collapse:collapse;padding-right:10px;padding-left:10px;padding-bottom:10px" align="center"><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;width:99px"><tr><td width="32" style="width:32px;padding-right:10px" valign="top"><![endif]-->'."\n".'<table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;Margin-right:10px">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td align="left" valign="middle" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top">'."\n".'<a href="https://www.facebook.com/" title="Facebook" target="_blank">'."\n".'<img src="https://i.imgur.com/hJ2eChb.png" alt="Facebook" title="Facebook" width="32" style="outline:0;text-decoration:none;-ms-interpolation-mode:bicubic;clear:both;display:block!important;border:0;height:auto;float:none;max-width:32px!important">'."\n".'</a>'."\n".'<div style="line-height:5px;font-size:1px"> </div>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (mso)|(IE)]></td><td width="32" style="width:32px;padding-right:0" valign="top"><![endif]-->'."\n".'<table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;Margin-right:0">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td align="left" valign="middle" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top">'."\n".'<a href="https://twitter.com/" title="Twitter" target="_blank">'."\n".'<img src="https://i.imgur.com/3s3Y9k1.png" alt="Twitter" title="Twitter" width="32" style="outline:0;text-decoration:none;-ms-interpolation-mode:bicubic;clear:both;display:block!important;border:0;height:auto;float:none;max-width:32px!important">'."\n".'</a>'."\n".'<div style="line-height:5px;font-size:1px"> </div>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:0;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:0;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<table border="0" cellpadding="0" cellspacing="0" width="100%" class="divider" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;min-width:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td class="divider_inner" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;padding-right:20px;padding-left:20px;padding-top:20px;padding-bottom:20px;min-width:100%;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<table class="divider_content" height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;border-top:0 solid transparent;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;font-size:0;line-height:0;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<span> </span>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<span style="font-size:10px;line-height:12px">Se hai ricevuto questa email per errore, ignorala. Non comporta l\'iscrizione a nessun tipo'."\n".'di newsletter.</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:5px;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:5px;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<table border="0" cellpadding="0" cellspacing="0" width="100%" class="divider" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;min-width:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td class="divider_inner" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px;min-width:100%;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<table class="divider_content" height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;border-top:0 solid transparent;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;font-size:0;line-height:0;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<span> </span>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table><![endif]-->'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (mso)|(IE)]></div><![endif]-->'."\n".'</body></html>';
// To send HTML mail, the Content-type header must be set
$headers[] = 'MIME-Version: 1.0';
$headers[] = 'Content-type: text/html; charset=iso-8859-1';
// Mail it
$result = mail($email, $subject, $message, implode("\r\n", $headers));
return $result;
}
public function sendEmailRecupero($email, $codice)
{
// Subject
$subject = 'Birdbase recupero password';
// Message
$message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n".'<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head>'."\n".'<!--[if gte mso 9]><xml>'."\n".'<o:OfficeDocumentSettings>'."\n".'<o:AllowPNG/>'."\n".'<o:PixelsPerInch>96</o:PixelsPerInch>'."\n".'</o:OfficeDocumentSettings>'."\n".'</xml><![endif]-->'."\n".'<meta http-equiv="Content-Type" content="text/html; charset=utf-8">'."\n".'<meta name="viewport" content="width=device-width">'."\n".'<!--[if !mso]><!-->'."\n".'<meta http-equiv="X-UA-Compatible" content="IE=edge">'."\n".'<!--<![endif]-->'."\n".'<title></title>'."\n".'<!--[if !mso]><!-->'."\n".'<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">'."\n".'<!--<![endif]-->'."\n".'<style type="text/css" id="media-query">body{margin:0;padding:0}table,tr,td{vertical-align:top;border-collapse:collapse}.ie-browser table,.mso-container table{table-layout:fixed}*{line-height:inherit}a[x-apple-data-detectors=true]{color:inherit!important;text-decoration:none!important}[owa] .img-container div,[owa] .img-container button{display:block!important}[owa] .fullwidth button{width:100%!important}[owa] .block-grid .col{display:table-cell;float:none!important;vertical-align:top}.ie-browser .num12,.ie-browser .block-grid,[owa] .num12,[owa] .block-grid{width:550px!important}.ExternalClass,.ExternalClass p,.ExternalClass span,.ExternalClass font,.ExternalClass td,.ExternalClass div{line-height:100%}.ie-browser .mixed-two-up .num4,[owa] .mixed-two-up .num4{width:180px!important}.ie-browser .mixed-two-up .num8,[owa] .mixed-two-up .num8{width:360px!important}.ie-browser .block-grid.two-up .col,[owa] .block-grid.two-up .col{width:275px!important}.ie-browser .block-grid.three-up .col,[owa] .block-grid.three-up .col{width:183px!important}.ie-browser .block-grid.four-up .col,[owa] .block-grid.four-up .col{width:137px!important}.ie-browser .block-grid.five-up .col,[owa] .block-grid.five-up .col{width:110px!important}.ie-browser .block-grid.six-up .col,[owa] .block-grid.six-up .col{width:91px!important}.ie-browser .block-grid.seven-up .col,[owa] .block-grid.seven-up .col{width:78px!important}.ie-browser .block-grid.eight-up .col,[owa] .block-grid.eight-up .col{width:68px!important}.ie-browser .block-grid.nine-up .col,[owa] .block-grid.nine-up .col{width:61px!important}.ie-browser .block-grid.ten-up .col,[owa] .block-grid.ten-up .col{width:55px!important}.ie-browser .block-grid.eleven-up .col,[owa] .block-grid.eleven-up .col{width:50px!important}.ie-browser .block-grid.twelve-up .col,[owa] .block-grid.twelve-up .col{width:45px!important}@media only screen and (min-width:570px){.block-grid{width:550px!important}.block-grid .col{vertical-align:top}.block-grid .col.num12{width:550px!important}.block-grid.mixed-two-up .col.num4{width:180px!important}.block-grid.mixed-two-up .col.num8{width:360px!important}.block-grid.two-up .col{width:275px!important}.block-grid.three-up .col{width:183px!important}.block-grid.four-up .col{width:137px!important}.block-grid.five-up .col{width:110px!important}.block-grid.six-up .col{width:91px!important}.block-grid.seven-up .col{width:78px!important}.block-grid.eight-up .col{width:68px!important}.block-grid.nine-up .col{width:61px!important}.block-grid.ten-up .col{width:55px!important}.block-grid.eleven-up .col{width:50px!important}.block-grid.twelve-up .col{width:45px!important}}@media(max-width:570px){.block-grid,.col{min-width:320px!important;max-width:100%!important;display:block!important}.block-grid{width:calc(100% - 40px)!important}.col{width:100%!important}.col>div{margin:0 auto}img.fullwidth,img.fullwidthOnMobile{max-width:100%!important}.no-stack .col{min-width:0!important;display:table-cell!important}.no-stack.two-up .col{width:50%!important}.no-stack.mixed-two-up .col.num4{width:33%!important}.no-stack.mixed-two-up .col.num8{width:66%!important}.no-stack.three-up .col.num4{width:33%!important}.no-stack.four-up .col.num3{width:25%!important}.mobile_hide{min-height:0;max-height:0;max-width:0;display:none;overflow:hidden;font-size:0}}</style>'."\n".'<link rel="stylesheet" type="text/css" href="chrome-extension://immhpnclomdloikkpcefncmfgjbkojmh/css/emoji.css"></head>'."\n".'<body class="clean-body" style="margin:0;padding:0;-webkit-text-size-adjust:100%;background-color:#FFFFFF">'."\n".'<style type="text/css" id="media-query-bodytag">@media(max-width:520px){.block-grid{min-width:320px!important;max-width:100%!important;width:100%!important;display:block!important}.col{min-width:320px!important;max-width:100%!important;width:100%!important;display:block!important}.col>div{margin:0 auto}img.fullwidth{max-width:100%!important}img.fullwidthOnMobile{max-width:100%!important}.no-stack .col{min-width:0!important;display:table-cell!important}.no-stack.two-up .col{width:50%!important}.no-stack.mixed-two-up .col.num4{width:33%!important}.no-stack.mixed-two-up .col.num8{width:66%!important}.no-stack.three-up .col.num4{width:33%!important}.no-stack.four-up .col.num3{width:25%!important}.mobile_hide{min-height:0!important;max-height:0!important;max-width:0!important;display:none!important;overflow:hidden!important;font-size:0!important}}</style>'."\n".'<!--[if IE]><div class="ie-browser"><![endif]-->'."\n".'<!--[if mso]><div class="mso-container"><![endif]-->'."\n".'<table class="nl-container" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;min-width:320px;Margin:0 auto;background-color:#fff;width:100%" cellpadding="0" cellspacing="0">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td style="word-break:break-word;border-collapse:collapse!important;vertical-align:top">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#fff"><![endif]-->'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:20px;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:20px;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<div align="center" class="img-container center fixedwidth" style="padding-right:0;padding-left:0">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr style="line-height:0px;line-height:0px"><td style="padding-right:0;padding-left:0" align="center"><![endif]-->'."\n".'<img class="center fixedwidth" align="center" border="0" src="https://i.imgur.com/dl2cyrC.png" alt="Logo" title="Logo" style="outline:0;text-decoration:none;-ms-interpolation-mode:bicubic;clear:both;display:block!important;border:0;height:auto;float:none;width:100%;max-width:165px" width="165">'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:0;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:0;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="line-height:120%;color:#fff;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:14px;color:#fff;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<span style="font-size:28px;line-height:33px">Non ricordi più la tua password?</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="line-height:150%;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:18px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:21px;text-align:center">Usa il codice seguente nella tua app per reimpostare la password'."\n".'<span style="color:#a8bf6f;font-size:14px;line-height:21px">'."\n".'<strong>'."\n".'<br>'."\n".'</strong>'."\n".'</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="line-height:120%;color:#fff;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:14px;color:#03c9a9;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<strong><span style="font-size:30px;line-height:33px;letter-spacing:.5em;text-transform:uppercase">' . $codice . '</span></strong>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<span style="font-size:12px;line-height:14px">Inserendo questo codice nell\'app potrai impostare una nuova password per il tuo account</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<table border="0" cellpadding="0" cellspacing="0" width="100%" class="divider" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;min-width:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td class="divider_inner" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;padding-right:10px;padding-left:10px;padding-top:20px;padding-bottom:20px;min-width:100%;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<table class="divider_content" height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;border-top:0 solid transparent;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;font-size:0;line-height:0;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<span> </span>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:5px;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:5px;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<span style="font-size:16px;line-height:19px">Per maggiori informazioni ti invitiamo a contattarci:</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:5px;padding-left:5px;padding-top:5px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">Email:'."\n".'<a style="color:#BDC3C7" title="[email protected]" href="mailto:[email protected]?subject=Info">[email protected]</a>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:5px;padding-left:5px;padding-top:5px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">Sito web:'."\n".'<a style="color:#BDC3C7" title="Website" href="https://www.birdbase.it" target="_blank" rel="noopener">https://www.birdbase.it</a>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:5px;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:5px;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<div align="center" style="padding-right:10px;padding-left:10px;padding-bottom:10px" class="">'."\n".'<div style="display:table;max-width:119px">'."\n".'<!--[if (mso)|(IE)]><table width="99" cellpadding="0" cellspacing="0" border="0"><tr><td style="border-collapse:collapse;padding-right:10px;padding-left:10px;padding-bottom:10px" align="center"><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0;width:99px"><tr><td width="32" style="width:32px;padding-right:10px" valign="top"><![endif]-->'."\n".'<table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;Margin-right:10px">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td align="left" valign="middle" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top">'."\n".'<a href="https://www.facebook.com/" title="Facebook" target="_blank">'."\n".'<img src="https://i.imgur.com/hJ2eChb.png" alt="Facebook" title="Facebook" width="32" style="outline:0;text-decoration:none;-ms-interpolation-mode:bicubic;clear:both;display:block!important;border:0;height:auto;float:none;max-width:32px!important">'."\n".'</a>'."\n".'<div style="line-height:5px;font-size:1px"> </div>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (mso)|(IE)]></td><td width="32" style="width:32px;padding-right:0" valign="top"><![endif]-->'."\n".'<table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;Margin-right:0">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td align="left" valign="middle" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top">'."\n".'<a href="https://twitter.com/" title="Twitter" target="_blank">'."\n".'<img src="https://i.imgur.com/3s3Y9k1.png" alt="Twitter" title="Twitter" width="32" style="outline:0;text-decoration:none;-ms-interpolation-mode:bicubic;clear:both;display:block!important;border:0;height:auto;float:none;max-width:32px!important">'."\n".'</a>'."\n".'<div style="line-height:5px;font-size:1px"> </div>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:0;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:0;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<table border="0" cellpadding="0" cellspacing="0" width="100%" class="divider" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;min-width:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td class="divider_inner" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;padding-right:20px;padding-left:20px;padding-top:20px;padding-bottom:20px;min-width:100%;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<table class="divider_content" height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;border-top:0 solid transparent;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;font-size:0;line-height:0;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<span> </span>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<div class="">'."\n".'<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px"><![endif]-->'."\n".'<div style="color:#bdc3c7;line-height:120%;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;padding-right:10px;padding-left:10px;padding-top:10px;padding-bottom:10px">'."\n".'<div style="font-size:12px;line-height:14px;color:#bdc3c7;font-family:\'Lato\',Tahoma,Verdana,Segoe,sans-serif;text-align:left">'."\n".'<p style="margin:0;font-size:14px;line-height:17px;text-align:center">'."\n".'<span style="font-size:10px;line-height:12px">Se hai ricevuto questa email per errore, ignorala. Non comporta l\'iscrizione a nessun tipo'."\n".'di newsletter.</span>'."\n".'</p>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if mso]></td></tr></table><![endif]-->'."\n".'</div>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<div style="background-color:transparent">'."\n".'<div style="Margin:0 auto;min-width:320px;max-width:550px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;background-color:#1b4359" class="block-grid">'."\n".'<div style="border-collapse:collapse;display:table;width:100%;background-color:#1b4359">'."\n".'<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="background-color:transparent" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:550px"><tr class="layout-full-width" style="background-color:#1b4359"><![endif]-->'."\n".'<!--[if (mso)|(IE)]><td align="center" width="550" style="width:550px;padding-right:0;padding-left:0;padding-top:5px;padding-bottom:5px;border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent" valign="top"><![endif]-->'."\n".'<div class="col num12" style="min-width:320px;max-width:550px;display:table-cell;vertical-align:top">'."\n".'<div style="background-color:transparent;width:100%!important">'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'<div style="border-top:0 solid transparent;border-left:0 solid transparent;border-bottom:0 solid transparent;border-right:0 solid transparent;padding-top:5px;padding-bottom:5px;padding-right:0;padding-left:0">'."\n".'<!--<![endif]-->'."\n".'<table border="0" cellpadding="0" cellspacing="0" width="100%" class="divider" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;min-width:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td class="divider_inner" style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;padding-right:5px;padding-left:5px;padding-top:5px;padding-bottom:5px;min-width:100%;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<table class="divider_content" height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse;table-layout:fixed;border-spacing:0;mso-table-lspace:0;mso-table-rspace:0;vertical-align:top;border-top:0 solid transparent;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<tbody>'."\n".'<tr style="vertical-align:top">'."\n".'<td style="word-break:break-word;border-collapse:collapse!important;vertical-align:top;font-size:0;line-height:0;mso-line-height-rule:exactly;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">'."\n".'<span> </span>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (!mso)&(!IE)]><!-->'."\n".'</div>'."\n".'<!--<![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->'."\n".'</div>'."\n".'</div>'."\n".'</div>'."\n".'<!--[if (mso)|(IE)]></td></tr></table><![endif]-->'."\n".'</td>'."\n".'</tr>'."\n".'</tbody>'."\n".'</table>'."\n".'<!--[if (mso)|(IE)]></div><![endif]-->'."\n".'</body></html>';
// To send HTML mail, the Content-type header must be set
$headers[] = 'MIME-Version: 1.0';
$headers[] = 'Content-type: text/html; charset=iso-8859-1';
// Mail it
$result = mail($email, $subject, $message, implode("\r\n", $headers));
return $result;
}
}
?>