Discussions

 View Only
  • 1.  Mailto: open in new window

    Posted 06-08-2022 11:19
    I have a mailto: button in formula-rich text code that works fine and will launch and populate an email with text and fields from QB.  It works fine, but it takes the user away from the original form with the button.  I want it to open in a new browser window WITHOUT having to right click and select "open in new window."

    Is that possible?

    ------------------------------
    Jeff Elliott
    ------------------------------


  • 2.  RE: Mailto: open in new window

    Posted 06-08-2022 11:27
    Can you post your code?

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 3.  RE: Mailto: open in new window

    Posted 06-08-2022 11:38
    "<a class=\"Vibrant Alert\" href=\"https://outlook.office.com/owa/?path=/mail/action/compose&to="&[Email to Send]&"&subject="&[First Name]&"&\" \">BUTTON TEXT</a>"

    ------------------------------
    Jeff Elliott
    ------------------------------



  • 4.  RE: Mailto: open in new window

    Posted 06-08-2022 12:21
    try this

    "<a class=\"Vibrant Alert\" target='_blank' href=\"https://outlook.office.com/owa/?path=/mail/action/compose&to="&[Email to Send]&"&subject="&[First Name]&"&\" \">BUTTON TEXT</a>"

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 5.  RE: Mailto: open in new window

    Posted 06-08-2022 17:36
    That worked perfectly. Thanks Mark!  

    If not too much trouble, I'm trying to figure out how to change the font type and size in the href (so the email subject and body are certain font/size).  If you have any suggestions, that would be great...  same code.

    ------------------------------
    Jeff Elliott
    ------------------------------



  • 6.  RE: Mailto: open in new window

    Posted 06-08-2022 17:47
    As far as I know that is not possible.  That MailTo command is very generic and will work on all email systems.  It does not support Rich Text.  I imagine if you start trying even to bold your subject one or body with <b> it will just write those characters into the email.  But I have never actually tried to test that so I would welcome someone to prove me wrong.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 7.  RE: Mailto: open in new window

    Posted 06-11-2022 10:25
    Mark, 
    Richtext works fine .

    ------------------------------
    Prashant Maheshwari
    ------------------------------