• Hello,

    I used this tutorial to generate a QR code, but how could I insert it into the client’s email?

    I used this code in form:

    
    <div id="qrcode"></div>
    <script src="https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@master/qrcode.js"></script> 
    <script type="text/javascript">
    var wpcf7Elm = document.querySelector( '.wpcf7' );
    wpcf7Elm.addEventListener( 'wpcf7mailsent', function( event ) { 
     setTimeout(function() {
      var respElem= document.querySelector( '.wpcf7-response-output' );
      var resp = respElem.innerHTML.split("%%");
      respElem.innerHTML = resp[0];
      new QRCode(document.getElementById("qrcode"), resp[1] ); 
     }, 100);
    }, false );
    </script>

    and in message body i use: %%[_date]-[_serial_number]. But it seems that the image with that qr code is not displayed.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Show QR code on e-mail’ is closed to new replies.