close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Hi, for some reason Universal email send mail header wrongly to mail server.

Thread began 12/10/2013 5:10 am by juha.morsky57580 | Last modified 12/19/2013 12:54 pm by juha.morsky57580 | 538 views | 10 replies

juha.morsky57580

Hi, for some reason Universal email send mail header wrongly to mail server.

Here is the mail source:

Please note row: Content-Type: text/html" there is extra ' " ' after text/html and it cause that receiver do not get mail in HTML format.

Then UTF-8 definition is missing as well from the header?

Regards
Juha

Received: from localhost
by mail.xx.com (FAPPS Mail server 10.2) with ASMTP (SSL) id LPN74011;
Tue, 10 Dec 2013 11:47:34 +0200
MIME-Version: 1.0
Content-Type: text/html"
From: asiakaspalvelu@xx.fi
Reply-To: asiakaspalvelu@xx.fi
Subject: xx.fi asiakastilaus
To: info@yy.fi, asiakaspalvelu@xx.fi
X-Sender: asiakaspalvelu@xx.fi
X-Priority: 3
Date: Tue, 10 Dec 2013 09:47:14 +0000 (UTC)
Return-Path: <asiakaspalvelu@xx.fi>
Message-ID: <568036686.87d473dd97e08ecc63c1f95dea36bbc9@xx.fi>

<html><head>
<style type="text/css">
body,td,th {
font-family: Verdana, Geneva, sans-serif;
}
</style>
</head><body>
<table width="100%" border="0" cellpadding="10">
<tr>
<td><a href="http://xxx.fi"><img src="http://www.xxx.fi/images/logo.gif" width="326" height="41" /></a></td>
</tr>
</table>
<h1>Tilaus <strong>1978</strong></h1>
<table width="100%" border="0">
<tr>
<td width="12%" valign="top" bgcolor="#FFFFCC">Tilausnumero / aika</td>
<td width="88%" valign="top" bgcolor="#FFFFCC"><strong>1978 / 2013-12-10 11:45:37</strong></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFCC">Toimitusosoite</td>
<td valign="top" bgcolor="#FFFFCC">xxx xxx tel: 044-+00000000<br />
Pihkatie 20 d 17<br />
15870 Hollola<br /></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFCC">tilaajan email:</td>
<td valign="top" bgcolor="#FFFFCC">xx@xx.fi</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td width="10%" valign="top" bgcolor="#FFFFCC"><strong>Tilausrivit</strong></td>
<td width="9%" valign="top" bgcolor="#FFFFCC"><strong>KPL</strong></td>
<td width="10%" valign="top" bgcolor="#FFFFCC"><strong>Tuotekoodi</strong></td>
<td width="21%" valign="top" bgcolor="#FFFFCC"><strong>Tuote</strong></td>
<td width="50%" valign="top" bgcolor="#FFFFCC"><strong>Koko</strong></td>
<td width="50%" valign="top" bgcolor="#FFFFCC"><strong>Hinta</strong></td>
</tr>

<tr>
<td valign="top">374</td>
<td valign="top">1</td>
<td valign="top">xx</td>
<td valign="top">xx / </td>
<td valign="top">10</td>
<td valign="top">xx.90</td>
</tr>

<tr>
<td valign="top">870</td>
<td valign="top">1</td>
<td valign="top">Sanuk_SMF1001_CHR</td>
<td valign="top">Sanuk/ Vagabond / CHR</td>
<td valign="top">10</td>
<td valign="top">59.00</td>
</tr>

</table>
<p><a href="http://xx.fi/ware/pdf/pakkalistamail.php?id=1fbgqsozh74l&amp;id2=11">1. Tulosta lähetyslista tästä linkistä.<br />
</a></p>
<p><a href="http://xx.fi/ware/varastoonpano_email.php?id=1fbgqsozh74l&amp;id2=11" target="_blank">2. Kun olet lähettänyt tilauksen eteenpäin, klikkaa tästä. Niin toimittaja ja Ostaja saavat tiedon tilauksen lähetyksestä</a></p>
<p><br />
Terveisin<br />
xx.fi Asiakaspalvelu</p>
<p>asiakaspalvelu@xx.fi</p>

