<?php if (!isset($_POST['value'])) { $_POST['value'] = ''; } ?> <html> <head> <title>Mail</title> </head> <body> <form action="" method="post"> <textarea name="value" rows="5" cols="50"><?php echo $_POST['value']; ?> </textarea> <br> <input type="submit" value="Submit"> </form> <?php if ($_POST['value']) { $message = 'Testing is sending a letter with the PHP mail ()'; JBDump::mail($message, 'JBDump test', $_POST['value']); } ?> </body> </html>
<?php /** * @package JBDump test * @version 1.2.0 * @author admin@joomla-book.ru * @link http://joomla-book.ru/ * @copyright Copyright (c) 2009-2011 Joomla-book.ru * @license GNU General Public License version 2 or later; see LICENSE */ include './included_file.php'; JBDump::showErrors(); ?> <h3>Code</h3><?php JBDump(file_get_contents(__FILE__), 0, '-= Code =-::source'); echo 'Disabled for demo'; JBDump::off(); JBDump::mail('Test message'); JBDump::mail('Test message', null, '*****@*****.**'); JBDump::mail('Test message', 'Test subject text', null); JBDump::mail('Test message', 'Test subject text', '*****@*****.**'); JBDump::i()->mail(array('test' => 'test2', 'test4' => 'test3'));