brak ustawienia maila - czemu mam inny other.php?

fredro

No avatar

2007-05-18 08:40

Witam. Uruchomilem sklep w wersji 2.0 i mam problem dość dziwny. Wszedzie na forum podaje sie ze trzeba zmienic ustawienia w pliku core/other.php by moc otrzymywac maile z zamowieniami a w moim pliku nie ma w ogole takich wpisow i generalnie wygląda on zupelnie inaczej niz opisywane na forum . Czy ktos moze mi powiedziec co zrobic zeby miec plik z tymi zmiennymi:
require_once 'Mail.php';

$aData['host'] = 'dodental.pl'; // np. adres smtp Twojego serwera
$aData['port'] = 25;
$aData['auth'] = true;
$aData['username'] = 'biuro@dodental.pl'; // nazwa uzytkownika lub adres email (zalezy od serwera)
$aData['password'] = 'moje hasło'; // haslo do Twojej skrzynki

Oczywiscie podmiana tresci pliku nie wchodzi w gre bo wtedy sklep wysypuje sie i nie dziala. Czy musze miec jakąś inną wersje?
Bede wdzieczny za pomoc

FRED

» Quick.Cart v2.x

merci

No avatar

2007-05-18 13:20

fredro - niestety nie bardzo rozumiem o co Ci chodzi, wyjasnij to prosze dokladniej.

fredro

No avatar

2007-05-18 15:34

Chodzi mi o to ze u mnie plik core/other.php wyglada inaczej niz jest podawany na forum bo nie ma w nim tego modułu co wkleilem powyzej. U mnie plik wyglada tak (i nie wiem dlaczego nie ma w nim czesci do wpisania hosta, portu, username i hasla):

if( !function_exists( 'sendEmail' ) ){
/**
* Send e-mail
* @return string
* @param array $aForm
* @param string $sFile
* @param string $sTargetMail
*/
function sendEmail( $aForm, $sFile = 'contact.tpl', $sTargetEmail = null ){
global $tpl;
extract( $aForm );

if( checkLength( $sTopic, 2 ) === true && checkLength( $sMailContent, 2 ) === true && checkEmail( $sSender ) == true ){
if( !empty( $sTelephone ) )
$sMailContent = $GLOBALS['lang']['Telephone'].': '.$sTelephone."\n".$sMailContent;
if( !empty( $sName ) )
$sMailContent = $GLOBALS['lang']['First_last_name'].': '.$sName."\n".$sMailContent;

$sMailContent = changeCharset( $sMailContent );
$sTopic = changeCharset( $sTopic );

if( !isset( $sTargetEmail ) )
$sTargetEmail = $GLOBALS['config']['email'];

if( @mail( $sTargetEmail, $sTopic, $sMailContent, 'From: '.$sSender ) ){
$content = $tpl->tbHtml( $sFile, 'SEND_GOOD' );
}
else
$content = $tpl->tbHtml( $sFile, 'SEND_ALERT' );
}
else
$content = $tpl->tbHtml( $sFile, 'WRONG_WORD' );
return $content;
} // end function sendEmail
}

if( !function_exists( 'tPrice' ) ){
/**
* Return price format
* @return float
* @param float $fPrice
*/
function tPrice( $fPrice ){
return sprintf( '%01.2f', $fPrice );
} // end function tPrice
}

if( !function_exists( 'throwLastId' ) ){
/**
* Return last inserted id
* @return int
* @param string $sDb
* @param int $iPosition
*/
function throwLastId( $sDb = null, $iPosition = 0 ){
if( !isset( $sDb ) )
$sDb = DB_PRODUCTS;
return dbThrowLastId( $sDb, $iPosition );
} // end function throwLastId
}

if( !function_exists( 'dbThrowLastId' ) ){
/**
* Return last inserted id from db file
* @return int
* @param string $sDb
* @param int $iPosition
*/
function dbThrowLastId( $sDb, $iPosition ){
return $GLOBALS['oFF']->throwLastId( $sDb, $iPosition );
} // end function dbThrowLastId
}

