Follow these steps to install and configure Securaine on your server.
Upload the software.zip package to your server root directory.
Extract the contents into your desired installation location.
Example:
domain.com/
├── app/
├── public/
├── routes/
├── views/
├── storage/
├── vendor/
├── .env.example
└── index.phpEnsure all application files are uploaded correctly before continuing.
Rename:
.env.exampleto:
.envOpen the .env file and configure the required application settings.
Configure CAPTCHA protection using one of the supported providers:
Google reCAPTCHA
Cloudflare Turnstile
Example:
CAPTCHA_PROVIDER=turnstile
TURNSTILE_SITEKEY=your-site-key
TURNSTILE_SECRET=your-secret-keyor:
CAPTCHA_PROVIDER=recaptcha
RECAPTCHA_SITEKEY=your-site-key
RECAPTCHA_SECRET=your-secret-keyConfigure email delivery settings.
Supported options:
SMTP
PHP mail()
Example SMTP configuration:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=username@example.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=no-reply@example.com
MAIL_FROM_NAME=Website Contact FormChoose how uploaded files should be stored.
Supported storage methods:
Local storage
Amazon AWS S3
Example local storage:
STORAGE_TYPE=localExample Amazon S3 storage:
STORAGE_TYPE=s3
AWS_REGION=your-region
AWS_BUCKET=your-bucket
AWS_KEY=your-access-key
AWS_SECRET=your-secret-keyTo enable AI-powered message generation, add your OpenAI API key:
OPENAI_API_KEY=your-api-keyThe AI message generator is optional and can be disabled if not required.
If you are using Apache, rename:
.htaccess.exampleto:
.htaccessThe .htaccess file enables application routing and clean URLs.
Main application settings are managed through:
app/config.phpYou can customize:
Form fields
Required fields
CAPTCHA settings
Attachment handling
Storage options
Language settings
AI behavior
Logging options
Example:
'form' => [
'fields' => [
'name' => [
'enabled' => true,
'required' => true
],
'email' => [
'enabled' => true,
'required' => true
],
'message' => [
'enabled' => true,
'required' => true
],
]
]Language files are located inside:
/lang/Example:
lang/
├── en.json
├── es.json
└── fr.jsonTo add or modify languages:
Copy an existing language file.
Rename it using the correct language code.
Translate the available language strings.
Save the file.
Securaine automatically loads available language files.
Securaine supports flexible attachment processing.
Files are uploaded securely and attached directly to outgoing emails.
Configuration:
'attachment_delivery' => [
'mode' => 'attachment'
]Recommended for:
Small attachments
Standard contact forms
Immediate email delivery
Files are stored privately and delivered through protected download URLs.
Configuration:
'attachment_delivery' => [
'mode' => 'link',
'expiry_days' => 7,
'max_downloads' => 5,
'password_required' => true
]Features:
Secure download tokens
Optional password protection
Expiring links
Download limits
Local or AWS S3 support
After completing configuration, test the complete application workflow.
Verify:
Upload files successfully
Confirm validation rules work
Confirm storage location is correct
Test:
Google reCAPTCHA
Cloudflare Turnstile
Confirm validation passes correctly.
Verify:
Available languages load
Language switching works
User preference is remembered
Test:
Light mode
Dark mode
CAPTCHA theme updates
Saved theme preference
Verify:
AI modal opens correctly
Prompt submission works
Generated message appears inside the form
Error handling works correctly
Want to improve AI-generated messages?
You can customize the AI prompt template inside:
app/config.phpAdjust the prompt to include:
Communication tone
Business type
Industry
Customer intent
Response style
Example:
'ai' => [
'prompt' => 'Generate a professional inquiry message for a software development company.'
]I want to ask about pricing for a software project.Hello, I’m interested in learning more about your software development pricing. Could you please provide an estimate for a custom project? Looking forward to your response.The generated message is automatically inserted into the message field.
Users can:
Review the message
Edit the content
Add additional details
Submit the final inquiry
Once configured, Securaine is ready to provide:
Secure contact communication
AI-assisted message generation
Multilingual support
File upload handling
Local and cloud storage
Responsive user experience
Production-ready security features
Stop Spam. Start Communicating.