Forums

HTML e-mails

abasel 06 Mar, 2008
Is there a link to a page explaining how to send a html formated e-mail to a person once they have submitted a form?
GreyHead 06 Mar, 2008
Hi abasel,

If you *only* want to send a thank-you email to the submitter then you can use the email template for this.

If you want to send a results email to an admin, and a different email to the submitter then you can do this from the OnSubmit after email field. Here's an example:
<?php 
$recipient = $_POST['email']; 
$subject = "Our Website- thanks"; 
$html_message = " 
<p>Thank you for submitting a feedback form.</p> 
<p>. . . some text . . .</p> 
<p>Best wishes,<br />The Our Website Team</p>"; 
mosMail($from, $fromname, $recipient, $subject, $html_message, true ); 
echo $html_message;
This version actually both sends an email and show the same message on the Thank You page.

Bob
sustainmadison 26 Aug, 2009
Is this the full code?

Didn't send an email for me.
GreyHead 26 Aug, 2009
Hi sustainmadison,

That's very old Joomla 1.0 code. Please check the email tutorial.

Bob
This topic is locked and no more replies can be posted.