|
@@ -59,12 +59,10 @@
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
|
|
+ if (strpos($array[$i], '@') === false)
|
|
|
|
+ $array[$i] .= '@' . $domain;
|
|
$array[$i] = '<' . $array[$i] . '>';
|
|
$array[$i] = '<' . $array[$i] . '>';
|
|
}
|
|
}
|
|
-
|
|
|
|
- if (strpos($array[$i], '@') === false) {
|
|
|
|
- $array[$i] .= '@' . $domain;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
return $array;
|
|
return $array;
|
|
}
|
|
}
|
|
@@ -78,6 +76,9 @@
|
|
if (isMultipart()) {
|
|
if (isMultipart()) {
|
|
foreach ($attachments as $info)
|
|
foreach ($attachments as $info)
|
|
{
|
|
{
|
|
|
|
+// echo "<pre>Attachment Info:\n";
|
|
|
|
+// var_dump($info);
|
|
|
|
+// echo "\n</pre>\n";
|
|
if (isset($info['type']))
|
|
if (isset($info['type']))
|
|
$filetype = $info['type'];
|
|
$filetype = $info['type'];
|
|
else
|
|
else
|
|
@@ -99,6 +100,7 @@
|
|
$tmp = str_replace("\r\n", "\n", $tmp);
|
|
$tmp = str_replace("\r\n", "\n", $tmp);
|
|
$tmp = str_replace("\r", "\n", $tmp);
|
|
$tmp = str_replace("\r", "\n", $tmp);
|
|
$tmp = str_replace("\n", "\r\n", $tmp);
|
|
$tmp = str_replace("\n", "\r\n", $tmp);
|
|
|
|
+ $tmp .= "\r\n";
|
|
fputs($fp, $tmp);
|
|
fputs($fp, $tmp);
|
|
$length += strlen($tmp);
|
|
$length += strlen($tmp);
|
|
}
|
|
}
|