Skip to main content
Version: 5.11.8

OnNewPostCreated

public OnNewPostCreateNotification OnNewPostCreated;

Parameters

ValueTypeDescription
postRepeatTypePostRepeatTypeMail type
titlestringMail title
contentstringMail content
authorstringMail sender

PostRepeatType

enumDescription
repeatRepeated delivery
immediatelyImmediate delivery
reservationReserved delivery

Description

This handler is called when mail is sent from BACKND Console's Mail Management.
You can check the type, title, sender, and content of the registered mail at the handler.

Mail may arrive a few minutes after the set hour due to the delay from several pending ones(depending on the number of pending mail).

The following events generate mail delivery:

  • Immediate mail delivery
  • Reserved mail delivery(at the scheduled time)
  • Repeated mail delivery(at the scheduled time)
  • Personal mail delivery(to only the set users)

The following events do not generate mail delivery:

  • Ranking rewards mail

Example

Backend.Notification.OnNewPostCreated = (PostRepeatType postRepeatType, string title, string content, string author) => {
Debug.Log(
$"[OnNewPostCreated(new mail created)]\n" +
$"| postRepeatType : {postRepeatType}\n" +
$"| title : {title}\n" +
$"| content : {content}\n" +
$"| author : {author}\n"
);
};