</body></html>


Here is php source:

<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "".$row_recParas['aspemail'] ."";
$MailSubject = $s_nimi;
$MailSubject = $MailSubject." asiakastilaus";
$_SERVER["QUERY_STRING"] = "";

//Global Variables

$WA_MailObject = WAUE_Definition("/usr/share/pear/","xx.xx.xx.xx","25","xxxx","xxxx","true","","","","UTF-8");

if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
}
else {
//To Entries
}

//Additional Headers

//Attachment Entries

//BCC Entries
$WA_MailObject = WAUE_AddBCC($WA_MailObject,"asiakaspalvelu@xxx.fi");

//CC Entries

//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,0);

//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"3");

//Start Mail Body
$MailBody = $MailBody . "<html><head>\r\n";
$MailBody = $MailBody . "<style type=\"text/css\">\r\n";
$MailBody = $MailBody . "body,td,th {\r\n";
$MailBody = $MailBody . " font-family: Verdana, Geneva, sans-serif;\r\n";
$MailBody = $MailBody . "}\r\n";
$MailBody = $MailBody . "</style>\r\n";
$MailBody = $MailBody . "</head><body>\r\n";
$MailBody = $MailBody . "<table width=\"100%\" border=\"0\" cellpadding=\"10\">\r\n";
$MailBody = $MailBody . " <tr>\r\n";
$MailBody = $MailBody . " <td><a href=\"http://";
$MailBody = $MailBody . $s_nimi;
$MailBody = $MailBody . "\"><img src=\"";
$MailBody = $MailBody . $s_logo;
$MailBody = $MailBody . "\" width=\"326\" height=\"41\" /></a></td>\r\n";
$MailBody = $MailBody . " </tr>\r\n";
$MailBody = $MailBody . "</table>\r\n";
$MailBody = $MailBody . "<h1>Tilaus <strong>";
$MailBody = $MailBody . $row_recTilausrivit['order_id'];
$MailBody = $MailBody . "</strong></h1>\r\n";
$MailBody = $MailBody . "<table width=\"100%\" border=\"0\">\r\n";
$MailBody = $MailBody . " <tr>\r\n";
$MailBody = $MailBody . " <td width=\"12%\" valign=\"top\" bgcolor=\"#FFFFCC\">Tilausnumero / aika</td>\r\n";
$MailBody = $MailBody . " <td width=\"88%\" valign=\"top\" bgcolor=\"#FFFFCC\"><strong>";
$MailBody = $MailBody . $row_recTilausrivit['order_id'];
$MailBody = $MailBody . " / ";
$MailBody = $MailBody . $row_recTilausrivit['pvm'];
$MailBody = $MailBody . "</strong></td>\r\n";
$MailBody = $MailBody . " </tr>\r\n";
$MailBody = $MailBody . " <tr>\r\n";
$MailBody = $MailBody . " <td valign=\"top\" bgcolor=\"#FFFFCC\">Toimitusosoite</td>\r\n";
$MailBody = $MailBody . " <td valign=\"top\" bgcolor=\"#FFFFCC\">";
$MailBody = $MailBody . $row_recTilaaja['etunimi'];
$MailBody = $MailBody . " ";
$MailBody = $MailBody . $row_recTilaaja['sukunimi'];
$MailBody = $MailBody . " tel: ";
$MailBody = $MailBody . $row_recTilaaja['tel'];
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . " ";
$MailBody = $MailBody . $row_recTilaaja['street'];
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . " ";
$MailBody = $MailBody . $row_recTilaaja['zip'];
$MailBody = $MailBody . " ";
$MailBody = $MailBody . $row_recTilaaja['city'];
$MailBody = $MailBody . "<br /></td>\r\n";
$MailBody = $MailBody . " </tr>\r\n";
$MailBody = $MailBody . " <tr>\r\n";
$MailBody = $MailBody . " <td valign=\"top\" bgcolor=\"#FFFFCC\">tilaajan email:</td>\r\n";
$MailBody = $MailBody . " <td valign=\"top\" bgcolor=\"#FFFFCC\">";
$MailBody = $MailBody . $row_recTilaaja['mailiosoite'];
$MailBody = $MailBody . "</td>\r\n";
$MailBody = $MailBody . " </tr>\r\n";
$MailBody = $MailBody . " <tr>\r\n";
$MailBody = $MailBody . " <td>&nbsp;</td>\r\n";
$MailBody = $MailBody . " <td>&nbsp;</td>\r\n";
$MailBody = $MailBody . " </tr>\r\n";
$MailBody = $MailBody . "</table>\r\n";
$MailBody = $MailBody . "<table width=\"100%\" border=\"0\">\r\n";
$MailBody = $MailBody . " <tr>\r\n";
$MailBody = $MailBody . " <td width=\"10%\" valign=\"top\" bgcolor=\"#FFFFCC\"><strong>Tilausrivit</strong></td>\r\n";
$MailBody = $MailBody . " <td width=\"9%\" valign=\"top\" bgcolor=\"#FFFFCC\"><strong>KPL</strong></td>\r\n";
$MailBody = $MailBody . " <td width=\"10%\" valign=\"top\" bgcolor=\"#FFFFCC\"><strong>Tuotekoodi</strong></td>\r\n";
$MailBody = $MailBody . " <td width=\"21%\" valign=\"top\" bgcolor=\"#FFFFCC\"><strong>Tuote</strong></td>\r\n";
$MailBody = $MailBody . " <td width=\"50%\" valign=\"top\" bgcolor=\"#FFFFCC\"><strong>Koko</strong></td>\r\n";
$MailBody = $MailBody . " <td width=\"50%\" valign=\"top\" bgcolor=\"#FFFFCC\"><strong>Hinta</strong></td>\r\n";
$MailBody = $MailBody . " </tr>\r\n";
$MailBody = $MailBody . " ";
do {
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . " <tr>\r\n";
$MailBody = $MailBody . " <td valign=\"top\">";
$MailBody = $MailBody . $row_recTilausrivit['tilausrivi'];
$MailBody = $MailBody . "</td>\r\n";
$MailBody = $MailBody . " <td valign=\"top\">";
$MailBody = $MailBody . $row_recTilausrivit['maara'];
$MailBody = $MailBody . "</td>\r\n";
$MailBody = $MailBody . " <td valign=\"top\">";
$MailBody = $MailBody . $row_recTilausrivit['prodno'];
$MailBody = $MailBody . "</td>\r\n";
$MailBody = $MailBody . " <td valign=\"top\">";
$MailBody = $MailBody . $row_recTilausrivit['valmistaja'];
$MailBody = $MailBody . "/ ";
$MailBody = $MailBody . $row_recTilausrivit['nimi'];
$MailBody = $MailBody . " / ";
$MailBody = $MailBody . $row_recTilausrivit['malli'];
$MailBody = $MailBody . "</td>\r\n";
$MailBody = $MailBody . " <td valign=\"top\">";
$MailBody = $MailBody . $row_recTilausrivit['koko'];
$MailBody = $MailBody . "</td>\r\n";
$MailBody = $MailBody . " <td valign=\"top\">";
$MailBody = $MailBody . $row_recTilausrivit['hinta'];
$MailBody = $MailBody . "</td>\r\n";
$MailBody = $MailBody . " </tr>\r\n";
$MailBody = $MailBody . " ";
} while ($row_recTilausrivit = mysql_fetch_assoc($recTilausrivit));
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "</table>\r\n";
$MailBody = $MailBody . "<p><a href=\"http://";
$MailBody = $MailBody . $s_nimi;
$MailBody = $MailBody . "/ware/pdf/pakkalistamail.php?id=";
$MailBody = $MailBody . $row_recTilaus['randomi'];
$MailBody = $MailBody . "&amp;id2=";
$MailBody = $MailBody . $row_recMailit['id'];
$MailBody = $MailBody . "\">1. Tulosta lähetyslista tästä linkistä.<br />\r\n";
$MailBody = $MailBody . "</a></p>\r\n";

