Tengo mis datos de conexion a mi base de datos,
Pero no se como configurar mi cuenta de yahoo.es para leer mis correo y enviar desde mi web.
si quiern le senvio el programa completo, para que lo revisen.
por todo gracias.
este es el codigo del archivo emailconfig.php
Código PHP:
<?
/*** Set this to your domain name. ***/
$domain = "netlogger.net";
/*** DB Host setting - Should Change this to your site setting ***/
$db_host = "localhost"; // database hostname - leave as it is
$db_name = "changethis"; // name of your database
$db_username = "changethis"; // username to connect to database
$db_passwd = "changethis"; // password to connect to database
/*** Attachment Directory settings ***/
/** Note: Pls make sure the directories you specify below have write
permissions (ie chmod 777). Otherwise, the attachments cannot be
downloaded or uploaded. **/
/** Specify a directory where the attachments should be stored.
This path is full path name and has a trailing '/' at the end.
This is the place where you want your uploaded attachments to be stored. **/
$attachmentdir = "/home/netlogger/www/mail/tmp/";
/** This is the directory where your received attachment files will be stored.
This path is only a relative path from your phpmailbox installation directory.
you must add the trailing '/' at the end. **/
$download_dir = "attachments/";
/*** phpMailbox Config ***/
/** If you want to specify a default pop3 server for members of your site,
Set the below variable to your pop server address, otherwise leave as it is. **/
$defaultpopserver = "";
/** Valid only when $defaultpopserver is set. If you want your members to use
only _your_ pop3 server, set this to true. (default = false) **/
$singleaccount = false;
/** The name of the account to display for default pop server. **/
$singleaccountname = "My Mailbox";
/** Multiple pop3 servers ::
Valid only when $singleaccount is false. Set limit for number of pop3
accounts your members can configure (from settings menu) to check their mails
from multiple pop3 servers. if you set this to -1, your members can add
unlimited number of pop servers **/
$numaccounts = 5;
/** Set your footer message to be appended to every sent messages. **/
$footermsgtxt = "Sign up today at [url]http://[/url]$domain\n";
/*** Auth table settings ***/
/** You DON'T have to change ANY of this unless you want to make
use of your site's existing authentication integrate with
phpmailbox.
* Map the below variables to the name of your auth table, and
also to the names of columns representing the username, password and
userid fields in your authentication table.
These mapped fields will be used internally by phpmailbox to
authenticate user and login by default into your pop3 server if
you specify one.
* The userid is a unique id (varchar(32) type) for each user. Please
add this field into your auth table if you do not have userid column.
* Once the user is logged in, the userid should be obtained and be
registered as a session variable -> 'uid'.
This 'uid' is the only session variable required throughout phpmailbox.
From your login page, you can set the uid session variable as follows..
session_register(uid);
where $uid is the userid of logged in user, obtained from your auth table.
**/
$db_authtable = "nl_siteusers"; // table containing username & password
$db_usernamefield = "username"; // field in $db_authtable representing username
$db_passwordfield = "password"; // field in $db_authtable representing password
$db_userid = "userid"; // field in $db_authtable representing userid
/*** Other Settings ***/
/** Specify the mailbox images directory. **/
$imgpath = "images/";
/** Filter some header line while forwarding (X-Mailer, Received, etc.)
Set to 0 to disable filtering; set to 1 to enable it. **/
$filter_forward = 1;
$hrcolor = "#efefef";
?>