[ Index ] |
|
Code source de CMS made simple 1.0.5 |
1 <?php 2 #------------------------------------------------------------------------- 3 # Module: CMSMailer - a simple wrapper around phpmailer 4 # Version: 1.73.10, Robert Campbell <rob@techcom.dyndns.org> 5 # 6 #------------------------------------------------------------------------- 7 # CMS - CMS Made Simple is (c) 2005 by Ted Kulp (wishy@cmsmadesimple.org) 8 # This project's homepage is: http://www.cmsmadesimple.org 9 # 10 #------------------------------------------------------------------------- 11 # 12 # This program is free software; you can redistribute it and/or modify 13 # it under the terms of the GNU General Public License as published by 14 # the Free Software Foundation; either version 2 of the License, or 15 # (at your option) any later version. 16 # 17 # This program is distributed in the hope that it will be useful, 18 # but WITHOUT ANY WARRANTY; without even the implied warranty of 19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 # GNU General Public License for more details. 21 # You should have received a copy of the GNU General Public License 22 # along with this program; if not, write to the Free Software 23 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 # Or read it online: http://www.gnu.org/licenses/licenses.html#GPL 25 # 26 #------------------------------------------------------------------------- 27 28 29 #------------------------------------------------------------------------- 30 /* Your initial Class declaration. This file's name must 31 be "[class's name].module.php", or, in this case, 32 Skeleton.module.php 33 */ 34 class CMSMailer extends CMSModule 35 { 36 var $the_mailer; 37 38 /*--------------------------------------------------------- 39 CMSMailer() 40 constructor 41 --------------------------------------------------------- 42 function CMSMailer() 43 { 44 // call the parent class' constructor 45 parent::CMSModule(); 46 47 // now do our stuff 48 $this->the_mailer = NULL; 49 } 50 51 52 53 /*--------------------------------------------------------- 54 GetName() 55 ---------------------------------------------------------*/ 56 function GetName() 57 { 58 return 'CMSMailer'; 59 } 60 61 62 /*--------------------------------------------------------- 63 GetFriendlyName() 64 ---------------------------------------------------------*/ 65 function GetFriendlyName() 66 { 67 return $this->Lang('friendlyname'); 68 } 69 70 71 /*--------------------------------------------------------- 72 GetVersion() 73 ---------------------------------------------------------*/ 74 function GetVersion() 75 { 76 return '1.73.10'; 77 } 78 79 80 /*--------------------------------------------------------- 81 GetHelp() 82 ---------------------------------------------------------*/ 83 function GetHelp() 84 { 85 return $this->Lang('help'); 86 } 87 88 89 /*--------------------------------------------------------- 90 GetAuthor() 91 ---------------------------------------------------------*/ 92 function GetAuthor() 93 { 94 return 'Calguy1000'; 95 } 96 97 98 /*--------------------------------------------------------- 99 GetAuthorEmail() 100 ---------------------------------------------------------*/ 101 function GetAuthorEmail() 102 { 103 return 'calguy1000@hotmail.com'; 104 } 105 106 107 /*--------------------------------------------------------- 108 GetChangeLog() 109 ---------------------------------------------------------*/ 110 function GetChangeLog() 111 { 112 return $this->Lang('changelog'); 113 } 114 115 116 /*--------------------------------------------------------- 117 IsPluginModule() 118 ---------------------------------------------------------*/ 119 function IsPluginModule() 120 { 121 return false; 122 } 123 124 125 /*--------------------------------------------------------- 126 HasAdmin() 127 This function returns a boolean value, depending on 128 whether your module adds anything to the Admin area of 129 the site. For the rest of these comments, I'll be calling 130 the admin part of your module the "Admin Panel" for 131 want of a better term. 132 ---------------------------------------------------------*/ 133 function HasAdmin() 134 { 135 return true; 136 } 137 138 /*--------------------------------------------------------- 139 GetAdminSection() 140 ---------------------------------------------------------*/ 141 function GetAdminSection() 142 { 143 return 'extensions'; 144 } 145 146 147 /*--------------------------------------------------------- 148 GetAdminDescription() 149 ---------------------------------------------------------*/ 150 function GetAdminDescription() 151 { 152 return $this->Lang('moddescription'); 153 } 154 155 156 /*--------------------------------------------------------- 157 VisibleToAdminUser() 158 ---------------------------------------------------------*/ 159 function VisibleToAdminUser() 160 { 161 return $this->CheckPermission('Modify Site Preferences' ); 162 } 163 164 /*--------------------------------------------------------- 165 GetDependencies() 166 ---------------------------------------------------------*/ 167 function GetDependencies() 168 { 169 return array(); 170 } 171 172 173 /*--------------------------------------------------------- 174 Install() 175 ---------------------------------------------------------*/ 176 function Install() 177 { 178 $this->SetPreference('mailer', 'smtp'); 179 $this->SetPreference('host', 'localhost'); 180 $this->SetPreference('port', 25 ); 181 $this->SetPreference('from', 'root@localhost'); 182 $this->SetPreference('fromuser', 'Root'); 183 $this->SetPreference('sendmail', '/usr/sbin/sendmail'); 184 $this->SetPreference('timeout', 1000); 185 $this->SetPreference('smtpauth',0); 186 $this->SetPreference('username',''); 187 $this->SetPreference('password',''); 188 } 189 190 191 /*--------------------------------------------------------- 192 InstallPostMessage() 193 ---------------------------------------------------------*/ 194 function InstallPostMessage() 195 { 196 return $this->Lang('postinstall'); 197 } 198 199 200 /*--------------------------------------------------------- 201 UninstallPostMessage() 202 ---------------------------------------------------------*/ 203 function UninstallPostMessage() 204 { 205 return $this->Lang('postuninstall'); 206 } 207 208 209 /*--------------------------------------------------------- 210 Upgrade() 211 ---------------------------------------------------------*/ 212 function Upgrade($oldversion, $newversion) 213 { 214 // nothing here 215 } 216 217 218 /*--------------------------------------------------------- 219 Uninstall() 220 ---------------------------------------------------------*/ 221 function Uninstall() 222 { 223 $this->RemovePreference('mailer'); 224 $this->RemovePreference('host'); 225 $this->RemovePreference('port'); 226 $this->RemovePreference('from'); 227 $this->RemovePreference('fromuser'); 228 $this->RemovePreference('sendmail'); 229 $this->RemovePreference('timeout'); 230 $this->RemovePreference('smtpauth',0); 231 $this->RemovePreference('username'); 232 $this->RemovePreference('password'); 233 } 234 235 236 /*--------------------------------------------------------- 237 DoAction($action, $id, $params, $return_id) 238 ---------------------------------------------------------*/ 239 function DoAction($action, $id, $params, $returnid=-1) 240 { 241 switch ($action) 242 { 243 case 'default': 244 { 245 break; 246 } 247 case 'defaultadmin': 248 { 249 $this->_DisplayAdminPanel( $id, $params, $returnid ); 250 break; 251 } 252 case 'setadminprefs': 253 { 254 $this->_SetAdminPrefs( $id, $params, $returnid ); 255 break; 256 } 257 } 258 } 259 260 261 /*--------------------------------------------------------- 262 _DisplayAdminPanel($id, $params, $return_id ) 263 NOT PART OF THE MODULE API 264 ---------------------------------------------------------*/ 265 function _DisplayAdminPanel($id, &$params, $returnid ) 266 { 267 $this->smarty->assign('endform', 268 $this->CreateFormEnd()); 269 $this->smarty->assign('startform', 270 $this->CreateFormStart( $id, 'setadminprefs', $returnid )); 271 272 $maileritems = array(); 273 $maileritems['mail'] = 'mail'; 274 $maileritems['sendmail'] = 'sendmail'; 275 $maileritems['smtp'] = 'smtp'; 276 $this->smarty->assign('prompt_mailer', $this->Lang('mailer')); 277 $this->smarty->assign('info_mailer', $this->Lang('info_mailer')); 278 $this->smarty->assign('input_mailer', 279 $this->CreateInputDropdown( $id, 'input_mailer', 280 $maileritems, -1, 281 $this->GetPreference('mailer',-1))); 282 283 $this->smarty->assign('prompt_host', $this->Lang('host')); 284 $this->smarty->assign('info_host', $this->Lang('info_host')); 285 $this->smarty->assign('input_host', 286 $this->CreateInputText( $id, 'input_host', 287 $this->GetPreference('host'), 288 50, 80 )); 289 290 $this->smarty->assign('prompt_port', $this->Lang('port')); 291 $this->smarty->assign('info_port', $this->Lang('info_port')); 292 $this->smarty->assign('input_port', 293 $this->CreateInputText( $id, 'input_port', 294 $this->GetPreference('port'), 295 6, 8)); 296 297 $this->smarty->assign('prompt_from', $this->Lang('from')); 298 $this->smarty->assign('info_from', $this->Lang('info_from')); 299 $this->smarty->assign('input_from', 300 $this->CreateInputText( $id, 'input_from', 301 $this->GetPreference('from'), 302 80, 80)); 303 304 $this->smarty->assign('prompt_fromuser',$this->Lang('fromuser')); 305 $this->smarty->assign('info_fromuser', $this->Lang('info_fromuser')); 306 $this->smarty->assign('input_fromuser', 307 $this->CreateInputText( $id, 'input_fromuser', 308 $this->GetPreference('fromuser'), 309 50, 80)); 310 311 $this->smarty->assign('prompt_sendmail',$this->Lang('sendmail')); 312 $this->smarty->assign('info_sendmail', $this->Lang('info_sendmail')); 313 $this->smarty->assign('input_sendmail', 314 $this->CreateInputText( $id, 'input_sendmail', 315 $this->GetPreference('sendmail'), 316 50, 255)); 317 318 $this->smarty->assign('prompt_timeout', $this->Lang('timeout')); 319 $this->smarty->assign('info_timeout', $this->Lang('info_timeout')); 320 $this->smarty->assign('input_timeout', 321 $this->CreateInputText( $id, 'input_timeout', 322 $this->GetPreference('timeout'), 323 5, 5)); 324 325 $this->smarty->assign('prompt_smtpauth', $this->Lang('smtpauth')); 326 $this->smarty->assign('info_smtpauth', $this->Lang('info_smtpauth')); 327 $this->smarty->assign('input_smtpauth', 328 $this->CreateInputCheckbox($id, 'input_smtpauth',1, 329 $this->GetPreference('smtpauth'))); 330 331 $this->smarty->assign('prompt_username', $this->Lang('username')); 332 $this->smarty->assign('info_username', $this->Lang('info_username')); 333 $this->smarty->assign('input_username', 334 $this->CreateInputText( $id, 'input_username', 335 $this->GetPreference('username'), 336 30, 30)); 337 338 $this->smarty->assign('prompt_password', $this->Lang('password')); 339 $this->smarty->assign('info_password', $this->Lang('info_password')); 340 $this->smarty->assign('input_password', 341 $this->CreateInputPassword( $id, 'input_password', 342 $this->GetPreference('password'))); 343 344 $this->smarty->assign('prompt_testaddress', 345 $this->Lang('prompt_testaddress')); 346 $this->smarty->assign('input_testaddress', 347 $this->CreateInputText( $id, 'input_testaddress', 348 '', 349 40, 60)); 350 $this->smarty->assign('sendtest', 351 $this->CreateInputSubmit( $id, 'sendtest', 352 $this->Lang('sendtest'), '', '', 353 $this->Lang('sendtestmailconfirm'))); 354 $this->smarty->assign('submit', 355 $this->CreateInputSubmit( $id, 'submit', 356 $this->Lang('submit'), '', '', 357 $this->Lang('settingsconfirm'))); 358 $this->smarty->assign('cancel', 359 $this->CreateInputSubmit( $id, 'cancel', 360 $this->Lang('cancel'))); 361 echo $this->ProcessTemplate('prefs.tpl'); 362 } 363 364 365 /*--------------------------------------------------------- 366 DisplayErrorPage($id, $params, $return_id, $message) 367 NOT PART OF THE MODULE API 368 ---------------------------------------------------------*/ 369 function _DisplayErrorPage($id, &$params, $returnid, $message='') 370 { 371 $this->smarty->assign('title_error', $this->Lang('error')); 372 if ($message != '') 373 { 374 $this->smarty->assign('message', $message); 375 } 376 377 // Display the populated template 378 echo $this->ProcessTemplate('error.tpl'); 379 } 380 381 ////////////////////////////////////////////////////////////////////// 382 //// BEGIN API SECTION 383 ////////////////////////////////////////////////////////////////////// 384 385 /*--------------------------------------------------------- 386 reset() 387 NOT PART OF THE MODULE API 388 ---------------------------------------------------------*/ 389 function reset() 390 { 391 $this->_load(); 392 $this->the_mailer->Timeout = $this->GetPreference('timeout'); 393 $this->the_mailer->Sendmail = $this->GetPreference('sendmail'); 394 $this->the_mailer->Port = $this->GetPreference('port'); 395 $this->the_mailer->Mailer = $this->GetPreference('mailer'); 396 $this->the_mailer->FromName = $this->GetPreference('fromuser'); 397 $this->the_mailer->From = $this->GetPreference('from'); 398 $this->the_mailer->Host = $this->GetPreference('host'); 399 $this->the_mailer->SMTPAuth = $this->GetPreference('smtpauth'); 400 $this->the_mailer->Username = $this->GetPreference('username'); 401 $this->the_mailer->Password = $this->GetPreference('password'); 402 $this->the_mailer->ClearAddresses(); 403 $this->the_mailer->ClearAttachments(); 404 $this->the_mailer->ClearCustomHeaders(); 405 $this->the_mailer->ClearBCCs(); 406 $this->the_mailer->ClearCCs(); 407 $this->the_mailer->ClearReplyTos(); 408 } 409 410 411 /*--------------------------------------------------------- 412 _SetAdminPrefs($id, $params, $return_id ) 413 NOT PART OF THE MODULE API 414 ---------------------------------------------------------*/ 415 function _SetAdminPrefs($id, &$params, $returnid ) 416 { 417 if( isset( $params['input_mailer'] ) ) 418 { 419 $this->SetPreference('mailer',$params['input_mailer']); 420 } 421 422 if( isset( $params['input_host'] ) ) 423 { 424 $this->SetPreference('host',$params['input_host']); 425 } 426 427 if( isset( $params['input_port'] ) ) 428 { 429 $this->SetPreference('port',$params['input_port']); 430 } 431 432 if( isset( $params['input_from'] ) ) 433 { 434 $this->SetPreference('from',$params['input_from']); 435 } 436 437 if( isset( $params['input_fromuser'] ) ) 438 { 439 $this->SetPreference('fromuser',$params['input_fromuser']); 440 } 441 442 if( isset( $params['input_sendmail'] ) ) 443 { 444 $this->SetPreference('sendmail',$params['input_sendmail']); 445 } 446 447 if( isset( $params['input_timeout'] ) ) 448 { 449 $this->SetPreference('timeout',$params['input_timeout']); 450 } 451 452 if( isset( $params['input_smtpauth'] ) ) 453 { 454 $this->SetPreference('smtpauth',$params['input_smtpauth']); 455 } 456 457 if( isset( $params['input_username'] ) ) 458 { 459 $this->SetPreference('username',$params['input_username']); 460 } 461 462 if( isset( $params['input_password'] ) ) 463 { 464 $this->SetPreference('password',$params['input_password']); 465 } 466 467 $this->reset(); 468 469 if( isset( $params['sendtest'] ) ) 470 { 471 // here we're gonna send a nice, hard coded test message 472 if( !isset( $params['input_testaddress'] ) || trim($params['input_testaddress']) == '' ) 473 { 474 $this->_DisplayErrorPage( $id, $params, $returnid, 475 $this->Lang('error_notestaddress')); 476 return; 477 } 478 else 479 { 480 $this->AddAddress( $params['input_testaddress'] ); 481 $this->SetBody( $this->Lang('testbody')); 482 $this->SetSubject( $this->Lang('testsubject')); 483 $this->Send(); 484 $this->reset(); // yes, another reset 485 } 486 } 487 488 $this->Redirect( $id, 'defaultadmin', $returnid, $params ); 489 } 490 491 //////////////////////////////////////////////////////////// 492 // UTILITIES // 493 //////////////////////////////////////////////////////////// 494 function _load() 495 { 496 if( $this->the_mailer == NULL ) 497 { 498 require_once(dirname(__FILE__).'/phpmailer/class.phpmailer.php' ); 499 $this->the_mailer = new PHPMailer; 500 $this->the_mailer->PluginDir=dirname(__FILE__).'/phpmailer/'; 501 $this->reset(); 502 } 503 } 504 505 //////////////////////////////////////////////////////////// 506 // API FUNCTIONS // 507 //////////////////////////////////////////////////////////// 508 509 function GetAltBody() 510 { 511 $this->_load(); 512 return $this->the_mailer->AltBody; 513 } 514 515 function SetAltBody( $txt ) 516 { 517 $this->_load(); 518 $this->the_mailer->AltBody = $txt; 519 } 520 521 function GetBody() 522 { 523 $this->_load(); 524 return $this->the_mailer->Body; 525 } 526 527 function SetBody( $txt ) 528 { 529 $this->_load(); 530 $this->the_mailer->Body = $txt; 531 } 532 533 function GetCharSet() 534 { 535 $this->_load(); 536 return $this->the_mailer->CharSet; 537 } 538 539 function SetCharSet( $txt ) 540 { 541 $this->_load(); 542 $this->the_mailer->CharSet = $txt; 543 } 544 545 function GetConfirmReadingTo() 546 { 547 $this->_load(); 548 return $this->the_mailer->ConfirmReadingTo; 549 } 550 551 function SetConfirmReadingTo( $txt ) 552 { 553 $this->_load(); 554 $this->the_mailer->ConfirmReadingTo = $txt; 555 } 556 557 function GetContentType() 558 { 559 $this->_load(); 560 return $this->the_mailer->ContentType; 561 } 562 563 function SetContentType( $txt ) 564 { 565 $this->_load(); 566 $this->the_mailer->ContentType = $txt; 567 } 568 569 function GetEncoding() 570 { 571 $this->_load(); 572 return $this->the_mailer->Encoding; 573 } 574 575 function SetEncoding( $txt ) 576 { 577 $this->_load(); 578 $this->the_mailer->Encoding = $txt; 579 } 580 581 function GetErrorInfo() 582 { 583 $this->_load(); 584 return $this->the_mailer->ErrorInfo; 585 } 586 587 function GetFrom() 588 { 589 $this->_load(); 590 return $this->the_mailer->From; 591 } 592 593 function SetFrom( $txt ) 594 { 595 $this->_load(); 596 $this->the_mailer->From = $txt; 597 } 598 599 function GetFromName() 600 { 601 $this->_load(); 602 return $this->the_mailer->FromName; 603 } 604 605 function SetFromName( $txt ) 606 { 607 $this->_load(); 608 $this->the_mailer->FromName = $txt; 609 } 610 611 function GetHelo() 612 { 613 $this->_load(); 614 return $this->the_mailer->Helo; 615 } 616 617 function SetHelo( $txt ) 618 { 619 $this->_load(); 620 $this->the_mailer->Helo = $txt; 621 } 622 623 function GetHost() 624 { 625 $this->_load(); 626 return $this->the_mailer->Host; 627 } 628 629 function SetHost( $txt ) 630 { 631 $this->_load(); 632 $this->the_mailer->Host = $txt; 633 } 634 635 function GetHostname() 636 { 637 $this->_load(); 638 return $this->the_mailer->Hostname; 639 } 640 641 function SetHostname( $txt ) 642 { 643 $this->_load(); 644 $this->the_mailer->Hostname = $txt; 645 } 646 647 function GetMailer() 648 { 649 $this->_load(); 650 return $this->the_mailer->Mailer; 651 } 652 653 function SetMailer( $txt ) 654 { 655 $this->_load(); 656 $this->the_mailer->Mailer = $txt; 657 } 658 659 function GetPassword() 660 { 661 $this->_load(); 662 return $this->the_mailer->Password; 663 } 664 665 function SetPassword( $txt ) 666 { 667 $this->_load(); 668 $this->the_mailer->Password = $txt; 669 } 670 671 function GetPort() 672 { 673 $this->_load(); 674 return $this->the_mailer->Port; 675 } 676 677 function SetPort( $txt ) 678 { 679 $this->_load(); 680 $this->the_mailer->Port = $txt; 681 } 682 683 function GetPriority() 684 { 685 $this->_load(); 686 return $this->the_mailer->Priority; 687 } 688 689 function SetPriority( $txt ) 690 { 691 $this->_load(); 692 $this->the_mailer->Priority = $txt; 693 } 694 695 function GetSender() 696 { 697 $this->_load(); 698 return $this->the_mailer->Sender; 699 } 700 701 function SetSender( $txt ) 702 { 703 $this->_load(); 704 $this->the_mailer->Sender = $txt; 705 } 706 707 function GetSendmail() 708 { 709 $this->_load(); 710 return $this->the_mailer->Sendmail; 711 } 712 713 function SetSendmail( $txt ) 714 { 715 $this->_load(); 716 $this->the_mailer->Sendmail = $txt; 717 } 718 719 function GetSMTPAuth() 720 { 721 $this->_load(); 722 return $this->the_mailer->SMTPAuth; 723 } 724 725 function SetSMTPAuth( $txt ) 726 { 727 $this->_load(); 728 $this->the_mailer->SMTPAuth = $txt; 729 } 730 731 function GetSMTPDebug() 732 { 733 $this->_load(); 734 return $this->the_mailer->SMTPDebug; 735 } 736 737 function SetSMTPDebug( $txt ) 738 { 739 $this->_load(); 740 $this->the_mailer->SMTPDebug = $txt; 741 } 742 743 function GetSMTPKeepAlive() 744 { 745 $this->_load(); 746 return $this->the_mailer->SMTPKeepAlive; 747 } 748 749 function SetSMTPKeepAlive( $txt ) 750 { 751 $this->_load(); 752 $this->the_mailer->SMTPKeepAlive = $txt; 753 } 754 755 function GetSubject() 756 { 757 $this->_load(); 758 return $this->the_mailer->Subject; 759 } 760 761 function SetSubject( $txt ) 762 { 763 $this->_load(); 764 $this->the_mailer->Subject = $txt; 765 } 766 767 function GetTimeout() 768 { 769 $this->_load(); 770 return $this->the_mailer->Timeout; 771 } 772 773 function SetTimeout( $txt ) 774 { 775 $this->_load(); 776 $this->the_mailer->Timeout = $txt; 777 } 778 779 function GetUsername() 780 { 781 $this->_load(); 782 return $this->the_mailer->Username; 783 } 784 785 function SetUsername( $txt ) 786 { 787 $this->_load(); 788 $this->the_mailer->Username = $txt; 789 } 790 791 function GetWordWrap() 792 { 793 $this->_load(); 794 return $this->the_mailer->WordWrap; 795 } 796 797 function SetWordWrap( $txt ) 798 { 799 $this->_load(); 800 $this->the_mailer->WordWrap = $txt; 801 } 802 803 function AddAddress( $address, $name = '' ) 804 { 805 $this->_load(); 806 return $this->the_mailer->AddAddress( $address, $name ); 807 } 808 809 function AddAttachment( $path, $name = '', $encoding = 'base64', 810 $type = 'application/octet-stream' ) 811 { 812 $this->_load(); 813 return $this->the_mailer->AddAttachment( $path, $name, $encoding, $type ); 814 } 815 816 function AddBCC( $addr, $name = '' ) 817 { 818 $this->_load(); 819 $this->the_mailer->AddBCC( $addr, $name ); 820 } 821 822 function AddCC( $addr, $name = '' ) 823 { 824 $this->_load(); 825 $this->the_mailer->AddCC( $addr, $name ); 826 } 827 828 function AddCustomHeader( $txt ) 829 { 830 $this->_load(); 831 $this->the_mailer->AddCustomHeader( $txt ); 832 } 833 834 function AddEmbeddedImage( $path, $cid, $name = '', $encoding = 'base64', 835 $type = 'application/octet-stream' ) 836 { 837 $this->_load(); 838 return $this->the_mailer->AddEmbeddedImage( $path, $cid, 839 $name, $encoding, $type ); 840 } 841 842 function AddReplyTo( $addr, $name = '' ) 843 { 844 $this->_load(); 845 $this->the_mailer->AddReplyTo( $addr, $name ); 846 } 847 848 849 function AddStringAttachment( $string, $filename, $encoding = 'base64', 850 $type = 'application/octet-stream' ) 851 { 852 $this->_load(); 853 $this->the_mailer->AddStringAttachment( $string, $filename, $encoding, $type ); 854 } 855 856 function ClearAddresses() 857 { 858 $this->_load(); 859 $this->the_mailer->ClearAddresses(); 860 } 861 862 function ClearAllRecipients() 863 { 864 $this->_load(); 865 $this->the_mailer->ClearAllRecipients(); 866 } 867 868 function ClearAttachments() 869 { 870 $this->_load(); 871 $this->the_mailer->ClearAttachments(); 872 } 873 874 function ClearBCCs() 875 { 876 $this->_load(); 877 $this->the_mailer->ClearBCCs(); 878 } 879 880 function ClearCCs() 881 { 882 $this->_load(); 883 $this->the_mailer->ClearCCs(); 884 } 885 886 function ClearCustomHeaders() 887 { 888 $this->_load(); 889 $this->the_mailer->ClearCustomHeaders(); 890 } 891 892 function ClearReplyTos() 893 { 894 $this->_load(); 895 $this->the_mailer->ClearReplyTos(); 896 } 897 898 function IsError() 899 { 900 $this->_load(); 901 return $this->the_mailer->IsError(); 902 } 903 904 function IsHTML($var = true) 905 { 906 $this->_load(); 907 return $this->the_mailer->IsHTML($var); 908 } 909 910 function IsMail() 911 { 912 $this->_load(); 913 return $this->the_mailer->IsMail(); 914 } 915 916 function IsQmail() 917 { 918 $this->_load(); 919 return $this->the_mailer->IsQmail(); 920 } 921 922 function IsSendmail() 923 { 924 $this->_load(); 925 return $this->the_mailer->IsSendmail(); 926 } 927 928 function IsSMTP() 929 { 930 $this->_load(); 931 return $this->the_mailer->IsSMTP(); 932 } 933 934 function Send() 935 { 936 $this->_load(); 937 return $this->the_mailer->Send(); 938 } 939 940 function SetLanguage( $lang_type, $lang_path = '' ) 941 { 942 $this->_load(); 943 return $this->the_mailer->SetLanguage( $lang_type, $lang_path ); 944 } 945 946 function SmtpClose() 947 { 948 $this->_load(); 949 return $this->the_mailer->SmtpClose(); 950 } 951 952 } // class CMSMailer 953 954 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |