mailin-api / sendinblue-api-bundle Goto Github PK
View Code? Open in Web Editor NEWOfficial Sendinblue provided API V2 Symfony 2.x & 3.x Bundle
Official Sendinblue provided API V2 Symfony 2.x & 3.x Bundle
Hello,
I would like to send emails on critical errors, but I can't figure out how I can achieve that with this bundle.
http://symfony.com/doc/current/logging/monolog_email.html
Is there a way ?
Thank you
Disable SSL verification, when I used this bundle without having an ssl certificate it doesn't work. So disabling SSL verification will work in both cases.
In the "Wrapper/Mailin.php", just after:
CURLOPT_TIMEOUT_MS => $this->timeout,
I added this two lines:
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => false,
And it worked for me, so, can you add this two lines in the master brach.
Thanks
Hello,
I have a problem when i want to use the function sendTransacEmail().
I obtain this error : Attempted to call an undefined method named "swaggerFormats" of class "Symfony\Component\HttpFoundation\Response".
Here my code that obtain this :
$api_instance = new \SendinBlue\Client\Api\SMTPApi();
$sendSmtpEmail = new \SendinBlue\Client\Model\SendSmtpEmail();
$sender = new \SendinBlue\Client\Model\SendSmtpEmailSender();
$sender->setName($revue->getConfig()->getLibelleExpediteur());
$sender->setName($revue->getConfig()->getEmailExpediteur());
$To = new \SendinBlue\Client\Model\SendSmtpEmailTo();
$To->setEmail($Contact->getEmail());
$sendSmtpEmail->setSubject("Merci pour votre accueil téléphonique");
$sendSmtpEmail->setHtmlContent($html);
$result = $api_instance->sendTransacEmail($sendSmtpEmail);
Thanks
A new component Symfony Mailer has been created recently. It provide smtp and API transport.
More information on the Symfony PR : symfony/symfony#30741
Do you have any plan for an integration ?
Hi,
Is there an update planned for Symfony 3 ?
Hello,
I have a problem when i want to add replyto in send_transactional_template.
I know it's not specify in comment on the function :
/*
Send templates created on SendinBlue, through SendinBlue SMTP (transactional mails).
@param {Array} data contains php array with key value pair.
@options data {Integer} id: Id of the template created on SendinBlue account [Mandatory]
@options data {String} to: Email address of the recipient(s). You can use pipe ( | ) to separate multiple recipients. Example: "[email protected]|[email protected]" [Mandatory]
@options data {String} cc: Same as to but for Cc [Optional]
@options data {String} bcc: Same as to but for Bcc [Optional]
@options data {Array} attrv The name of attribute present in your SendinBlue account. It should be sent as an associative array. Example: array("NAME"=>"name"). You can use commas to separate multiple attributes [Optional]
@options data {String} attachment_url: Provide the absolute url of the attachment. Url not allowed from local machine. File must be hosted somewhere [Optional]
@options data {Array} attachment: To send attachment/s generated on the fly you have to pass your attachment/s filename & its base64 encoded chunk data as an associative array [Optional]
*/
But it's possible in the documentation of sendinblue : https://apidocs.sendinblue.com/fr/template/#1
Thanks
Hi there,
I'd try to use the mailin-api into symfony 4 but there is a requirement about
"sendinblue/sendinblue-api-bundle v2.0.9 requires symfony/framework-bundle 2.|3. -> satisfiable by symfony/framework-bundle".
The mailing-php class is V1 api, and the symfony bundle V3 api doesn't exist.
How use your API in Symfony 4?
Does this bundle provides a transport for swiftmailer to send mail through sendinblue?
Hello,
I think that instead creating dumb arrays it would be better to set data into an model, then validate it, convert it to array and send it. Why?
I also sugges to use exceptions when the email was not send so the developer can catch it. It is better way then checking response array itself by the developer.
Also all of this changes might help when the API changes.
I'll do a PR for that.
Hi,
I've just installed your bundle in a freshly new Sf 2.7 and 2.8-beta1, and it appears that there is an error in the Maillin class: Attempted to load class "Exception" from namespace "SendinBlue\SendinBlueApiBundle\Wrapper".
I found out the file and here is the error:
if(!function_exists('curl_init'))
{
throw new Exception('Mailin requires CURL module');
}
So I suggest to add a use Symfony\Component\Config\Definition\Exception\Exception
.
I'll do a PR for that.
Hi,
First of all thank you for this bundle :)
I just added this bundle to my Symfony (latest 2.7-dev version) using Composer.
I was expecting to commit the files (with Git and TortoiseGit) as usual, from the root folder, but it appears that the bundle comes as a Git submodule.
From what I can read around the web, Composer is the officialway to manage Symfony2 dependencies, as the french 2.7 doc says (the english one does not mention it).
So instead of relying on the submodule feature, I would suggest to rely on Composer in order to avoid a messy bundle management. That's what most Symfony2 bundles already do.
Hope I was clear enough in my explanations,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.