SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 395 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

This is done using the Send() method. This will
send the email using the preconfigured email options:
if ($mailer->Send() !== true)
{
// an error has occurred
// a notice will have been raised by $mailer
}
That's it, we're all done. We can now prepare and send emails! There are just a few
more things that can be useful to know.
If we want to modify the way in which the email will be sent, we can use the
useSendmail() and useSMTP() methods. These methods, when supplied with
the proper parameters, are used to set the mechanism by which the mailer will
send emails.
If you have recognized any of the methods so far, you have probably worked with
the open-source PHPMailer library. The JMail class is an extension of the PHPMailer
class. If you prefer, you can use the PHPMailer class. To do this you will first have to
import the necessary library:
jimport('phpmailer.phpmailer');
$mailer = new PHPMailer();
Be aware that when doing this the object will not be automatically loaded with the
global email settings.


Pages:
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6