Communications Module
Keep your association connected with real-time chat, email campaigns, SMS, newsletters, announcements, and push notifications โ all in one module.
Overview
The Communications module is AMS's unified messaging hub. It brings together six distinct communication channels so you can reach members wherever they are โ from real-time chat to scheduled email blasts to SMS alerts.
Chat (WhatsApp-style)
The Chat module provides a WhatsApp-style messaging experience within the member portal. It uses WebSockets (Laravel Echo + Soketi/Pusher) for real-time delivery with a maximum latency of ~50ms on the platform.
- Channels โ Public or private rooms (e.g. "#general", "#events-2026", "#committee-finance")
- Direct Messages โ 1-to-1 private conversations between any two members
- File sharing โ Upload images, PDFs, and documents up to 25MB per file
- Read receipts โ Double tick when message is delivered and read
- Emoji reactions โ React to messages with any emoji
- @mentions โ Notify specific members in a channel message
- Message pinning โ Admins can pin important messages in channels
- Message search โ Full-text search across all channels the user has access to
Email Campaigns
Create, schedule, and track email campaigns from Communications โ Email Campaigns โ New Campaign.
- Audience targeting โ Send to all members, specific membership types, chapters, or custom segments
- Template builder โ Drag-and-drop HTML email builder with 15+ pre-built templates
- Personalisation โ Merge tags like
{{first_name}},{{membership_type}},{{renewal_date}} - Scheduling โ Send immediately or schedule for a specific date/time (with timezone support)
- A/B testing โ Test two subject lines with automatic winner selection (coming Q2 2026)
- Analytics โ Track open rate, click rate, bounce rate, and unsubscribes in real time
Newsletters
The Newsletter feature is distinct from campaigns โ it manages an ongoing publication with subscriber management, issue archiving, and a branded template.
- Create multiple newsletters (e.g. "Monthly Bulletin", "Industry News Weekly")
- Subscribers are managed separately from the main member list โ non-members can subscribe
- Issues are archived and accessible via a public URL
- Unsubscribe link is automatically appended (GDPR compliant)
SMS Campaigns
Send SMS messages to members via Twilio integration. Configure your Twilio account in Settings โ Integrations โ Twilio.
- SMS templates with merge tags (name, event date, invoice amount, etc.)
- Bulk SMS to filtered member segments
- Two-way SMS โ members can reply and replies appear in a unified inbox
- Opt-out management โ STOP/UNSUBSCRIBE responses are handled automatically
- Delivery status tracking (sent, delivered, failed) per recipient
Announcements
Announcements are admin broadcasts that appear as a banner inside the member portal and optionally trigger an email notification. They are ideal for urgent news, maintenance windows, or policy changes.
- Announcements appear at the top of the member dashboard immediately on publish
- Support rich text (bold, links, bullet points)
- Optionally email all members on publish
- Set an expiry date โ announcement auto-dismisses when expired
- Members can dismiss announcements; admins can mark them as mandatory (non-dismissable)
Push Notifications
Mobile push notifications are sent to members who have installed the AMS mobile app (React Native) and granted notification permission.
- Triggered automatically by system events (new event, invoice due, new message)
- Can be sent manually from Communications โ Push Notifications
- Deep linking โ tapping a push opens the relevant screen in the app
Email Configuration (SMTP)
Configure your outgoing email in Settings โ Email โ SMTP Configuration:
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailgun.org # or smtp.sendgrid.net, email-smtp.us-east-1.amazonaws.com
MAIL_PORT=587
MAIL_USERNAME=your-smtp-username
MAIL_PASSWORD=your-smtp-password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=noreply@pasha.org
MAIL_FROM_NAME="PASHA Membership"
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/admin/announcements | Create and publish an announcement |
| GET | /api/v1/admin/announcements | List all announcements |
| POST | /api/v1/admin/campaigns | Create an email campaign |
| POST | /api/v1/admin/campaigns/{id}/send | Send or schedule a campaign |
| GET | /api/v1/admin/campaigns/{id}/stats | Campaign analytics (opens, clicks) |
| POST | /api/v1/admin/sms/send | Send an SMS to members |
| GET | /api/v1/chat/channels | List accessible chat channels |
| POST | /api/v1/chat/channels/{id}/messages | Send a chat message |
Example: Send Announcement via API
curl -X POST https://pasha.ams.hkus1.s4s.host/api/v1/admin/announcements \ -H "Authorization: Bearer $ADMIN_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "title": "Annual General Meeting โ Date Confirmed", "body": "The PASHA AGM is confirmed for April 15, 2026 at PC Hotel Karachi. Registration opens Monday.", "type": "info", "send_email": true, "dismissable": true, "expires_at": "2026-04-15T23:59:59Z" }'
{
"id": "ann_01HXZ",
"title": "Annual General Meeting โ Date Confirmed",
"status": "published",
"email_sent": true,
"recipients": 142,
"published_at": "2026-03-14T10:00:00Z"
}