Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Form Modules not triggering mail in html format

edited October 2017 in Modules
I have configured contact form using fuel forms modules . i'm able to get mail notification , but only in plain text format.

i have updated the setting is in config/email.php files as :

$config['mailtype'] = "html";

Still getting mail in text format .

BELOW ARE FORM PARAM's :

'contact' => array(
'anti_spam_method' => array('method' => 'honeypot'),
'after_submit_text' => 'Your inquiry has been successfully sent.',
'email_recipients' => array('laxmanteja.m@outlook.com'),
'email_cc' => array('laxmanteja.m@outlook.com'),
'javascript_submit' => FALSE,
'javascript_validate' => TRUE,
'form_action' => '/forms/process/contact',
'submit_button_text' => 'Submit',
'reset_button_text' => 'Reset',
'form_display' => 'auto',//auto,block
'block_view' => 'application_form',
'email_subject' => 'Subject for the mail',
'email_message' => '

Mail Temaplate

',
'fields' => array(
'fullname' => array('required' => TRUE, 'label' => 'Full Name'),
'phone' => array('type' => 'phone', 'required' => TRUE, 'label' => 'Phone'),
'email' => array('type' => 'email', 'required' => TRUE),
'comments' => array('type' => 'textarea', 'rows' => 5, 'label' => 'Comments & Questions'),
),
'hooks' => array(
//'pre_notify' => 'my_form_post_process'
)
)

Comments

  • edited 12:51AM
    You can specify on your form object "mail_type" = "html":
    <?=form('my_form', array('mail_type' => 'html'))?>
Sign In or Register to comment.