Welcome Guest, Not a member yet? Register   Sign In
PHPMailer usage
#1

[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?
#2

[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...
#3

[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
#4

[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.




Theme © iAndrew 2016 - Forum software by © MyBB