Comments (11)
Change
<img src="data:image/png;base64, {{ base64_encode($qr) }} ">
to
<img src="{!!$message->embedData($qr, 'QrCode.png', 'image/png')!!}">
I just tested this and it works in gmail/inbox. Please let me know if you have any other issues!
what thats mean the $message variable ?
from simple-qrcode.
Change
<img src="data:image/png;base64, {{ base64_encode($qr) }} ">
to
<img src="{!!$message->embedData($qr, 'QrCode.png', 'image/png')!!}">
I just tested this and it works in gmail/inbox. Please let me know if you have any other issues!
from simple-qrcode.
Can I see your emails.product_redeem template please?
from simple-qrcode.
Sure, thank you:
<!DOCTYPE html>
<html>
<head>
<title>Prospector theater</title>
</head>
<body>
<h3>Hello {{ $account->first_name }} {{ $account->last_name }},</h3>
<p>This email serves as a ticket for a free {{ $product->product->name }}. <br />
Please bring a printed version of this email with you in order to redeem it on-site.</p>
@if (isset($product->expires))
<p>Keep in mind that this ticket is only valid till {{ $product->expires }}</p>
@endif
<br />
<br />
<br />
<img src="data:image/png;base64, {{ base64_encode($qr) }} ">
{{--{!! $qr !!}--}}
<p>Thank you,</p>
<br />
<p>Prospector theater</p>
</body>
</html>
from simple-qrcode.
@SimplyCorey It works fine for me. Thanks!
from simple-qrcode.
Added to readme.
from simple-qrcode.
This still doesn't work for me. Copied it exactly as is. I get a empty <img>
tag in gmail. Has something changed?
from simple-qrcode.
@revroad-dev It's possible that gmail has changed something on their end. Can you paste an example of a raw email in here please?
from simple-qrcode.
@revroad-dev It's possible that gmail has changed something on their end. Can you paste an example of a raw email in here please?
I get an empty <img>
tag as well
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Email</title>
</head>
<body>
<p>
Dear, {{ $karyawan->nama }}
<br><br>
Berikut QR Code yang bisa anda gunakan untuk absensi:<br>
<img src="{!!$message->embedData(QrCode::format('svg')->generate($karyawan->id_karyawan), 'QrCode.svg', 'image/svg+xml')!!}">
</p>
</body>
</html>
from simple-qrcode.
<img src="{!!$message->embedData($qr, 'QrCode.png', 'image/png')!!}">
What is the $message here?
from simple-qrcode.
<img src="{!!$message->embedData($qr, 'QrCode.png', 'image/png')!!}">
What is the $message here?
If you use laravel https://laravel.com/docs/8.x/mail#inline-attachments
from simple-qrcode.
Related Issues (20)
- Generate QrCOde with textbox HOT 1
- error:- data too big on including base64 image
- The body of "Symfony\Component\Mime\Part\TextPart" Error While Sending Mail HOT 2
- Iphone WiFi QR plans
- Laravel 10 - View - Strange Codes HOT 3
- Email QRCode shows "+" instead of spaces in subject and body HOT 1
- Imagick extension not working with Laravel 10 and PHP 8.2 HOT 3
- Broken style when exporting rounded qr code as eps
- Execution time out when trying to add a logo over the qr code
- Expand Styles HOT 3
- Fails to save to a directory in Laravel 9
- VSCode intelephense(P1013) - Red underline when chaining methods despite working
- qrcode problem in smtp email HOT 2
- Documentation website dead HOT 6
- Will not install - Bacon-qr-code is locked to version 3.0.0 HOT 1
- How to create outside square into circle same as inner side? HOT 4
- should go for bacon/bacon-qr-code ^3.0 HOT 4
- Adding support for webp
- Undefined property: stdClass::$qr
- Domain for sale HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-qrcode.