Templates
Documentation for Email Templates in the Application
The email templates in this application are designed to facilitate communication with users across different operational scenarios such as payment confirmations, subscription changes, and more. Each template is structured to ensure clarity and professionalism in the message conveyed.
Payment Confirmation Template
Purpose:
This template is used to send a confirmation email to users following a successful payment. It includes details about the transaction such as the transaction ID, amount, frequency of the payment, and the date.
Parameters:
-
name(str): The name of the recipient. -
amount(float): The amount that was paid. -
transaction_id(str): A unique identifier for the transaction. -
frequency(str): The billing frequency (e.g., monthly, yearly).
Template Structure:
-
Header: Includes the Rifbid logo and introductory text thanking the user for their payment.
-
Order Details: Details of the transaction including item description, status, frequency, and total amount.
-
Total: A summary section that highlights the total amount paid.
-
Information: Provides contact information and other relevant details about Rifbid.
-
Footer: A closing statement and additional spacing for visual ease.
HTML Content:
The template uses HTML and CSS for styling to ensure the email is responsive and visually appealing across different devices. It utilizes external fonts from Google Fonts for a clean and modern look.
Usage:
To use this template, call the payment_confirmation_template function with the necessary parameters. The function returns an HTML string that can be sent as the body of an email.
Example usage:
html_content = payment_confirmation_template(name="John Doe", amount=100, transaction_id="123456789", frequency="Monthly")This documentation structure ensures each template’s functionality and usage are clear, helping developers and content managers to effectively utilize and customize them as needed. All other templates follow a similar pattern.