Hi..🙂 ..
I don't understand the syntax you wrote
<?php
$recipient = $_POST['email'];
$html_message = '<html>
<head>
<STYLE type="text/css">
. . .
</STYLE>
</head>
<body>
<div align="center"><br>
<table . . .>
. . .
<tr>
<td>
. . .
Estmado(a) '.<?php echo $_POST['nombre']?>,
On my webserver it is not possible to set a second PHP-script code in an other script syntax which was not already closed with ?>.
The server replies with a syntax error if I try your script.
Here is my test script
<?php
$recipient = $_POST['fromemail'];
$html_message = '<html>
<head>
<STYLE type="text/css">
</STYLE>
</head>
<body>
<div align="center"><br>
Hello <?php echo $_POST['fromname']?>
</div>
</body>
</html>';
mosMail($from, $fromname, $recipient, $subject, $html_message, true );
?>
This code will not be executed from the engine.. and if I try this..
<?php
$recipient = $_POST['fromemail'];
$html_message = '<html>
<head>
<STYLE type="text/css">
</STYLE>
</head>
<body>
<div align="center"><br>
Hello <?php ?>
</div>
</body>
</html>';
mosMail($from, $fromname, $recipient, $subject, $html_message, true );
?>
I got an e-mail with the real PHP script code. which means that the server has not executed the PHP code which is included in another PHP code.
Is it realy possible to set code like this?
<?php $recipient = $_POST['email'];
<?php echo $_POST['fromname'] ?> ?>
I think that's the reason why the server replies with a syntax error. : o( .
Edited to add code tags<br><br>Post edited by: GreyHead, at: 2008/02/05 23:34