Okay
  Public Ticket #2564449
email notification line spacing
Closed

Comments

  • Libby started the conversation

    My email notifications are working fine, but the received emails are all double-spaced.  I found a couple of other tickets reporting the same problem and went to make the change within the amelia_settings table but it doesn't exist. Any other suggests or ETA for when this will be fixed?

  • [deleted] replied

    Hello Libby,

    Thank you for your purchase and apologies for replying a bit later, we don't work on weekends and we were out of office on Friday. 

    There is no amelia_settings table, but this is an option in the wp_options table (it can have another prefix rather than wp_ depending on your database). So, you should look for that table and inside it find the amelia_settings option. 

    These are the instructions to change that in the database: 

    In order to remove the spacing between paragraphs, you can edit this in your database from recently. Please open your database, find and open the wp_options table and find the option name amelia_settings there. You need to edit it. You will see a setting notifications in it. You need to set the value <div style='height: 0.1rem'><\/div> for the '' breakReplacement'' parameter . Like here : 

    notifications": {    "breakReplacement": "<div style='height: 0.1rem'><\/div>"
    }
    
    5449010360.png

    If you have any further questions feel free to ask. 

  • Libby replied

    Hi Marija, thanks for your reply.

    I did eventually find the table that needed to be edited but its far from an ideal solution and a pain in the neck if I'm honest as I have to go in and re-edit every time I update any of the email notifications... and I would like to use all of them, so its multiple changes to the database each time.

    Again, any ETA for when this will be fixed without having to fiddle with the database??

  • [deleted] replied

    You are welcome, Libby. 

    Regarding this change, you won't need to do the same after you change something in the notifications, you do it once, it is saved in the database that way and that is it. 

    Modifications of the email notifications, adding HTML which would be needed for this, isn't planned for now, unfortunately, so I can't say exactly if and when this would be implemented in the plugin. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.

  •   Libby replied privately
  •   [deleted] replied privately
  • Libby replied

    Nope, still didn't work :-(

    This is a nightmare.

    Why can't this be fixed within the plugin itself, its kind of deal breaker.

  •   [deleted] replied privately
  •  2
    Morgan replied

    It really is too bad that this fantastic plugin has such a crappy text editor. I managed to switch the mail functionality from plain text to HTML (probably will get over-written), but can't figure out how to update TINYMCE for Amelia (I think that's what's being used?). 


  • [deleted] replied

    Hello Morgan, 

    Amelia doesn't use TINYMCE for that purpose, but VueQuillEditor. 

    We will consider adding HTML possibility to the email notifications in the future for Amelia, but for now it isn't possible, unfortunately. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.

  •  2
    Morgan replied

    It doesn't seem like that hard of an improvement to make. Or maybe have an integration with the WP HTML Mail plugin. This should be a high priority roadmap item.

  • [deleted] replied

    Thank you for the suggestion, Morgan. We will add it to our list.

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.

  • Libby replied

    I found the option, modified it and it still didn't work.


  • [deleted] replied

    Could you please tell me what exactly is not working? 

    Please note that the change is for removing the  spacing between paragraphs only, so could you tell me they are still there in the email notifications after you changed this in the database? 

    If they are, please provide me a temporary WP-admin login for your site where this happens and your database access, so we could log in and take a look. Also, please send me the URL of the page where you have Amelia. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

  • Libby replied

    Removing the double spacing in the notification emails is NOT working. 

    After making the change in the database, there is still double spacing.

    Can you send through better instructions, the ones you sent before didn't quite match what was actually in my database so I can only assume that is the problem. 

    Again though, for the price I really feel like that should be fixed within the plugin itself. I don't understand why its not.

  • [deleted] replied

    The change that we sent you is for removing spacing between paragraphs only.

    Could you tell me what exactly wasn't the same in your database?

    The instructions are the ones we sent you before, there isn't much more that could be mentioned:

    find wp_options table in your database (it can have another prefix than wp_ depending on your database)

    and in it the amelia_settings option

    4704295098.png

    Then edit this option, find notifications in it, and you need to set the value <div style='height: 0.1rem'><\/div> for the '' breakReplacement'' parameter . Like here : 

    notifications": {
        "breakReplacement": "<div style='height: 0.1rem'><\/div>"
    }

    That is it. 

    Unfortunately, at the moment HTML isn't supported in the back-end of Amelia so you can't remove spacing between paragraphs there. We added your vote for this feature request in our list, so we do hope it will be implemented in the future. 

  • Libby replied

    Yes I know it is for only removing spacing... I don't know why you keep repeating that? As that is what I asked for but what you provided DOES NOT WORK. I asked you to resend instructions because they are not very clear and for people who don't fiddle with mysql much, they should be better. Please refer to the screenshot below:

    http://prntscr.com/v3n5ca

  • [deleted] replied

    Yes, you need to add it to the BreakReplacement parameter in notifications like mentioned in the instructions. So, not at the begging of notifications but to BreakReplacement like here 

     "breakReplacement": "<div style="height: 0.1rem"><\/div>"


    Sorry that you need to go through this to remove the spacing, but it is the only way to do so, and I offered to help out if you needed that - I would login to your database and added this for you. 

  • Libby replied

    But that is NOT how it is mentioned in the instructions, there's a heap of other code after "notifications" before the word "BreakReplacement " is found... again you're instructions are NOT very clear.

    I know you offered to do it for me, but to be honest, I was not confident in providing access to my database when the support has been somewhat frustrating so far.... very repetitive unnecessarily and not great instructions. :-(

    I'll try this again tomorrow, over it for now.

  • [deleted] replied

    Sorry that you have that impression of our support, Libby.

    In the instructions it says 

    '

     You need to set the value <div style='height: 0.1rem'><\/div> for the '' breakReplacement'' parameter . Like here : 

    notifications": {    "breakReplacement": "<div style="height: 0.1rem"><\/div>"
    }

    and in the screenshot added you can see there is some code as well, under notifications, before the 'breakReplacement' parameter.

    Sorry to see it wasn't that obvious and we explained for you, we will try to improve these database instructions in the future. 




  • Libby replied

    Argh this is doing my head in, I added the code in after breakReplacement - again didn't work.

    Here is a copy of the section of code where breakReplacement is. Can you please paste in the changes within the code below so I can see how it is supposed to be done. I've followed your instructions, but obviously if one character is out of place it won't work. You don't say to paste within the " or to include the } or what. So just show me please. I have wasted so much time on this already and I'm incredibly frustrated, more so as AGAIN I think its more reasonable to expect that this be resolved on YOUR end within the plugin itself. 

    "","cancelErrorUrl":"","breakReplacement":"","mailgunEndpoint":""},"daysOff":[],"weekSchedule":[{"day":"Monday","time":

  • [deleted] replied

    The breakReplacement parameter should look like this 

    "breakReplacement": "<div style='height: 0.1rem'><\/div></div>"
    

    So, to include it in your code, the part you copied here , this one:

    "","cancelErrorUrl":"","breakReplacement":"","mailgunEndpoint":""},"daysOff":[],"weekSchedule":[{"day":"Monday","time":

    it would look like this with the part that should be added there :

    "","cancelErrorUrl":"","breakReplacement":"<div style='height: 0.1rem'><\/div>","mailgunEndpoint":""},"daysOff":[],"weekSchedule":[{"day":"Monday","time":

    As I can see now, Ticksy code editor transferred ' ' to '' '' in some of the copied code from my previous answers, not sure why, sorry about that, so maybe this caused the issue that the copied code didn't work. 

    Please let me know if this helped! 


  • Libby replied

    Here's 2 screenshots, the first is the changes I made on the table and the second is the resulting screenafter applying the changes:

    http://prntscr.com/v6ofso

    http://prntscr.com/v6ofyq

    Still have double spacing in emails: http://prntscr.com/v6oj88


  • [deleted] replied

    Could you please send me the URL of the page where you have Amelia booking form so we could book one test appointment and check out the email notification? 

  • Libby replied

    The booking feature is paid so you wouldn't be able to checkout without having to set up a coupon etc.

    Can I just send you a test notification? If so what email address should I send to?

    PS - If it helps, I'm using Outlook as my email client.

  •   [deleted] replied privately
  • Libby replied

    I've sent a test notification to your email. As you will see each new line creates a new paragraph <p> rather than just a line break <br>

    It's better than it was, but still not quite right

  • [deleted] replied

    Thank you, I received the email.

    Unfortunately, the change is for removing spacing between paragraphs only, there isn't anything that can be done about how new lines are treated, and to change what you mentioned - if lines are treated as new paragraphs. 

    I will forward this again to our developers so they can check if there is anything that could be done about this for the future updates of Amelia. I do hope at one point in the future we will implement some HTML or other editing options for the email notifications in Amelia, but for now we can't say for sure if and when that could be implemented. 

    Please check if there is such request here and vote for it. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.


  • Dave Barnow replied

    I am also having this issue where every time I switch between notification emails, a <p> tag with a line break is injected. Attached is a video to explain

  • [deleted] replied

    Hello Dave, 

    This wasn't the case in this ticket, the ticket was regarding the view of the actual email received, not the back-end notifications view. I can't reproduce this on our testing website. Could you please open a new Private ticket and give us admin access there so we could log in and take a look? Thank you.