[wp-hackers] PHPMailer

wpmidia lab wpmidia at gmail.com
Sat Nov 19 23:34:08 UTC 2011


Hi, simply add the code below.... and use PHPMailer! =)

require(ABSPATH . WPINC . '/class-phpmailer.php');
require(ABSPATH . WPINC . '/class-smtp.php');


Drika =)

2011/11/19 Pasquale Puzio <pasquale.puzio at gmail.com>

> You're right,
>
> I thought that wp_mail was just a wrapper for the PHP mail() function.
>
> Thanks
>
> On Sat, Nov 19, 2011 at 8:17 PM, Bill Dennen <dennen at gmail.com> wrote:
> >> I've noticed that WordPress includes the very popular mailing library
> >> for PHP PHPMailer.
> >>
> >> How can I use that without importing class-phpmailer.php file in the
> >> main directory of the active theme?
> >
> > wp_mail is the function used to interact with it --
> >
> > http://codex.wordpress.org/Function_Reference/wp_mail
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> Dott. Pasquale Puzio
> http://www.pasqualepuzio.it
> info at pasqualepuzio.it
> 340 5026359
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
*Míriam de Paula *
*(a.k.a. Drika)*
*Twitter:* @miriamdepaula

wp*midia*
*desenvolvimento web*
http://wpmidia.com.br
twitter: @wpmidia

*WordPress Brasil no Facebook: *
http://www.facebook.com/groups/wordpress.brasil

*OpenCart Brasil no Facebook:*
http://www.facebook.com/groups/opencart.brasil/


More information about the wp-hackers mailing list