function confirm_b2c_order($to, $session) {
$from_email = "noreply@tehnokomercpro.com";
$subject = 'TEHNOKOMERC PRO |Porudžbine | B2C';
$message = "
<html xmlns:v=\"urn:schemas-microsoft-com:vml\"
xmlns:o=\"urn:schemas-microsoft-com:office:office\"
xmlns:w=\"urn:schemas-microsoft-com:office:word\"
xmlns:m=\"
http://schemas.microsoft.com/office/2004/12/omml\"
xmlns=\"
http://www.w3.org/TR/REC-html40\">
<head>
<meta http-equiv=Content-Type content=\"text/html; charset=utf-8\">
</head>
<body lang=EN-US style='tab-interval:36.0pt'>
<div class=WordSection1>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span class=SpellE><span lang=FR style='font-size:
9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:FR'>Postovani</span></span><span lang=FR
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000;mso-ansi-language:FR'><o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=FR style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:FR'> <o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=FR style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:FR'>Ovo
je <span class=SpellE>potvrda</span> va</span><span lang=SR-LATN-RS
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>še porudžbenice
sa Tehnokomerc Pro B2C sistema</span><span lang=FR style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:FR'><o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'> </span><span lang=FR
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000;mso-ansi-language:FR'><o:p></o:p></span></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
style='background:white;border-collapse:collapse;mso-yfti-tbllook:1184;
mso-padding-alt:0cm 0cm 0cm 0cm'>
<tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
<td width=160 valign=top style='width:119.7pt;border-top:solid #4F81BD 1.0pt;
border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>Naziv</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border-top:solid #4F81BD 1.0pt;
border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>Količina</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border-top:solid #4F81BD 1.0pt;
border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>Cena sa Pdvom</span><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border-top:solid #4F81BD 1.0pt;
border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>Ukupno</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
";
$total_price = "0";
$row_counter = "1";
foreach($session["products"] as $product) {
$row_total_price = 1.2*($product['product_price']*$product['product_qty']);
$row_unit_price = 1.2*$product['product_price'];
$total_price = $total_price + $row_total_price;
$message .= "
<tr style='mso-yfti-irow:".$row_counter."'>
<td width=160 valign=top style='width:119.7pt;background:#D3DFEE;padding:
0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><b><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".$product['product_name']."</span></b><span style='font-size:12.0pt;
font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;background:#D3DFEE;padding:
0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".$product['product_qty']."</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;background:#D3DFEE;padding:
0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".number_format($row_unit_price, 2, ',', '.')." din</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;background:#D3DFEE;padding:
0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".number_format($row_total_price, 2, ',', '.')." din</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
";
$row_counter++;
}
$message .= "
<tr style='mso-yfti-irow:".$row_counter.";mso-yfti-lastrow:yes'>
<td width=160 valign=top style='width:119.7pt;border:none;border-bottom:solid #4F81BD 1.0pt;
background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><b><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'> </span></b><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border:none;border-bottom:solid #4F81BD 1.0pt;
background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'> </span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border:none;border-bottom:solid #4F81BD 1.0pt;
background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><b><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>UKUPNO</span></b><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border:none;border-bottom:solid #4F81BD 1.0pt;
background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".number_format($total_price, 2, ',', '.')." din</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
</table>
";
$message .= "
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'> </span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
<p class=MsoNormal style='margin-top:0cm;margin-right:0cm;margin-bottom:0cm;
margin-left:54.0pt;margin-bottom:.0001pt;line-height:normal;background:white'><span
lang=SR-LATN-RS style='font-family:Symbol;mso-fareast-font-family:\"Times New Roman\";
mso-bidi-font-family:Calibri;color:red;mso-ansi-language:SR-LATN-RS'>·</span><span
lang=SR-LATN-RS style='font-size:7.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:red;mso-ansi-language:SR-LATN-RS'> </span><span
class=SpellE><i><span style='mso-ascii-font-family:Calibri;mso-fareast-font-family:
\"Times New Roman\";mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;
color:red'>Nisu</span></i></span><i><span style='mso-ascii-font-family:Calibri;
mso-fareast-font-family:\"Times New Roman\";mso-hansi-font-family:Calibri;
mso-bidi-font-family:Calibri;color:red'> <span class=SpellE>ura</span></span></i><i><span
lang=SR-LATN-RS style='mso-ascii-font-family:Calibri;mso-fareast-font-family:
\"Times New Roman\";mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;
color:red;mso-ansi-language:SR-LATN-RS'>čunati troškovi isporuke koji će pri
dostavi biti naplaćeni po cenovniku kurirske službe.</span></i><span
style='mso-ascii-font-family:Calibri;mso-fareast-font-family:\"Times New Roman\";
mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;color:#000'><o:p></o:p></span></p>
<p class=MsoNormal style='margin-top:0cm;margin-right:0cm;margin-bottom:0cm;
margin-left:54.0pt;margin-bottom:.0001pt;line-height:normal;background:white'><span
lang=SR-LATN-RS style='mso-ascii-font-family:Calibri;mso-fareast-font-family:
\"Times New Roman\";mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;
color:#000;mso-ansi-language:SR-LATN-RS'> </span><span
style='mso-ascii-font-family:Calibri;mso-fareast-font-family:\"Times New Roman\";
mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;color:#000'><o:p></o:p></span></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left
style='background:white;border-collapse:collapse;mso-yfti-tbllook:1184;
mso-table-lspace:9.0pt;margin-left:6.75pt;mso-table-rspace:9.0pt;margin-right:
6.75pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:column;
mso-table-left:left;mso-padding-alt:0cm 0cm 0cm 0cm'>
<tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
<td width=319 valign=top style='width:239.4pt;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span class=SpellE><span style='font-size:
12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:black'>Ime</span></span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:black'> I <span class=SpellE>prezime</span></span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
background:#EDF2F8;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:gray'>".$session['user_fname']." ".$session['user_lname']."</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:1'>
<td width=319 valign=top style='width:239.4pt;border:none;border-top:solid #4F81BD 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:black'>Email
<span class=SpellE>adresa</span></span><span style='font-size:12.0pt;
font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
border-top:none;background:#A7BFDE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:gray'>".$to."</span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:2'>
<td width=319 valign=top style='width:239.4pt;border:none;border-top:solid #4F81BD 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span class=SpellE><span style='font-size:
12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:black'>Broj</span></span><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:black'>
<span class=SpellE>telefona</span></span><span style='font-size:12.0pt;
font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
border-top:none;background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:gray'>".$session['user_phone']."</span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:3'>
<td width=319 valign=top style='width:239.4pt;border:none;border-top:solid #4F81BD 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:black'>Grad</span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
border-top:none;background:#A7BFDE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:gray'>".$session['user_city']."</span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:4;mso-yfti-lastrow:yes'>
<td width=319 valign=top style='width:239.4pt;border:none;border-top:solid #4F81BD 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span class=SpellE><span style='font-size:
12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:black'>Adresa</span></span><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
border-top:none;background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span class=SpellE><span style='font-size:
12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:gray'>".$session['ship_adress']."</span></span><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
</table>
<br><br>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><br clear=all
style='mso-special-character:line-break'>
<o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span class=SpellE><span style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'>Va</span></span><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'>š</span><span style='font-size:
9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'>a <span class=SpellE>porud</span></span><span lang=SR-LATN-RS
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>ž</span><span
class=SpellE><span style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'>bina</span></span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'> je <span class=SpellE>uspe</span></span><span
lang=SR-LATN-RS style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>š</span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'>no <span class=SpellE>poslata</span> <span
class=SpellE>i</span> bi</span><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'>ć</span><span style='font-size:
9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'>e <span class=SpellE>obradjena</span> u <span class=SpellE>najkra</span></span><span
lang=SR-LATN-RS style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>ć</span><span
class=SpellE><span style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'>em</span></span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'> <span class=SpellE>mogu</span></span><span
lang=SR-LATN-RS style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>ć</span><span
class=SpellE><span style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'>em</span></span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'> <span class=SpellE>roku</span></span><span
lang=SR-LATN-RS style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>!<br>
Ukoliko ste porudžbinu poslali do 14:00 časova pošiljku očekujte u toku
sledećeg radnog dana.<o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'>Ukoliko ste porudžbinu poslali u
Subotu ili Nedelju pošiljku očekujte u Utorak.<br>
<br>
Hvala vam što koristite naš B2B sistem.<br>
<br>
Vaš Tehnokmerc Pro Tim<br>
<br>
<b>Tehnička podrška</b><br>
Dragan Plavšić<br>
00381 63 652 404<br>
<br>
<b>Logistička podrška</b><br>
Filip Novaković<br>
00381 63 652 405<br>
<br>
<b>Administracija B2B sistema</b><br>
Nenad Topličanin<br>
00381 63 639 396<o:p></o:p></span></p>
<p class=MsoNormal><span lang=SR-LATN-RS style='mso-ansi-language:SR-LATN-RS'><o:p> </o:p></span></p>
</div>
</body>
</html>
";
$boundary = md5("tehnokomerpro");
//header
$headers = "MIME-Version: 1.0\r\n";
$headers .= "From:".$from_email."\r\n";
$headers .= "Reply-To: ".$from_email."" . "\r\n";
$headers .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n";
//plain text
$body = "--$boundary\r\n";
$body .= "Content-Type: text/html;charset=utf-8\r\n";
$body .= "Content-Transfer-Encoding: base64\r\n\r\n";
$body .= chunk_split(base64_encode($message));
if(mail($to, $subject, $body, $headers)) {
return true;
} else {
return false;
}
}
?>