manji kapital -

Magazine
Go Back   Computer soka > Computer Software > Web Dizajn, Hosting & SEO

Register


 Default 

Kruška mail




Reply
 
Thread Tools
  #1  
Old 30. ožujak 2008, 12:21
Member Group
 
Default Kruška mail

Pozdrav svima im imajući problem s kruške mail.php

uzimajući im se ova poruka o pogrešci

Fatal error: Class' Mail 'not found in \ Pear \ mail.php on line 26

ovdje je moj broj

[PHP]
<? php
/ / Referentna biblioteka PEAR Mail
require_once 'Mail.php';
/ / Glavni klase, koristi za dobivanje informacija red,
/ / Run dijela cjevovoda, revizija narudžbe, itd.
klasa OrderProcessor
(
javna $ mOrderId;
javna $ mOrderStatus;
javna $ mConnection;
javna $ mConfiguration;
javna $ mContinueNow;
privatni $ mCurrentCustomer;
privatni $ mCurrentOrderDetails;
privatni $ mOrderManager;
privatni $ mReference;
privatni $ mAuthCode;
/ / Konstruktor stvara DoOrderManager primjer
__construct function ()
(
$ this-> mOrderManager = new DoOrderManager ();
)
/ / Proces se zove od checkout.php i orders_admin.php u procesu
/ / Order; prvi parametar je ID reda, a drugi
/ / Parametar je OrderProcessorConfiguration primjer.
javne funkcije procesa ($ newOrderId, $ newConfiguration)
(
/ / Set order ID
$ this-> mOrderId = $ newOrderId;
/ / Configure procesor
$ this-> mConfiguration = $ newConfiguration;
$ this-> mContinueNow = true;
/ / Log početak izvršenja
$ this-> AddAudit ( "Red Processor počeo.", 10000);
/ / Dobiti status narudžbe
$ this-> mOrderStatus = $ this-> mOrderManager-> GetOrderStatus ($ this-> mOrderId);
/ / Proces sekcija cjevovod
pokušati
(
while ($ this-> mContinueNow)
(
$ this-> mContinueNow = false;
CPS $ = $ this-> GetCurrentPipelineSection ();
$ CPS-> Process ($ this);
)
)
catch (Exception e $)
(
trigger_error ( "Exception" '. $ e-> GetMessage ()'. "on".
$ e-> getFile (). "Linija". $ e-> getLine ());
$ this-> MailAdmin ( "Order Processing greška ocured.", $ e-> GetMessage ());
$ this-> AddAudit ( "Order Processing greška ocured.", 10002);
baciti novo Exception ( "procesor error");
)
$ this-> AddAudit ( "Red Processor dovršen.", 10001);
)
/ / Dobiva objekt primjer predstavlja trenutni odjeljak plinovoda
privatni GetCurrentPipelineSection function ()
(
switch ($ this-> mOrderStatus)
(
case 0:
$ this-> mCurrentPipelineSection = new PsInitialNotification (); break;
case 1:
$ this-> mCurrentPipelineSection = new PsCheckFunds (); break;
case 2:
$ this-> mCurrentPipelineSection = new PsCheckStock (); break;
case 3:
$ this-> mCurrentPipelineSection = new PsStockOk (); break;
case 4:
$ this-> mCurrentPipelineSection = new PsTakePayment (); break;
case 5:
$ this-> mCurrentPipelineSection = new PsShipGoods (); break;
case 6:
$ this-> mCurrentPipelineSection = new PsShipOK (); break;
case 7:
$ this-> mCurrentPipelineSection = new PsFinalNotification (); break;
case 8:
baciti novo Exception ( "Red je već bio dovršen."); break;
Zadano:
baciti novo Exception ( "Nepoznata cjevovod odjeljak zatražio.");
)
)
/ / Šalje e-mail
javnih funkcija mail ($ params, $ to, $ headers, $ message)
(
/ / Stvaranje objekta pošte koristeći Mail:: Tvornica metoda
$ mail_object = Mail:: factory ( 'smtp', $ params);
/ / Test mail objekt vrijedi
if (PEAR:: ISERROR ($ mail_object))
baciti novo Exception ($ mail_object-> GetMessage ());
/ / Šalje e-mail
$ result = $ mail_object-> send ($ to, $ headers, $ message);
/ / Test pošte, ako je uspiješno poslan
if (PEAR:: ISERROR ($ result))
baciti novo Exception ( "Nije moguće poslati e-mail na $ na"..
$ result-> GetMessage ());
)
/ / Gradi e-mail poruka
javnu funkciju MailAdmin ($ subject, $ message)
(
/ / Obično vam nije dozvoljeno postaviti 'Od' header
$ headers [ 'Od'] = $ this-> mConfiguration-> mOrderProcessorEmail;
$ headers [ 'Subject'] = $ subject;
$ headers [ 'Da'] = $ this-> mConfiguration-> mAdminEmail;
$ this-> Mail ($ this-> mConfiguration-> mOrderProcessorEmailParams,
$ this-> mConfiguration-> mAdminEmail,
$ headers,
$ message);
)
/ / Dobiva kupca da je red
javnu funkciju GetCurrentCustomer ()
(
if (empty ($ this-> mCurrentCustomer))
(
$ this-> mCurrentCustomer = new
Ocjena ($ this-> mOrderManager-> GetCustomerByOrderId ($ this-> mOrderId));
if (empty ($ this-> mCurrentCustomer))
baciti novo Exception ($ this-> mOrderId. "kako nema
kupca ");
)
return $ this-> mCurrentCustomer;
)
/ / Dobiva podatke o trenutnom reda
javnu funkciju GetCurrentOrderDetails ()
(
if (empty ($ this-> mCurrentOrderDetails))
(
$ this-> mCurrentOrderDetails = new
OrderDetails ($ this-> mOrderManager-> GetOrderDetails ($ this-> mOrderId));
if (empty ($ this-> mCurrentOrderDetails))
baciti novo Exception ($ this-> mOrderId.
"Ne bi detalje ulaz");
)
return $ this-> mCurrentOrderDetails;
)
/ / Dodaje revizije poruku
javnu funkciju AddAudit ($ message, $ messageNumber)
(
$ this-> mOrderManager-> AddAudit ($ this-> mOrderId, $ message, $ messageNumber);
)
/ / Radi ažuriranja statusa
javnu funkciju UpdateOrderStatus ($ newStatus)
(
$ this-> mOrderManager-> UpdateOrderStatus ($ this-> mOrderId, $ newStatus);
$ this-> mOrderStatus = $ newStatus;
)
/ / Set order's autorizacijski kod i referentni kod
javnu funkciju SetOrderAuthCodeAndReference ($ newAuthCode, $ newReference)
(
$ this-> mOrderManager-> SetOrderAuthCodeAndReference ($ this-> mOrderId,
$ newAuthCode,
$ newReference);
$ this-> mAuthCode = $ newAuthCode;
$ this-> mReference = $ newReference;
)

/ / Code red dobiva ovlaštenje i referentni kod
privatni GetOrderAuthCodeAndReference function ()
(
$ result = $ this-> mOrderManager-> GetOrderAuthCodeAndReference (
$ this-> mOrderId);
if (empty ($ result)) throw Exception ($ this-> mOrderId. "ne postoji");
$ this-> mAuthCode = $ result [ 'auth_code'];
$ this-> mReference = $ result [ 'reference'];
)
/ / Code red dobiva ovlaštenje
javnu funkciju GetAuthCode ()
(
if (empty ($ this-> mAuthCode)) $ this-> GetOrderAuthCodeAndReference ();
return $ this-> mAuthCode;
)
/ / Dobiva kod order reference
javnu funkciju GetReference ()
(
if (empty ($ this-> mReference)) $ this-> GetOrderAuthCodeAndReference ();
return $ this-> mReference;
)
/ / Set order brod datum
javnu funkciju SetDateShipped ()
(
$ this-> mOrderManager-> SetDateShipped ($ this-> mOrderId);
)
)

?>
[/ php]

Please help netko to će biti mnogo poštovati. idući vrstu ljut.

Hvala vrlo velik dio
  #2  
Old 31. ožujak 2008, 17:31
Donatorska Grupa
 
Default Kruška mail

Je li ovo dobiti riješen?

http://www.geeklog.net/forum/viewtop...howtopic=75900 raspravlja o tome. Ja sam ne koristi bilo koji kruška modula pod Windows toliko težak to vam je najbolji put naprijed.
__________________

My System: Tim

Procesor (i):
Athlon 64 3500 +
Matične ploče:
Asus A8N-VM CSM
RAM memorija:
Gusar PC3200 CL2 DDR-400 2GB
Grafička kartica (e):
nVidia Geforce 6600 512MB
Sound Card:
Cherry RS 6000 m tipkovnici
Tvrdi disk (i):
Barracuda.7 + 2x200GB 58MB / s održavati
Optički pogon (e):
Samsung DVD-ROM TS-H352
Case / PSU:
Thermaltake sopran
Hlađenje:
Stock
Network / Internet:
Telewest 2x20Mb/sec
Monitor (e):
SXGA Flat Panel
Operacijski sustav (e):
Slackware (2.6.27.7) (Fluxbox)
Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright © 2006 - 2009 Computer soka.

Powered by vBulletin ® Copyright © 2000 - 2009 Jelsoft Enterprises Ltd SEO by vBSEO © 2009, Crawlability, Inc