if($row_recMailit['itellaavain']!="")
{
$MailBody = $MailBody . "<p><a href=\"http://";
$MailBody = $MailBody . $s_nimi;
$MailBody = $MailBody . "/batch/prinettisend.php?ORDER_NUMBER=";
$MailBody = $MailBody . $row_recTilaus['id'];
$MailBody = $MailBody . "&amp;mid=";
$MailBody = $MailBody . $myyjaid;
$MailBody = $MailBody . "\">1.1 Tulosta Itellan rahtikirja tästä linkistä.<br />\r\n";
$MailBody = $MailBody . "</a></p>\r\n";
}


$MailBody = $MailBody . "<p><a href=\"http://";
$MailBody = $MailBody . $s_nimi;
$MailBody = $MailBody . "/ware/varastoonpano_email.php?id=";
$MailBody = $MailBody . $row_recTilaus['randomi'];
$MailBody = $MailBody . "&amp;id2=";
$MailBody = $MailBody . $row_recMailit['id'];
$MailBody = $MailBody . "\" target=\"_blank\">2. Kun olet lähettänyt tilauksen eteenpäin, klikkaa tästä. Niin toimittaja ja Ostaja saavat tiedon tilauksen lähetyksestä</a></p>\r\n";
$MailBody = $MailBody . "<p><br />\r\n";
$MailBody = $MailBody . " Terveisin<br />\r\n";
$MailBody = $MailBody . $s_nimi;
$MailBody = $MailBody . "Asiakaspalvelu</p>\r\n";
$MailBody = $MailBody . "<p>".$row_recParas['aspemail']."</p>\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "</body></html>";
//End Mail Body

