-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: Missing Mail configuration #1
Comments
Hi, if you don't want to use the mail transport Can you give us some code of your integration ? |
#env MAILJET_APIKEY={{ key }} #app.php $app->configure('mail'); $app->register(Mailjet\LaravelMailjet\MailjetServiceProvider::class); #services.php return [ #mail
]; |
Sounds good, in fact, you only need to set this config for Mailjet mail client works:
|
Thanks for fast replay @Nightbr Mailhog works fine, Im trying to get mail now with Mailjet and nothing. Double check key/secret. In this case maybe there is issue with my docker <-> network. I will check that. If there will be no comment below it means that it was firewall/network issue. |
Humm, can you copy/paste your code where you try to sent mail ? |
Mail::raw('Raw string email', function($msg) { $msg->to(['test@{{ domain which is added to MJ }}']); $msg->from(['test@{{ domain which is added to MJ }}']); }); |
ok, it should work so. |
var dump on $this->resultApi = $this->mailjetClient->post(Resources::$Email, ['body' => $mailjetMessage]);
|
This works fine (just to inform)
|
@arnaudbreton, @latanasov, it seems like the API doesn't like NULL value: Cannot convert data from Null value Body request: ["body":"Mailjet\Request":private]=>
array(5) {
["FromEmail"]=>
string(19) "{{mailAdress}}"
["FromName"]=>
NULL
["Subject"]=>
NULL
["Recipients"]=>
array(1) {
[0]=>
array(2) {
["Email"]=>
string(19) "{{mailAddress}}"
["Name"]=>
NULL
}
}
["Text-part"]=>
string(16) "Raw string email"
} I think it can be better if the API could handle NULL value. But as a workaround, we can manage it into our SwiftMailerTransport... @kimek try to add subject to your $msg:
|
@Nightbr
|
@Nightbr true, it didn't like Null.
Setting up only subject didn't fix issue. I've needed to add name to 'from-email'. Thanks @Nightbr , thanks @latanasov |
Hi @kimek we just released the improved version. You can update the library with Regards, |
Hi Guys,
Do we need any of
MAIL_DRIVER=smtp
MAIL_HOST=mail
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
to run mailjet ?
Other question, does the alias is neccessery ? If yes where it sohuld go in Lumen in this case ?
Thank you
Regards
The text was updated successfully, but these errors were encountered: