qr code in email

More info.... The qr code DOES work in a pdf when sent AFTER the form has processed (from details page). It does not work in the email or attached as a pdf via form plugin 'email'.
 
Does the form plugin matter? Email is listed last after php (for qr code generation) and paypal (which is currently disabled for testing).
 
Hmmm, not sure if it'll work in emails because the QR code is actually generated with a call like this ...

Code:
<img src="http://your.server/index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=field&method=ajax_renderQRCode&format=raw&element_id=3&formid=1&rowid=3&repeatcount=0">

... i.e. it is created on the fly with a PHP script, rather than being a static image. And I dont think mail clients don't like that kind of thing.

I'll test it here and let you know.

-- hugh
 
Updated from git & tested it a couple times and it didn't work, nothing in the email or attached pdf.

Since it works in a pdf that is sent after the transaction, how would I set up an email with pdf attachment with the scheduling component? I would think sending email option in scheduled task would have the same options as the form plugin 'email'.
 
Can you check the actual source of the email, and see if there is actuall an IMG tag there or now? It could just be that the URL is wrong. I'm not entirely sure if &'s in the URL's in for IMG tags in formatted emails need to be encoded as &amp; or not.

There is no option to attach as PDF in the cron job.

The reaosn it works in PDF of course is tha the PDF is generated on your server prior to sending the email, using "normal" templates, so the QR image is fetched locally and encoded in to the PDF. Whereas with email, your email client is having to fetch the image remotely on the fly when displaying the email.

-- hugh
 
If you test that URL in your browser, replacing &amp; with just &, does it work?

Have you tried "attach PDF" in the email plugin?

-- hugh
 
In the pdf sent via the email plugin I get a message "image type unknown" and the link only has &, not &amp;.
 
More testing on this url index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=field&method=ajax_renderQRCode&format=raw&element_id=108&formid=2&rowid=&repeatcount=0 and it takes me to the homepage. I tried turning off error.php in my template but that didn't make a difference.
 
I just tested again, and my QR's are showing in a PDF generated with the "Attach as PDF" option using the form email plugin:

pdf_qr.png


And if I copy and paste the URL from the email body, which is using a standard article template with placeholders, and paste it in to my browser locally, I get the image. It won't work from my gmail account, as the 'livesite' hostname is not known to any public DNS's.

Can you arrange for one of your examples to be sent to hugh dot messenger at gmail dot com?

-- hugh
 
Just fixed that, won't have been affecting anything, as the 'both' it assumed is correct. Basically it automatically assumed it needed to put quotes round a bare word, and it was correct.

In the email you sent me, the link to the QR rendering wasn't SEF'ed?

-- hugh
 
The 303 error is now gone since I added the rowid to the qr render. It works either way with/without SEF turned on.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top