this is the leadpages test page
{source}
<!-- You can place html anywhere within the source tags -->
<script language="javascript" type="text/javascript">// You can place JavaScript like this
</script>
<?php
$emailIs = $_POST['email'];
echo" email in Post var is ".$email;
print_r($_POST);
$mailer = JFactory::getMailer();
$config = JFactory::getConfig(); $sender = array( $config->getValue( 'config.mailfrom' ), $config->getValue( 'config.fromname' ) ); $mailer->setSender($sender);
$recipient = array( 'alan.orr@gmail.com' ); $mailer->addRecipient($recipient);
$body = "Your body string\nin double quotes if you want to parse the \nnewlines etc email is ".$emailIs; $mailer->setSubject('Leadpages test mail'); $mailer->setBody($body);
$mailer->isHTML(true); $mailer->Encoding = 'base64'; $mailer->setBody($body);
$send = $mailer->Send(); if ( $send !== true ) { echo 'Error sending email: ' . $send->__toString(); } else { echo 'Mail sent'; }
?>
{/source}