if( !function_exists( 'checkEmail' ) ){
/**
* Check that e-mail is correct
* @return bool
* @param string $sEmail
*/
function checkEmail( $sEmail ){
return eregi( "^[a-z0-9_.-]+([_\\.-][a-z0-9]+)*@([a-z0-9_\.-]+([\.][a-z]{2,4}))+$", $sEmail );
} // end function checkEmail
}

if( !function_exists( 'throwStatus' ) ){
/**
* Return status limit
* @return int
*/
function throwStatus( ){
if( isset( $_SESSION['bUserQC'] ) && $_SESSION['bUserQC'] === true )
return 0;
else
return 1;
} // end function throwStatus
}

if( !function_exists( 'throwIconsFromExt' ) ){
/**
* Returns extensions icons
* @return array
*/
function throwIconsFromExt( ){

$aExt['rar'] = 'zip';
$aExt['zip'] = 'zip';
$aExt['bz2'] = 'zip';
$aExt['gz'] = 'zip';

$aExt['fla'] = 'fla';

$aExt['mp3'] = 'media';
$aExt['mpeg'] = 'media';
$aExt['mpe'] = 'media';
$aExt['mov'] = 'media';
$aExt['mid'] = 'media';
$aExt['midi'] = 'media';
$aExt['asf'] = 'media';
$aExt['avi'] = 'media';
$aExt['wav'] = 'media';
$aExt['wma'] = 'media';

$aExt['msg'] = 'msg';
$aExt['eml'] = 'msg';

$aExt['pdf'] = 'pdf';

$aExt['jpg'] = 'pic';
$aExt['jpeg'] = 'pic';
$aExt['jpe'] = 'pic';
$aExt['gif'] = 'pic';
$aExt['bmp'] = 'pic';
$aExt['tif'] = 'pic';
$aExt['tiff'] = 'pic';
$aExt['wmf'] = 'pic';

$aExt['png'] = 'png';

$aExt['chm'] = 'chm';
$aExt['hlp'] = 'chm';

$aExt['psd'] = 'psd';

$aExt['swf'] = 'swf';

$aExt['pps'] = 'pps';
$aExt['ppt'] = 'pps';

$aExt['sys'] = 'sys';
$aExt['dll'] = 'sys';

$aExt['txt'] = 'txt';
$aExt['doc'] = 'txt';
$aExt['rtf'] = 'txt';
$aExt['swx'] = 'txt';
$aExt['odt'] = 'txt';

$aExt['vcf'] = 'vcf';

$aExt['xls'] = 'xls';
$aExt['sxc'] = 'xls';
$aExt['ods'] = 'xls';

$aExt['xml'] = 'xml';

$aExt['tpl'] = 'web';
$aExt['html'] = 'web';
$aExt['htm'] = 'web';
$aExt['com'] = 'exe';
$aExt['bat'] = 'exe';
$aExt['exe'] = 'exe';

return $aExt;
} // end function throwIconsFromExt
}

if( !function_exists( 'change2Url' ) ){
/**
* Change name of product, category for url
* @return string
* @param string $sName
*/
function change2Url( $sName ){
$aFrom = array( ' ', '&raquo;', '/', '$', '\'', '"', '~', '\\', '?', '#', '%', '+', '^', '*', '>', '<', '@', '|', '&quot;', '%', ':', '--' );
$aTo = array( '-', '', '-', '-', '', '', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-' );
return changePolishToNotPolish( str_replace( $aFrom, $aTo, $sName ) );
} // end function change2Url
}

FRED

marcin1991

No avatar

2007-05-18 18:12

Podpisuję się pod problemem. Mam tak samo :(

Marcin

merci

No avatar

2007-05-21 10:44

fredro , marcin1991 - ten kod, ktorego Wam brakuje potrzebny jest dopiero w momencie zastapienia funkcji mail przez inna, gdy uzywacie funkcji mail jest on niepotrzebny. Wiecej przeczytacie o tym tutaj http://www.opensolution.org/Quick.Cart/docs/?id=tips#zastapienie_wysylania_e-maila_przez_funkcje_mail_na_inna

Do góry
o nas | kontakt