Dev {Tricks}

  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting
You are here: Home / Archives for Email Solutions

September 11, 2021 by dev

How to translate Browse or Choose File for form input type=file

  • Change default text in input type=”file”
  • Change language of input type=file

HTML form input type=”file” provides “Browse” and “No file Selected” in firefox and “choose File” and “No File Chosen” in chrome to choose a file.

It’s not possible to translate “Choose file” and “No file chosen” or “Browse” and “No file selected” labels, as those are native browser elements and depend on browser’s language.

However, we can apply some tricks like

  • Putting image instead of button
  • Making file input transparent or display none
  • Text input below the button

Trick with CSS

 

 

Trick with Javascript

HTML:
For image, file and video. You can use one as per requirement.

<!-- bootstrap.min.css not necessary -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.0/css/bootstrap.min.css">

<input data-com="fileBtn" placeholder="Select Image"> <!-- com: components -->
<input data-com="fileBtn" placeholder="Select File">
<div class="mt-2">
<input id="build-by-myself" placeholder="Select Video" accept="video/mp4, video/webm">
<div>

Javascript:

<script>
// ? Test
(()=>{
window.onload = () =>{
// FileButton.className =”btn btn-danger”
FileButton.BuildAll() // auto build all data-com=”fileBtn”

// or you can specify the target that you wanted.
new FileButton(document.getElementById(“build-by-myself”), “btn btn-danger”)
}
})()

// ? script begin
class FileButton {
static className = “btn btn-primary”
static BuildAll() {
document.querySelectorAll(`input[data-com=”fileBtn”]`).forEach(input=>{
new FileButton(input, FileButton.className)
})
}
/**
* @param {HTMLInputElement} input
* @param {string} btnClsName
* */
constructor(input, btnClsName) {
input.style.display = “none” // [display is better than visibility](https://stackoverflow.com/a/48495293/9935654)
input.type = “file”
const frag = document.createRange().createContextualFragment(`<button class=”${btnClsName}”>${input.placeholder}</button>`)
const button = frag.querySelector(`button`)

input.parentNode.insertBefore(frag, input)

button.onclick = ()=>{
input.click()
}
input.addEventListener(`change`, (e)=>{
// create a textNode to show the file name.
const file = input.files[0]
if (file === undefined) {
return
}
const textNode = document.createTextNode(file.name)
if (button.textNode) { // create a new attribute to record previous data.
button.textNode.remove()
}
button.textNode = textNode
button.parentNode.insertBefore(textNode, input)
})
}
}
</script>

Filed Under: Email Solutions, How to, PHP Email Form

September 5, 2021 by dev

The target principal name is incorrect – Microsoft Outlook

  • The server you are connected to is using a certificate that cannot be verified.
  • The target principal name is incorrect.

Solution:

  • Click on the View Certificate
  • Check the Issued to value
  • Now go to Microsoft Outlook and navigate to: File | Account Setting | Account Setting
  • Select your e-mail account and click on the Change button.
  • Change the values of the Incoming and Outgoing (SMTP) server address so it matches the name on the Certificate. mail.domain.com
  • Click Next and Finish

The warning message should be gone.

Filed Under: Email Solutions, Microsoft Outlook

August 28, 2021 by dev

DMARC record

Domain-based Message Authentication, Reporting, and Conformance (DMARC) helps mail server administrators to prevent hackers and other attackers. It provides extra protection of email accounts from spam, spoofing, and phishing.

DMARC is the key to improving Email Deliverability! By some measures, 80% of mailboxes worldwide are protected by DMARC. DMARC dramatically improves on SPF and DKIM by letting you:

  • Monitor, detect and fix real world problems with your SPF and DKIM configuration
  • See the email volumes you’re delivering to inboxes
  • Identify threat emails pretending to come your domain. (Spoofing)
  • Control the delivery of your email and defend against spoofing attacks.

How do I set it up?

Before we begin, here’s a high-level overview of how to add DMARC to your DNS.

  • Add your DMARC record into your DNS
  • Select the TXT record type
  • Add the host value (see details below)
  • Add the value information (see details below)
  • Save the DMARC record
  • Validate the DMARC setup (see details below)

Filed Under: Email Solutions Tagged With: DMARC

August 26, 2021 by dev

How to manually backup and restore all emails accounts in cPanel

Follow these simple steps:

Old Server Task:

  • Login to your old cPanel
  • Go to Backup Wizard -> Back Up -> Full Backup
  • Click on the “Generate Backup” button (Home Directory)
  • Download the backup file to your computer
  • Extract the file and go to homedir -> mail -> domain.com (folder). (You will find all Email accounts inside the folder)
  • Select everything inside the folder (domain) and compress to upload in the new cPanel account

