| 1 |
<html> |
| 2 |
|
| 3 |
<head> |
| 4 |
<title>Embperl Tests - use Mail taglib</title> |
| 5 |
</head> |
| 6 |
|
| 7 |
<body> |
| 8 |
[- |
| 9 |
$fdat{Email} = 'richter at embperl dot org' ; |
| 10 |
-] |
| 11 |
|
| 12 |
|
| 13 |
[$ syntax + Mail $] |
| 14 |
|
| 15 |
<mail:send to="[email protected]" |
| 16 |
[$ if $fdat{Email} $] reply-to="[+ $fdat{Email} +]" [$endif$] |
| 17 |
subject="Testmail"> |
| 18 |
Hi, |
| 19 |
this is a test for a new mail tag |
| 20 |
it is send at [+ scalar(localtime) +] |
| 21 |
from Embperl's Mail taglib. |
| 22 |
</mail:send> |
| 23 |
|
| 24 |
[+ "tagend" +]<br> |
| 25 |
|
| 26 |
$? = [+ $? +]<br> |
| 27 |
|
| 28 |
[$ if $? $] |
| 29 |
<h2>Sorry, there was an error, your mail couldn't be send</h2> |
| 30 |
[$else$] |
| 31 |
<h2>Your mail was successfully delivered</h2> |
| 32 |
[$endif$] |
| 33 |
|
| 34 |
</body> |
| 35 |
</html> |
| 36 |
|