PHP mailer is one of the highly recommended over the normal PHP email function. PHP Mailer is one of the most popular ones. The direct link to your webmail should work for any cpanel instance. SMTP is a protocol for sending emails, many programs can use it, from your local email client (thunderbird, outlook) to appliances like printers. We have various way ways of using the PHP email. If you do not want to or cannot enable this, then you can remove the code between the MESSAGE COUNT CODE. Warning: This webmail service requires Javascript In order to use it please. Of course, it is not the best practice to store your passwords in plaintext so you may want to come up with a solution for encrypting these, but you can use this example to get started.Īlso, you need to have php_imap.dll enabled in php for the count of messages code to work. $oResult = imap_search($inbox, 'UNSEEN') Įcho('You have '.$nMsgCount.' unread messages.') $inbox = imap_open('INBOX',$emailAddress,$emailPassword) or die('Cannot connect to domain:'. Change this from true to false as needed for your situation $useHTTPS = true // Depending on how your cpanel is set up, you may be using a secure connection and you may not be. $emailPassword = 'yourpassword' // Email password You already have a complete email viewer built into cpanel, so why not take advantage of it? Use the following code to determine how many unread emails you have in your inbox as well as generate a link that will open your webmail without having to type your username/password: $emailAddress = // Full email address
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |