I would be glad to help. But I am not sure if this is the best solution. I am using it as a workaround to achieve the objective but will be glad if jSebold comes up with a concrete solution for sending mails (much like chronoforms). Here is what I did:
I am using the
Free Code PHP field in my content type (form and content panel) and calling the standard Joomla function (JMailer) to send the mail. Here is the code that I put in the php field:
//Fetching the user name and email to address the mail
$user = &JFactory::getUser();
$user_mail= $user->email;
$user_name= $user->name;
//This part is my html email message body
$email_message = '<br /> Dear '. $user->name.',<br /><br /> Thank you for submitting your document to Oracle Champions.<br /> We will now inspect your document to see if everything is complaint to our terms and then we will be able to publish it. Once Published, you will be able to view the document when you log in to Oracle Champions.<br /> Here are the steps to verify whether your article is published or not:<br /> <br /><ol>
<li> Log in to
www.oraclechamps.com</li>
<li> Upon Log in, you will be directed to Your profile Page. </li>
<li> On your Profile page, check for the Section My Documentations</li>
<li> Your last 3 accepted documents will show there. Click on the "Show All" button to view all your articles.</li>
</ol> <br /> If accepted, you will be paid $1 per article (Your first article will NOT be paid as this will be considered as a registration charge for Intended serious candidates only). Thereafter, every month-end, we process the payments and send it to your Paypal Account.<br /> <br /> Thanks & Regards<br /> Administrator<br /> Oracle Champions
';
//Here I shoot the email using the JMailer Function
$mailer =& JFactory::getMailer();
$config =& JFactory::getConfig();
$sender = array($config->getValue( 'config.mailfrom' ),$config->getValue( 'config.fromname' ) );
$mailer->setSender($sender);
$mailer->addRecipient($user_mail);
$mailer->addBCC('
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.
');
$mailer->setSubject('New Document Received');
$mailer->isHTML(true);
$mailer->setBody($email_message);
$send =& $mailer->Send();
if ( $send !== true ) {
echo 'Error sending email: ' . $send->message;
}
else echo 'Mail sent to '.$user_mail;
Hope this helps as a workaround. I repeat, it would be great to have email functionality (to be best to the registered user) as an out of the box solution
ashishb01