Giter Site home page Giter Site logo

sendinblue-api-bundle's People

Contributors

bgatellier avatar ekta-slit avatar matthecat avatar nek- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sendinblue-api-bundle's Issues

replyto not working with send_transactional_template

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

Problem with function sendTransacEmail()

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

Symfony 4 Compatibility

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?

Rely on Composer instead of Git submodule feature

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,

Bug SSL Certificate

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

Use models to send data and validate response

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?

  1. It is more comfortable for the developer
  2. Data validation before making an request to API
  3. Unification of work with API

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.

ClassNotFoundException in Mailin.php

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.