PHPMailer usage - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: PHPMailer usage (/showthread.php?tid=58810) |
PHPMailer usage - El Forum - 07-23-2013 [eluser]Perkin5[/eluser] I've just downloaded and installed the PHPMailer Codeigniter wrapper from Maxsoftware but I can't find any tutorial information on it. What I want to be able to do is send an email with an attached pdf file. So after the install what I do now to send an email? Can anyone point me in the direction of some code examples? PHPMailer usage - El Forum - 07-23-2013 [eluser]Perkin5[/eluser] As an additional point, the library file name does not match the class name. File name is phpmailer_email Class name id PHPMailer_Email Can that be right? Also when I try to load the library CI throws an error: 'PHPMailer is not loaded' So confusing... PHPMailer usage - El Forum - 07-24-2013 [eluser]SmokeyJoe[/eluser] why don't you use PHPMailer the original way? Download the source files from https://github.com/Synchro/PHPMailer for example as Zip and unzip this to the root directory of your project. After that you can use PHPMailer with require("class.phpmailer.php"); $mail = new PHPMailer(); to add an attachement read the tutorial: http://phpmailer.worxware.com/index.php?pg=tutorial hope this helps PHPMailer usage - El Forum - 07-24-2013 [eluser]Perkin5[/eluser] Thanks for that - I guess your right. I just didn't pick the best option from the several available. I'll try the links you suggest and have another go. Most grateful. |