GithubHelp home page GithubHelp logo

Comments (6)

Bogardo avatar Bogardo commented on May 23, 2024

@dazzlingdoors As of now, this package's main purpose is for sending transactional emails. Not for managing newsletters/mailing lists.

Adding support for mailing lists should also include options for:

  • Mailing lists
  • Members
  • Unsubscribes
  • Complaints
  • Campaigns

We could start out with the basic subscribing and unsubscribing.

from mailgun.

 avatar commented on May 23, 2024

Since this is 3 months old and still open, is this still needed? If so i can start with it since the API for it looks quite simple.

from mailgun.

Bogardo avatar Bogardo commented on May 23, 2024

@Sepix I'm not sure if it is still needed but it would be a great addition to the package and I would really appreciate your help.

After reading through the Mailgun documentation I made a very basic list of the methods we should probably support and how they might be implemented. Please let me know what you think about it.

  • Get all lists:
    Mailgun::list()->all()
  • Get list:
    Mailgun::list()->get('list_address')
  • Create new list:
    Mailgun::list()->create(array(params))
  • Update list:
    Mailgun::list()->update('list_address', array(params))
  • Delete list:
    Mailgun::list()->delete('list_address')
  • Get list members:
    Mailgun::list()->get('list_address')->members()
  • Get list member:
    Mailgun::list()->get('list_address')->member('member_address')
  • Add list member:
    Mailgun::list()->addMember('list_address', array(params))
  • Update list member:
    Mailgun::list()->updateMember('list_address', 'member_address', array(params))
  • Remove list member:
    Mailgun::list()->deleteMember('list_address', 'member_address')
  • (optional) Adding multiple members to list:
    Mailgun::list()->addMembers('list_address', array(params))

from mailgun.

 avatar commented on May 23, 2024

@Bogardo Sounds good to me beside the difference between addMember and addMembers. Its slightly confusing in the naming. Should either merge them into one and just always call the multiple function even if there is only one member in the array or rename it to something else.

Maybe also change

Mailgun::list()->get('list_address')->members()

to

Mailgun::list()->get('list_address')->all()

I will start with the other functions for now.

from mailgun.

Bogardo avatar Bogardo commented on May 23, 2024

@Sepix Looks good to me.
There is only a slight problem, list is a reserved keyword so Mailgun::list() is not going to work.
But Mailgun::mailinglist() is too long for my taste. Ideas?

from mailgun.

Bogardo avatar Bogardo commented on May 23, 2024

Mailinglist features have been implemented, please update to version 3.1.*

from mailgun.

Related Issues (20)

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.