# RATEC Contact Form - Admin Panel Guide

## Overview

Your contact form plugin now includes a powerful admin panel to manage all form submissions. All messages are automatically saved to your WordPress database and displayed in an easy-to-use interface.

## Accessing the Admin Panel

### Method 1: From the Dashboard
1. Log in to WordPress as an administrator
2. Look for **"Contact Forms"** in the left sidebar menu
3. Click on **"All Messages"** to view all submissions

### Method 2: From the Admin Bar
1. At the top of the WordPress admin, look for **"Messages"**
2. Click the red notification badge if there are unread messages
3. This will take you directly to the admin panel

## Admin Panel Features

### 📊 Dashboard Statistics

At the top of the admin panel, you'll see statistics cards:

- **Total Messages** - Total number of form submissions received
- **Unread Messages** - Number of messages you haven't read yet (shown in red badge)

### 📧 Message List

The main table displays all submissions with:

- **Status Indicator** - Red dot (●) shows unread messages
- **Name** - Visitor's full name
- **Email** - Visitor's email address (clickable for mailto)
- **Subject** - Message subject line
- **Date** - When the message was received (with time)
- **Actions** - View, Mark Read/Unread, and Delete buttons

### 🔍 How to Find Specific Messages

**Look through the table:**
- Messages are listed newest first
- Unread messages have a light orange background
- Hover over rows to see them highlighted

**Identify important messages:**
- Unread messages show a red dot (●) on the left
- The admin bar shows the count of unread messages

## Managing Messages

### View Message Details

1. Click the **"View"** button or anywhere on the message row
2. You'll see the full message with all details:
   - Sender's name, email, and phone
   - Subject line
   - Full message content
   - IP address (for reference/security)
   - Exact date and time received
   - Admin panel link

### Mark as Read/Unread

1. Find the message in the table
2. Click **"Mark Read"** to mark it as read
3. Click **"Mark Unread"** to mark it as unread again

**Note:** Messages are automatically marked as read when you view them.

### Delete Messages

1. Find the message you want to delete
2. Click the **"Delete"** button (red text)
3. Confirm the deletion in the popup

**Warning:** Deleted messages cannot be recovered. Make sure you have the information you need before deleting.

### Reply to Visitor

In the message details page:
1. Click **"Reply via Email"** button
2. Your default email client will open with the visitor's email pre-filled
3. Write your reply and send

## Message Details Page

When viewing a full message, you can see:

### Information Section
- **Name** - Visitor's full name
- **Email** - Clickable link to send an email
- **Phone** - Clickable link to call (if provided)
- **Subject** - The subject line
- **IP Address** - Where the form was submitted from
- **Date** - Full date and time

### Message Content
- The full message text formatted clearly
- Original line breaks are preserved

### Action Buttons
- **Reply via Email** - Open your email client to respond
- **Delete** - Remove this message
- **Back to Messages** - Return to the list

## Settings

### Access Settings

1. In the left sidebar, click **"Contact Forms"**
2. Click **"Settings"** submenu
3. Modify and save

### Available Settings

**Email for Submissions**
- Where contact form submissions are sent
- Default: Your WordPress admin email
- You can change this to any email address
- Confirmation emails to visitors are always sent to the formautomatically

## Best Practices

### 📌 Organization Tips

1. **Regular review** - Check your admin panel daily or weekly
2. **Respond promptly** - Reply to messages within 24-48 hours
3. **Mark as read** - Keep track of which messages you've addressed
4. **Keep important messages** - Delete messages after responding and recording info
5. **Archive backup** - If important, copy message content to a separate document

### 🔒 Security Tips

1. **Check IP addresses** - Look for spam patterns from same IPs
2. **Verify emails** - Legitimate customers use real email addresses
3. **Watch for suspicious patterns** - Multiple submissions with similar content
4. **Save important details** - Contact info for future reference

### 📧 Response Template

When replying to visitors, consider a professional template:

```
Hi [Name],

Thank you for contacting us. We appreciate you reaching out.

[Your response here]

Best regards,
[Your Name]
[Your Business]
```

## FAQ - Admin Panel

### Q: Where are submissions saved?
**A:** All submissions are saved in your WordPress database in a dedicated table. They're accessible only through this admin panel.

### Q: Can I export messages?
**A:** Yes, you can copy the information from the admin panel or manually export it. Consider using a backup plugin for regular backups.

### Q: How long are messages kept?
**A:** Messages stay in your database until you delete them. We recommend deleting old messages to keep your database clean.

### Q: Do I get email notifications?
**A:** Yes, every submission triggers an email to your admin email with the message details and a link to view it in the admin panel.

### Q: Can visitors see their submitted messages?
**A:** No. Only WordPress administrators can access the admin panel to view submissions.

### Q: What if I accidentally delete a message?
**A:** Once deleted, messages cannot be recovered. Make sure to keep important information elsewhere.

### Q: Can multiple people manage submissions?
**A:** Yes, anyone with admin access in WordPress can view and manage submissions.

### Q: How can I receive notifications for new submissions?
**A:** The plugin sends an email to your admin email for each submission. Also check the red badge on "Messages" in the admin bar.

## Troubleshooting

### Messages not appearing
1. Verify the form was submitted successfully
2. Check that the plugin is activated
3. Try refreshing the page (F5)
4. Check browser console for errors (F12)

### Can't delete messages
1. Make sure you're logged in as an administrator
2. Refresh the page and try again
3. Contact your hosting support if the issue persists

### Emails not received
1. Check your WordPress admin email setting
2. Check spam/junk folders
3. Verify your hosting provider allows emails
4. Check the form Settings page configuration

### Missing submissions
1. Check if plugin was activated at the time form was submitted
2. Verify the database table was created
3. Contact your hosting provider to check database status

## Database Information

The plugin creates a table called: `wp_ratec_contact_submissions`

(The `wp_` prefix may vary based on your WordPress configuration)

**Table Structure:**
- `id` - Unique submission ID
- `name` - Visitor's name
- `email` - Visitor's email
- `phone` - Visitor's phone (optional)
- `subject` - Message subject
- `message` - Full message content
- `is_read` - Read status (0 = unread, 1 = read)
- `ip_address` - Visitor's IP address
- `created_at` - Submission timestamp

## Regular Maintenance

### Weekly
- Review unread messages
- Respond to inquiries
- Mark replied messages as read

### Monthly
- Delete old/irrelevant messages
- Verify email addresses haven't changed
- Update contact form settings if needed

### Quarterly
- Back up your submissions (if important)
- Review statistics for trends
- Update settings as needed

---

## Need Help?

**For issues:**
1. Check this guide first
2. Review the QUICK_START.md file
3. Contact your WordPress host
4. Check WordPress.org plugin support forums

**Enjoy managing your contact form! 🎉**