If backup wizard is hidden then you can follow

https://serverhostname.com:2083/cpsess1268795626/frontend/paper_lantern/backup/wizard.html

New Server Task:

  • Login to your new cPanel
  • Go to “Email Accounts” and create all email accounts those were in the old cPanel.
  • Then go to File Manager -> mail -> domain.com (folder)
  • Upload the compressed file here [Old Server Task last point]
  • Extract the compressed file and you are done.

Now login to your email accounts and find all your data.

Filed Under: Email, Email Solutions, How to, Server and Hosting Tagged With: copy email manually, cpanel email, cpanel to cpanel email transfer, email migration, email transfer, transfer email, transfer email account, transfer email account to new hosting

August 4, 2021 by dev

Importing Mails to Plesk one by one | Free and Easy steps.

To import email to Plesk:

  • Install “Site Import” extension. https://www.plesk.com/extensions/site-import/
  • Then go to “Websites & Domains” and you will find “Mail Importing” link.
  • Click “Mail Importing” link
  • Then click “Import mail messages” button.
  • Now provide Source email (login), Source password and Destination email.
  • Click OK.
  • That’s all!

You can ignore “Show advanced options” By default, it is detected automatically.

  • You can also use the module “E-Mail Migration Module for Plesk” (Free only for 2 email accounts)
  • “Plesk Migrator” is also another good option.

Filed Under: AWS, Blesta, Bluehost, Boxbilling, Contabo, cPanel, Digitalocean, DirectAdmin, Email, Email Solutions, HostGator, How to, Plesk, Providers, Server and Hosting, Virtualmin, VPSDime, Web Control Panel, WebMail, Webmin, WHM, WHMCS Tagged With: cpanel, cwp, da, DirectAdmin, email, Mail accounts, Mail Importing, Migrate, Migrate emails, plesk, Site Import, universal email migrator plesk

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page »
  • Upwork
  • Freelancer
  • Fiverr
  • Guru

www.ojsexpert.com
www.ojsdev247.com

Recent Posts

  • To get your email for castamodel.com going to the right place, you need to update your DNS settings.
  • Security and WordPress
  • ROR
  • How do we copy google form to google workspace?
  • Install ImageMagick – Almalinux
  • How to remove /public/ from URL in Laravel
  • How to install Maldet alert?
  • How to Install Maldet and Run a Scan | Maldetect
  • Where is Roundcube location on CWP control panel?
  • How To Add Node.js Projects In aaPanel?
  • SPF/DKIM/DMARC Tools
  • Associative arrays – How to loop over Associative arrays
  • Indexed Arrays. How to loop over Indexed Arrays.
  • PHP Break | Continue
  • For Loop | While Loop | Do…While Loop | Foreach Loop
  • Strict mode in PHP
  • PHP Function Return Types
  • PHP Anonymous Functions (or Closures)
  • PHP Variadic Functions
  • PHP nullable type hints

Categories

  • Affiliate Marketing (1)
  • Customization (4)
    • CSS (2)
  • Email Solutions (23)
    • FrontApp (2)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (2)
    • Recaptcha (1)
    • Roundcube (4)
    • Thunderbird (3)
    • WebMail (5)
  • Games (1)
  • How to (87)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (5)
  • Miscellaneous (31)
  • MultiSaaS (1)
  • OJS (56)
    • Crossref (1)
    • Help (37)
    • Installation (10)
      • Issues (5)
    • Plugins (8)
    • Scholar Indexing (2)
    • Theme (7)
      • Templates (7)
        • Frontend (6)
        • legacy (1)
    • Theme Customization (10)
    • Theme Development (14)
    • TPL CSS JS (2)
    • Upgrade (11)
  • OSTAD (17)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (14)
    • MS Office (2)
      • PowerPoint (1)
    • Windows (4)
  • PHP Parse error (2)
  • phpBB (2)
  • Server and Hosting (213)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (28)
      • Almalinux (13)
      • CentOS (17)
      • Debian (21)
      • Ubuntu (19)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (69)
      • AWS (37)
      • Bluehost (37)
      • Cloudcone (26)
      • Contabo (40)
      • Digitalocean (68)
      • Hetzner (3)
      • HostGator (36)
      • Hostinger (8)
      • RackNerd (10)
      • VPSDime (38)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (147)
      • aaPanel (14)
      • CentOS Web Panel (46)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (26)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (89)
    • Elementor (2)
    • Find and Fix (11)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (22)
    • Neuron TD (15)
      • Console Error (1)
      • functions (5)
        • register_post_type (1)
        • register_sidebar (1)
        • theme_files (1)
        • theme_supports (1)
      • Image Directory (1)
      • Menu (2)
      • Query (4)
    • Plugins (13)
      • Contact Form 7 (5)
      • Duplicator (1)
      • Essential Grid (2)
    • Softaculous (3)
    • Speed and Security (4)
    • Stock Theme Development (6)
      • Header Footer (1)
      • PHP (1)
      • VC (1)
    • Theme Development (2)
      • Issues (1)
      • Menu (1)
    • Timer Theme Development (3)
    • Update (2)
    • Woocommerce (2)
    • WP Basic Guideline (8)

Important DEV links

  • Premium Themes
    • Themeforest
    • Envato Market
  • Built With (What Theme is That?)
    • What WP theme is that
    • Joomla Template Detector
    • Drupal Template Detector
    • Prestashop Template Detector
    • Shopify Theme Detector
    • Squarespace Template Detector
    • OpenCart Detector
    • WordPress.com Theme Detector
  • Domain/IP history checker
    • Who IS request
    • Hosting Info
  • Check DNS Propagation
    • DNS Checker
    • intoDNS
  • What is my IP
    • What is My IP Address
    • What is My IP
    • IP location
    • What is My IP
    • Porkbun
  • SEO Tools
    • Visitor Traffic
    • Broken Link
    • Website Speed Test
      • SEMrush
      • GTmetrix
      • Pingdom
      • PageSpeed Insights
      • DebugBear
      • keyCDN
  • Photo Image
    • Remove Background 50 Free Preview Image 375 × 666 per month
  • Domain Registrars
    • 123-Reg
    • Porkbun
    • Freenom
    • Namecheap NEWCOM598
  • Hosting Providers
    • Bluehost
    • Hostgator
    • Inmotion
  • Hosting Control Panel
    • CWPpro (FREE)
    • DirectAdmin (Trial 60 Days, One account $2/month)
    • ISPConfig (Free)
  • Webmaster Tools
    • Google
    • Bing
    • Yandex
  • Miscellaneous
    • Time Calculator

 

Categories

  • Affiliate Marketing (1)
  • Customization (4)
    • CSS (2)
  • Email Solutions (23)
    • FrontApp (2)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (2)
    • Recaptcha (1)
    • Roundcube (4)
    • Thunderbird (3)
    • WebMail (5)
  • Games (1)
  • How to (87)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (5)
  • Miscellaneous (31)
  • MultiSaaS (1)
  • OJS (56)
    • Crossref (1)
    • Help (37)
    • Installation (10)
      • Issues (5)
    • Plugins (8)
    • Scholar Indexing (2)
    • Theme (7)
      • Templates (7)
        • Frontend (6)
        • legacy (1)
    • Theme Customization (10)
    • Theme Development (14)
    • TPL CSS JS (2)
    • Upgrade (11)
  • OSTAD (17)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (14)
    • MS Office (2)
      • PowerPoint (1)
    • Windows (4)
  • PHP Parse error (2)
  • phpBB (2)
  • Server and Hosting (213)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (28)
      • Almalinux (13)
      • CentOS (17)
      • Debian (21)
      • Ubuntu (19)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (69)
      • AWS (37)
      • Bluehost (37)
      • Cloudcone (26)
      • Contabo (40)
      • Digitalocean (68)
      • Hetzner (3)
      • HostGator (36)
      • Hostinger (8)
      • RackNerd (10)
      • VPSDime (38)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (147)
      • aaPanel (14)
      • CentOS Web Panel (46)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (26)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (89)
    • Elementor (2)
    • Find and Fix (11)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (22)
    • Neuron TD (15)
      • Console Error (1)
      • functions (5)
        • register_post_type (1)
        • register_sidebar (1)
        • theme_files (1)
        • theme_supports (1)
      • Image Directory (1)
      • Menu (2)
      • Query (4)
    • Plugins (13)
      • Contact Form 7 (5)
      • Duplicator (1)
      • Essential Grid (2)
    • Softaculous (3)
    • Speed and Security (4)
    • Stock Theme Development (6)
      • Header Footer (1)
      • PHP (1)
      • VC (1)
    • Theme Development (2)
      • Issues (1)
      • Menu (1)
    • Timer Theme Development (3)
    • Update (2)
    • Woocommerce (2)
    • WP Basic Guideline (8)
  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting

Copyright © 2025 · Executive Pro Theme on Genesis Framework · WordPress · Log in