Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.

Mailing list subscribe/unsubscribe #16

Closed
ghost opened this issue Apr 14, 2014 · 6 comments
Closed

Mailing list subscribe/unsubscribe #16

ghost opened this issue Apr 14, 2014 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 14, 2014

This is a feature request....would like to request the ability to subscribe and unsubscribe an email address...maybe something like this

Mailgun::subscribe('emailaddress@domain.com', 'mailing list name')

Mailgun::unsubscribe('emailaddress@domain.com', 'mailing list name')

@Bogardo
Copy link
Owner

Bogardo commented Apr 14, 2014

@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.

@Bogardo Bogardo added this to the Support for Mailinglists/Newsletters milestone Apr 14, 2014
@ghost
Copy link
Author

ghost commented Jul 13, 2014

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.

@Bogardo
Copy link
Owner

Bogardo commented Jul 13, 2014

@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))

@ghost
Copy link
Author

ghost commented Jul 13, 2014

@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.

@Bogardo
Copy link
Owner

Bogardo commented Jul 14, 2014

@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?

@Bogardo
Copy link
Owner

Bogardo commented Nov 29, 2014

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

@Bogardo Bogardo closed this as completed Nov 29, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant