Skip to content

armgit / posta

Public Imported from GitHub
0

Self-hosted email delivery platform that enables applications to send emails via HTTP APIs while handling SMTP delivery, templates, storage, security, and analytics. Fully self-hostable alternative to services like SendGrid or Mailgun.

update configuration deployment

Jonas Kanindaa306c761ec14
diff --git a/README.md b/README.md
index 79b4b87..1cfc5d3 100644
--- a/README.md
+++ b/README.md
@@ -360,56 +360,39 @@ Password: admin1234
Posta includes a web dashboard for managing templates, SMTP servers, domains, contacts, API keys, and analytics.
-<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/dashboard.png" alt="Posta Dashboard" width="900"/>
-</p>
-
-### Email Analytics
<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/analytics.png" alt="Email Analytics" width="900"/>
+ <img src="https://raw.githubusercontent.com//goposta/posta/main/docs/static/img/screenshots/dashboard.png" alt="Posta Dashboard" width="900"/>
</p>
-### Email Logs
-
-<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/email-logs.png" alt="Email Logs" width="900"/>
-</p>
-
-### Email Detail
+### Email Analytics
<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/email-detail.png" alt="Email Detail" width="900"/>
+ <img src="https://raw.githubusercontent.com//goposta/posta/main/docs/static/img/screenshots/analytics.png" alt="Email Analytics" width="900"/>
</p>
### Template Detail
<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/template-detail.png" alt="Template Detail" width="900"/>
+ <img src="https://raw.githubusercontent.com//goposta/posta/main/docs/static/img/screenshots/template-detail.png" alt="Template Detail" width="900"/>
</p>
### Template Editor
<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/template-preview.png" alt="Template Preview" width="900"/>
+ <img src="https://raw.githubusercontent.com//goposta/posta/main/docs/static/img/screenshots/template-editor.png" alt="Template Editor" width="900"/>
</p>
### Admin Platform Metrics
<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/admin-platform-metrics.png" alt="Admin Platform Metrics" width="900"/>
+ <img src="https://raw.githubusercontent.com//goposta/posta/main/docs/static/img/screenshots/admin-platform-metrics.png" alt="Admin Platform Metrics" width="900"/>
</p>
### Admin Platform Metrics (Dark)
<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/admin-metrics-light.png" alt="Admin Metrics Light" width="900"/>
-</p>
-
-### Admin Metrics (Dark)
-
-<p align="center">
- <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/admin-metrics-dark.png" alt="Admin Metrics Dark" width="900"/>
+ <img src="https://raw.githubusercontent.com//goposta/posta/main/docs/static/img/screenshots/admin-platform-metrics-dark.png" alt="Admin Platform Metrics Dark" width="900"/>
</p>
---
diff --git a/docs/docs/email-sending/attachments.md b/docs/docs/email-sending/attachments.md
index 10c51af..c4dc1b5 100644
--- a/docs/docs/email-sending/attachments.md
+++ b/docs/docs/email-sending/attachments.md
@@ -90,23 +90,5 @@ resp, err := client.SendEmail(&posta.SendEmailRequest{
})
```
-</TabItem>
-<TabItem value="rust" label="Rust">
-
-```rust
-let resp = client.send_email(&SendEmailRequest {
- from: "[email protected]".into(),
- to: vec!["[email protected]".into()],
- subject: "Your Report".into(),
- html: Some("<p>Report attached.</p>".into()),
- attachments: Some(vec![Attachment {
- filename: "report.pdf".into(),
- content: base64_encoded_content,
- content_type: "application/pdf".into(),
- }]),
- ..Default::default()
-}).await?;
-```
-
</TabItem>
</Tabs>
diff --git a/docs/docs/getting-started/introduction.md b/docs/docs/getting-started/introduction.md
index 71928eb..cf4ebc9 100644
--- a/docs/docs/getting-started/introduction.md
+++ b/docs/docs/getting-started/introduction.md
@@ -11,7 +11,7 @@ description: What is Posta and why use it
## Why Posta?
- **Self-hosted** — Your data stays on your servers. No vendor lock-in.
-- **Developer-first** — Clean REST API with official SDKs for Go, PHP, Java, and Rust.
+- **Developer-first** — Clean REST API with official SDKs for Go, PHP, and Java.
- **Full-featured** — Templates with versioning and localization, SMTP management, domain verification, webhooks, analytics, and more.
- **Open source** — Licensed under Apache 2.0. Contribute, fork, or customize as needed.
diff --git a/docs/docs/getting-started/quickstart.md b/docs/docs/getting-started/quickstart.md
index 3c3fb85..a1759b0 100644
--- a/docs/docs/getting-started/quickstart.md
+++ b/docs/docs/getting-started/quickstart.md
@@ -144,21 +144,6 @@ SendResponse response = client.sendEmail(new SendEmailRequest()
.html("<h1>Welcome!</h1>"));
```
-</TabItem>
-<TabItem value="rust" label="Rust">
-
-```rust
-let client = posta::Client::new("http://localhost:9000", "your-api-key");
-
-let resp = client.send_email(&SendEmailRequest {
- from: "[email protected]".into(),
- to: vec!["[email protected]".into()],
- subject: "Hello from Posta!".into(),
- html: Some("<h1>Welcome!</h1>".into()),
- ..Default::default()
-}).await?;
-```
-
</TabItem>
</Tabs>
diff --git a/docs/docs/sdks/overview.md b/docs/docs/sdks/overview.md
index 83c1bdb..d47f346 100644
--- a/docs/docs/sdks/overview.md
+++ b/docs/docs/sdks/overview.md
@@ -6,7 +6,7 @@ description: Official Posta SDKs
# Official SDKs
-Posta provides official client libraries for four languages. All SDKs offer the same core functionality:
+Posta provides official client libraries for three languages. All SDKs offer the same core functionality:
| Method | Description |
|--------|-------------|
@@ -22,7 +22,6 @@ Posta provides official client libraries for four languages. All SDKs offer the
| [Go](/docs/sdks/go) | `github.com/goposta/posta-go` | Go 1.25+ |
| [PHP](/docs/sdks/php) | `goposta/posta-php` | PHP 8.1+ |
| [Java](/docs/sdks/java) | `com.github.goposta:posta-java` | Java 11+ |
-| [Rust](/docs/sdks/rust) | `posta` | Rust 2021 edition |
## Error Handling
diff --git a/docs/docs/sdks/rust.md b/docs/docs/sdks/rust.md
deleted file mode 100644
index 61d506d..0000000
--- a/docs/docs/sdks/rust.md
+++ /dev/null
@@ -1,119 +0,0 @@
----
-sidebar_position: 5
-title: Rust
-description: Posta Rust SDK
----
-
-# Rust SDK
-
-Official async Rust client for Posta, built with [reqwest](https://docs.rs/reqwest).
-
-## Installation
-
-Add to your `Cargo.toml`:
-
-```toml
-[dependencies]
-posta = "0.1"
-tokio = { version = "1", features = ["full"] }
-```
-
-**Requires:** Rust 2021 edition
-
-## Quick Start
-
-```rust
-use posta::{Client, SendEmailRequest};
-
-#[tokio::main]
-async fn main() -> Result<(), posta::Error> {
- let client = Client::new("https://posta.example.com", "your-api-key");
-
- let resp = client.send_email(&SendEmailRequest {
- from: "[email protected]".into(),
- to: vec!["[email protected]".into()],
- subject: "Hello from Posta".into(),
- html: Some("<h1>Hello!</h1><p>This is a test email.</p>".into()),
- ..Default::default()
- }).await?;
-
- println!("Email sent: id={} status={}", resp.id, resp.status);
- Ok(())
-}
-```
-
-## Send Template Email
-
-```rust
-use std::collections::HashMap;
-use posta::SendTemplateEmailRequest;
-
-let resp = client.send_template_email(&SendTemplateEmailRequest {
- template: "welcome".into(),
- to: vec!["[email protected]".into()],
- from: Some("[email protected]".into()),
- language: Some("en".into()),
- template_data: Some(HashMap::from([
- ("name".into(), "Alice".into()),
- ])),
- ..Default::default()
-}).await?;
-```
-
-## Batch Send
-
-```rust
-use posta::{BatchRequest, BatchRecipient};
-
-let resp = client.send_batch(&BatchRequest {
- template: "newsletter".into(),
- from: Some("[email protected]".into()),
- recipients: vec![
- BatchRecipient {
- email: "[email protected]".into(),
- template_data: Some(HashMap::from([("name".into(), "Bob".into())])),
- ..Default::default()
- },
- BatchRecipient {
- email: "[email protected]".into(),
- language: Some("fr".into()),
- template_data: Some(HashMap::from([("name".into(), "Carol".into())])),
- ..Default::default()
- },
- ],
- ..Default::default()
-}).await?;
-
-println!("Sent: {}, Failed: {}", resp.sent, resp.failed);
-```
-
-## Check Delivery Status
-
-```rust
-let status = client.get_email_status("email-uuid").await?;
-println!("Status: {}", status.status);
-```
-
-## Error Handling
-
-```rust
-match client.get_email_status("invalid-uuid").await {
- Err(posta::Error::Api { status_code, info }) => {
- println!("Status: {status_code}");
- if let Some(info) = info {
- println!("Message: {}", info.message);
- }
- }
- Err(posta::Error::Http(e)) => println!("Network error: {e}"),
- Err(posta::Error::Decode(e)) => println!("Decode error: {e}"),
- Ok(status) => println!("Status: {}", status.status),
-}
-```
-
-## Error Types
-
-| Variant | Description |
-|---------|-------------|
-| `Error::Api { status_code, info }` | API returned a non-2xx response |
-| `Error::Http(e)` | Network or connection error |
-| `Error::Decode(e)` | Failed to parse response JSON |
diff --git a/docs/sidebars.ts b/docs/sidebars.ts
index 2104e8d..d81e890 100644
--- a/docs/sidebars.ts
+++ b/docs/sidebars.ts
@@ -115,7 +115,6 @@ const sidebars: SidebarsConfig = {
'sdks/go',
'sdks/php',
'sdks/java',
- 'sdks/rust',
],
},
{
diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx
index 9c0aba2..97bc67a 100644
--- a/docs/src/pages/index.tsx
+++ b/docs/src/pages/index.tsx
@@ -68,7 +68,7 @@ const FeatureList: FeatureItem[] = [
},
{
title: 'Official SDKs',
- description: 'Client libraries for Go, PHP, Java, and Rust with typed errors and full API coverage.',
+ description: 'Client libraries for Go, PHP, and Java with typed errors and full API coverage.',
link: '/docs/sdks/overview',
},
];
diff --git a/docs/static/img/screenshots/admin-metrics-dark.png b/docs/static/img/screenshots/admin-metrics-dark.png
deleted file mode 100644
index 98ce348..0000000
Binary files a/docs/static/img/screenshots/admin-metrics-dark.png and /dev/null differ
diff --git a/docs/static/img/screenshots/admin-metrics-light.png b/docs/static/img/screenshots/admin-metrics-light.png
deleted file mode 100644
index 3144cf1..0000000
Binary files a/docs/static/img/screenshots/admin-metrics-light.png and /dev/null differ
diff --git a/docs/static/img/screenshots/admin-platform-metrics-dark.png b/docs/static/img/screenshots/admin-platform-metrics-dark.png
new file mode 100644
index 0000000..049b51d
Binary files /dev/null and b/docs/static/img/screenshots/admin-platform-metrics-dark.png differ
diff --git a/docs/static/img/screenshots/admin-platform-metrics.png b/docs/static/img/screenshots/admin-platform-metrics.png
index 1ea72c9..fcfe370 100644
Binary files a/docs/static/img/screenshots/admin-platform-metrics.png and b/docs/static/img/screenshots/admin-platform-metrics.png differ
diff --git a/docs/static/img/screenshots/analytics.png b/docs/static/img/screenshots/analytics.png
index 93af106..8eb18e9 100644
Binary files a/docs/static/img/screenshots/analytics.png and b/docs/static/img/screenshots/analytics.png differ
diff --git a/docs/static/img/screenshots/dashboard.png b/docs/static/img/screenshots/dashboard.png
index 9767d97..d23a266 100644
Binary files a/docs/static/img/screenshots/dashboard.png and b/docs/static/img/screenshots/dashboard.png differ
diff --git a/docs/static/img/screenshots/email-detail.png b/docs/static/img/screenshots/email-detail.png
deleted file mode 100644
index e1badb9..0000000
Binary files a/docs/static/img/screenshots/email-detail.png and /dev/null differ
diff --git a/docs/static/img/screenshots/email-logs.png b/docs/static/img/screenshots/email-logs.png
deleted file mode 100644
index 413c3b7..0000000
Binary files a/docs/static/img/screenshots/email-logs.png and /dev/null differ
diff --git a/docs/static/img/screenshots/template-detail.png b/docs/static/img/screenshots/template-detail.png
index 2523962..54340af 100644
Binary files a/docs/static/img/screenshots/template-detail.png and b/docs/static/img/screenshots/template-detail.png differ
diff --git a/docs/static/img/screenshots/template-editor.png b/docs/static/img/screenshots/template-editor.png
new file mode 100644
index 0000000..48417de
Binary files /dev/null and b/docs/static/img/screenshots/template-editor.png differ
diff --git a/docs/static/img/screenshots/template-preview.png b/docs/static/img/screenshots/template-preview.png
deleted file mode 100644
index 4e3121f..0000000
Binary files a/docs/static/img/screenshots/template-preview.png and /dev/null differ