Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @vividground

    I hope you are doing well.

    I was able to replicate this situation on my lab site, it will work if we add a blank space before the tag:

    {name-1} – On Page Enquiry < assign [email protected] > < assign [email protected] >

    This is probably happening because those tags are also used to render scripts

    <script>

    So keeping it would increase the vulnerability and could cause some XSS attacks.

    Maybe Zapier can be used as an alternative to integrate to ClickUp? https://zapier.com/apps/clickup/integrations https://wpmudev.com/blog/zapier-wordpress-form-integrations/

    Let us know if Zapier would work or if you are fine with keeping the < > and we can ping our developers to verify if we can bypass this.

    Best Regards
    Patrick Freitas

    Thread Starter Vivid Ground

    (@vividground)

    Zapier needs a premium account which we dont have. And the space is helping for the subject to be sent but it’s not being read by Clickup. It only reads it when its there without spaces.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @vividground

    Thank you for response!

    Can you try one more thing, please?

    Replace the < and > characters in subject with with their HTML encoded versions, like this (no spaces)

    {name-1} – On Page Enquiry <assign [email protected]> <assign [email protected]>

    This will make e-mail be sent but I’m not sure if Clickup is able to parse HTML encoded characters. I’m assuming it should be but please give it a go.

    If it still doesn’t work, then keep the subject this way but additionally add this code to the site as MU plugin:

    <?php 
    
    add_filter( 'wp_mail', 'wpmu_frmt_clickup_mail', 10, 1 );
    function wpmu_frmt_clickup_mail( $args ) {
    	
    	if ( stripos( $args['subject'], 'On Page Enquiry' ) ) {
    		$args['subject'] = html_entity_decode( $args['subject'] );
    	}
    	
    	return $args;
    }

    To add it:
    – create an empty file with a .php extension (e.g. “forminator-clickup-mail.php”)
    – copy and paste code into it
    – make sure that the “On Page Enquiry” string in that code is the string that is used in actual e-mail subject (I referred to your example but if it’s different, do update it)
    – save the file and upload it to the “/wp-content/mu-plugins” folder of your site’s WP install

    This should work, I believe, because e-mails are delivered with this code (and that specific subject settings) in correct format.

    Best regards,
    Adam

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi again @vividground

    I just noticed that, apparently, forum software has replaces HTML encoded characters in my post above.

    What I meant by replacements in subject line was to replace characters as on these pictures

    2022-08-10_17-19-58

    2022-08-10_17-21-18

    so ultimately it would be like this

    2022-08-10_17-22-44

    I hope this goes through fine now.

    Best regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @vividground ,

    We haven’t heard from you for a while now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Subject Not Correct’ is closed to new replies.