How Does Apg Vnext Handle Emails Notification Etc — a feature discussion or integration topic from the APG vNext community forum.
APG vNext Integration Capabilities
- Authentication: ASP.NET Membership, Active Directory/LDAP, OAuth (Facebook, Twitter, Google)
- Email: Configurable SMTP, HTML templates, digest notifications, bounce handling
- Mobile: Responsive design + official Tapatalk integration from v5.5+
- Search: Built-in full-text search powered by SQL Server Full-Text Indexing
- Analytics: Google Analytics, Adsense, and third-party widget support
- CDN: Static asset CDN support configurable via admin panel
Browse the full list at Features Overview or ask in the support forum.
APG vNext Email and Notification System
APG vNext uses a queue-based email delivery system that decouples email generation from email sending. When a notification event occurs — a new reply to a subscribed thread, a new direct message, a moderation action, or a system alert — APG vNext writes a record to the email queue table in the database. A background worker process reads the queue at a configurable interval (default: every 60 seconds) and sends the pending emails via the configured SMTP server. This architecture means that a temporary SMTP server outage does not cause lost notifications — emails accumulate in the queue and are sent once the SMTP server becomes available again.
Configuring the SMTP Server
Configure the SMTP settings in Admin Panel → Settings → Email or directly in web.config:
<add key="APG.Email.SmtpHost" value="smtp.sendgrid.net" />
<add key="APG.Email.SmtpPort" value="587" />
<add key="APG.Email.SmtpUser" value="apikey" />
<add key="APG.Email.SmtpPassword" value="your-api-key" />
<add key="APG.Email.FromAddress" value="[email protected]" />
<add key="APG.Email.FromName" value="Your Forum Name" />
Notification Types and Member Preferences
APG vNext supports several notification types: thread reply notifications (sent to members who are subscribed to or have posted in a thread), mention notifications (sent when a member is tagged with @username), direct message notifications, moderation action notifications, and system administrator alerts. Members control their notification preferences from Account → Notification Settings. Administrators can set site-wide defaults for each notification type and restrict which types members are allowed to disable.
Email Digest Mode
To reduce email volume for active forum members, enable the daily digest option in Admin Panel → Email → Digest Settings. In digest mode, all thread reply notifications from a given day are consolidated into a single daily summary email showing the member all threads that had new activity since their last visit. Digest mode significantly reduces the number of individual notification emails while ensuring members stay informed about activity in their subscribed threads.
Related Resources
HTML Email Templates and Customisation
APG vNext generates HTML emails using a template system that mirrors the forum theme. Email templates are located in the application templates folder and can be customised by editing the HTML and inline CSS directly. Because email clients have widely varying HTML and CSS support (many major clients like Gmail and Outlook strip external stylesheets and do not support modern CSS), APG vNext email templates use inline CSS throughout to ensure consistent rendering across clients. When customising email templates, keep all styles inline and test the resulting emails across major clients — Gmail, Outlook 2019/2021/365, Apple Mail, and mobile Gmail and Apple Mail — using a tool like Litmus or Email on Acid before deploying to production.
SPF, DKIM, and Email Deliverability
Ensuring that APG vNext notification emails reliably reach member inboxes requires correct DNS configuration for the sending domain. Configure an SPF record in DNS that includes the IP addresses of your SMTP server or the SPF includes for your transactional email provider (e.g., SendGrid, Mailgun, Postmark). Enable DKIM signing if your email provider supports it — DKIM adds a cryptographic signature to outgoing emails that receiving servers use to verify the messages were sent by an authorised sender. Configure DMARC as a final layer of protection against spoofing. With SPF, DKIM, and DMARC correctly configured, deliverability rates for transactional notification emails should exceed 99% for major inbox providers.
Email Unsubscribe Handling
APG vNext includes a one-click unsubscribe mechanism in all notification emails, compliant with CAN-SPAM and GDPR requirements. The unsubscribe link at the bottom of each notification email allows members to opt out of a specific notification type (e.g., thread reply notifications only) or opt out of all forum notification emails. Unsubscribed members continue to receive account-critical transactional emails — password reset, email address verification, and security alert emails — regardless of their notification preferences, as these are not marketing or notification emails but rather account security communications. Monitor the unsubscribe rate from the email analytics dashboard; a high unsubscribe rate for a specific notification type may indicate that the notification frequency is too high or the notification content is not relevant enough to members.
Bounce and Complaint Handling
Configure webhook endpoints in your transactional email provider to forward hard bounce and spam complaint events back to APG vNext's email event API. When a hard bounce is received for a member email address, APG vNext automatically marks that member's email as undeliverable and suppresses future notification emails to prevent repeat bounce events, which damage sender reputation. Spam complaints trigger a similar automatic suppression and also flag the member account for review in the admin panel under Members → Email Complaints. Monitoring bounce and complaint rates weekly and keeping the overall hard bounce rate below 0.5% and complaint rate below 0.1% is critical for maintaining high deliverability with major inbox providers.
Looking for more help? Browse the support forum or check the Knowledge Base.