Prev | Current Page 579 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


Parameters subject Email subject line
useSendmail( sendmail : string=null ) : boolean
If sendmail is specified, sets the object to use the sendmail path. If sendmail is not
specified, sets the object to use the PHP mail() function.
Parameters [sendmail] Path to sendmail
Returns true if sendmail is enabled
useSMTP( auth : boolean=null, host : string=null, user : string=null,
pass : string=null ) : boolean
If all parameters are specified, sets the object to use SMTP. If any of the parameters are not
specified, sets the object to use the PHP mail() function.
Parameters [auth] Use SMTP authorization
[host] SMTP host
[user] Username
[pass] Password
Returns true if SMTP is enabled
Appendix
[ 427 ]
JMailHelper
static
Performs mail functions that are not specific to an individual JMail object.
Methods
static cleanAddress( address : string ) : mixed
Determines if an email address is clean. An unclean email address may include spaces,
semicolons, and commas.
Parameters address Address to clean
Returns Email address or false if the address is deemed to be unclean
static cleanBody( body : string ) : string
Cleans a multi-line string for use in an email body.


Pages:
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591
katalog stron Tango Olsztyn gustowne meble katowice wierszyki gry strategie