For downloading more than individual files at one time, you can connect to FTP (HelpDesk article: FTP in cPanel), or you can run a backup (HelpDesk article: Manually Backup Web Hosting Content in cPanel). Note: You can only download individual files in the cPanel file manager. See the article: Edit Text Files and HTML Files in cPanel Note: You can directly edit text files and HTML files in the cPanel file manager. Note: For more information on how to move or copy files in the cPanel file manager, see the article: Move or Copy Files in cPanel You can also sort the file list by "Name", "Size", and "Last Modified" by clicking on the certain column heading. Select a file or folder and use the top action menu to select an action, or right-click a file or folder to bring up an action menu.Īs the file list is usually long, you can find a certain file more easily by going into the appropriate folder, then using your internet browser page search function to find the file name ("Control + F" on Windows, "Command + F" on Mac). In the file manager, you can open folders to view files, move or copy files, download, upload, rename, edit, compress, change permissions, delete files, and also create new files and folders. (See HelpDesk article: Add Domain in cPanel) įiles for addon domains on the website hosting will be located in folders with the actual domain name, or whichever folder you set as the "document root" of the domain when you created the addon domain.
The primary domain's website is housed in the "public_html" folder. Clicking on the "File Manager" link will open the files in a new browser window.
In cPanel, to find the "File Manager", scroll to it on the main cPanel page, or use the cPanel search function to search for "File Manager". $mail->AltBody = 'This is the body in plain text for non-HTML mail clients' Įcho "Message could not be sent.Note: For another way to manage web hosting files, also see: FTP in cPanelįirst, login to cPanel in a web browser (Knowledgebase article: Login to cPanel) $mail->Body = 'This is the HTML message body in bold!' $mail->isHTML(true) // Set email format to HTML $mail->addAttachment('/home/cpanelusername/image.jpg', 'new.jpg') // Optional name $mail->addAttachment('/home/cpanelusername/attachment.txt') // Add attachments This interface allows you to access, download, upload, copy, move, rename, delete, and edit files and directories in your account. $mail->Port = 587 // TCP port to connect 'Joe User') // Add a // Name is Attachments Learn how to use the File Manager interface to manage and edit your files on your cPanel account. $mail->SMTPSecure = 'tls' // Enable TLS encryption, ssl also accepted $mail->Password = 'secret' // SMTP password $mail->SMTPAuth = true // Enable SMTP authentication $mail->Host = ' ' // Specify main and backup SMTP servers $mail->isSMTP() // Set mailer to use SMTP SMTPDebug = 2 // Enable verbose debug output $mail->AltBody - Update this to a plain text version of your content/message.This does not have to be HTML but it can contain HTML. $mail->Body - Update this to your desired HTML content.$mail->Subject - Update this to your desired subject.$mail->addAttachment - Remove this or update the path to a file to attach.$mail->addBCC - Remove this or set it to a BCC recipient address.$mail->addCC - Remove this or set it to a CC recipient address.$mail->addReplyTo - Set this to the same address from the Username configuration above.$mail->addAddress - Set this to the recipient address.$mail->setFrom - Use the same address from the Username configuration above.$mail->Password - Use the password for the valid email account on your cPanel server.$mail->Username - Use the email address of a valid email account on your cPanel server.Your domain name can be used in some cases as well. $mail->Host - Use your cPanel server's hostname.The paths to the PHP files in the require statements.
The script requires modification in order to work on your specific environment. This script is set up to produce detailed debug output by default.