Comments (10)
I was stuck with the same problem and here is the solution :
in order to put vars in links, you have to respect this : {{var:myvar}} and NO default value.
from laravel-mailjet.
from laravel-mailjet.
@StefanijaK
could you please elaborate more on what exactly you are trying to achieve ? What kind of a button you have and what kind of link you want to set from Laravel ? Are you trying to pass a variable with a link inside?
from laravel-mailjet.
@Zhivko-Mailjet first of all thank you for replay.
I need to implement a password reset functionality, so I will need to use a link and a button in order to send the url. When I insert a button I will need to send the link from Laravel. If a set a variable to the button how can I send the url/link value? Or is there any easier way to implement this?
from laravel-mailjet.
@StefanijaK
You can insert a variable, which will be included behind the button in the content, something like {{var:link}}. Syntax samples you can find here:
https://dev.mailjet.com/guides/#using-a-template
Other template samples you can find here:
https://github.com/mailjet/mailjet-apiv3-templating-samples/tree/master/samples
As the question is relatedto the template construction more than the Laravel usage, if you have additional questions, please reach out to our support and we will be happy to help.
from laravel-mailjet.
@Zhivko-Mailjet thank you so much for your help. I really appreciate it. Have a great day :)
from laravel-mailjet.
[ Learned that Hotmail does some kind of sanitizing and the links need start with protocol ]
This answer still appears to be unanswered.
How do I add a variable link to my button ?
Inside a button where the URL goes, variables don't work. I tried sticking in {{var:domain}}/token/{{var:token}}, but the resulting HTML is not a button. shows up HTML like so
"[www.google.ie]"
Reset password
Naturally when we google this, no hope, endless other things. This is the only thread on it. Searched all docs, nothing.
Also I tried copying and pasting code from the examples and they break the template, they don't work. Example here, the a tag link at bottom doesn't work for me like shown in this example.
<a href="{{ var:domain:"" }}">click here
or
Link
stuck
Ideally I want to add a variable inside the link input box when using the button component.
Any help be great ?
from laravel-mailjet.
Did you find a solution or workaround? I am stuck in the same situation.
Thanks
from laravel-mailjet.
Why is this not documented anywhere obvious/at all....
from laravel-mailjet.
from laravel-mailjet.
Related Issues (20)
- Question: New release for php 8 missing? HOT 4
- Why is documentation duplicate and inconsistent? HOT 1
- Using the Subject Line from a Template HOT 2
- Laravel 9 support HOT 4
- Tag 3.0.1 doesn't respect semantic versionning (introduce breaking change) HOT 2
- Release 3.0.1 broken for laravel 8
- Missing dependencies? HOT 11
- Driver [mailjet] not supported HOT 6
- Illuminate\Mail\Mailer::__construct() $transport error HOT 1
- Call to undefined method Mailjet\LaravelMailjet\Model\Contact::setProperties() HOT 1
- send API /send to AWS SQS queue HOT 1
- Reply-to addresses HOT 2
- User is not set
- User is not set. HOT 1
- Inline attachments don't work HOT 2
- Laravel 10 not supported HOT 9
- Status says sent, but nothing is received or recorded under message events. HOT 4
- Is it possible to disable Mailjet Tracking when sending mails HOT 1
- Can't set the X-MJ-CustomID header HOT 3
- missing symfony/http-client dependency HOT 2
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 laravel-mailjet.