This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

<br/> in email subject field


  1. icore
    Member

    We created a form for inquiries that are forwarded to an email address. The 'Subject' field contains value of a Checklist field.

    The problem is that "<br/>" is appearing along with the value. For example, if the customer selects 'Option 1' the email shows 'Option 1 <br/>'.

    Posted 15 years ago #
  2. redityo

    Hi,

    You have to edit "include/helper-functions.php" file, search around line 439 you will find this code :

    $mail->Subject = str_replace('&nbsp;','',$subject);

    and insert this code below line 439

    $mail->Subject = str_replace('',' ',$subject);

    MachForm Support

    Posted 15 years ago #
  3. icore
    Member

    I made the change as you suggested, but it did not work.

    Any other suggestions?

    Posted 15 years ago #
  4. redityo

    Upss ... I'm sorry my bad .. the change should like this :

    $mail->Subject = str_replace('<br />',' ',$subject);

    please try it :)


    MachForm Support

    Posted 15 years ago #

RSS feed for this topic

Reply