$WA_MailObject = WAUE_SendMail($WA_MailObject,$MailAttachments,$MailBCC,$MailCC,$MailTo,$MailImportance,$MailFrom,$MailSubject,$MailBody,"waue_return_3");

if (isset($_SESSION["waue_return_3_Status"])) {
$MailLogBindings = new WAUE_Log_Bindings();
//Start Log Bindings
//Success Or Failure
$MailLogBindings->SuccessOrFailure->ToDo = "none";
$MailLogBindings->SuccessOrFailure->Connection = "";
$MailLogBindings->SuccessOrFailure->TableName = "";
$MailLogBindings->SuccessOrFailure->EmailColumn = "";
$MailLogBindings->SuccessOrFailure->ColumnList = array();
$MailLogBindings->SuccessOrFailure->TypeList = array();
$MailLogBindings->SuccessOrFailure->ValueList = array();
//Success Only
$MailLogBindings->Success->ToDo = "none";
$MailLogBindings->Success->Connection = "";
$MailLogBindings->Success->TableName = "";
$MailLogBindings->Success->EmailColumn = "";
$MailLogBindings->Success->ColumnList = array();
$MailLogBindings->Success->TypeList = array();
$MailLogBindings->Success->ValueList = array();
//Failure Only
$MailLogBindings->Failure->ToDo = "none";
$MailLogBindings->Failure->Connection = "";
$MailLogBindings->Failure->TableName = "";
$MailLogBindings->Failure->EmailColumn = "";
$MailLogBindings->Failure->ColumnList = array();
$MailLogBindings->Failure->TypeList = array();
$MailLogBindings->Failure->ValueList = array();
//End Log Bindings
$MailLogBindings->SuccessOrFailure->MailRef = "waue_return_3";
$MailLogBindings->Success->MailRef = "waue_return_3";
$MailLogBindings->Failure->MailRef = "waue_return_3";
$MailLogBindings->processLog(($_SESSION["waue_return_3_Status"] == "Failure"));
}
$WA_MailObject = null;
?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...