Forum Moderators: coopster

Message Too Old, No Replies

PHPMailer class

Any feedback appreciated.

         

henry0

9:22 pm on May 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is anyone using phpmailer class from SourceForge and feeding the mailer from a DB?

any problems that you know of?
any security issue?

I might give it a try but would like hearing about your experience before digging in it

Thankyou

phparion

8:56 am on May 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you do a basic google search and read the different links you will get a very clear idea of the problems which could be experienced with this phpmailer class

[google.com.pk...]

[edited by: dreamcatcher at 4:41 pm (utc) on May 19, 2007]
[edit reason] Fixed side scroll. [/edit]

henry0

11:44 am on May 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In many case I often advise to use your own, however when it looks like reinventing the wheel it could be useful to rely on something thoroughly tested, for example a class to deal with PDF that many among us have used.

A known PHP “helper” has built a tutorial in conjunction with the class developers; at first glance it sounds like a good class (although was not updated since a while) I might look at it in depth and report

What I like is its portability but as mentioned I am not (for now) really able to discuss it :)
I guess I will also search a bit among SF other similar classes.

henry0

5:22 pm on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK here we go:
Installed without a glitch
but with some additions including an extended class from Freak, actually I am following a tutorial from the Freak site founder (tutorial is mentioned at SourceForge-phpmailer page.)
By following the tutorial one may learn a great deal about using OOP (if not familiar with OOP)
And it made my very first test mail going out and received without any problem.
my next steps:
Query emails from the DB
Chunking the email by predefined bunches (anything from 20 to 50, could be up to 200 if your ISP has no specific rules about that)
Setting a CRON via SSH to send my mails by chuncks

Looks like I am on my way to built a decent mailer
.. we'll see I'll keep reporting
<edit>
Typo
</edit>

henry0

2:55 pm on May 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phparion:
I did not read most of the users' comments
however the major reason for getting a bunch of problems lies in user not undertsanding what they try to use, thus not able to fix it or modif.

For example (I did not spent too much time around it but..)
following the tutorial and trying as a next step to send HTML email causes an error "Call to undefined method etc..."
this is where a modification applies
the main class.phpmailer needs an addition
go to line: 230 and add:
// needs this addition to send HTML
function Body($htmlBody)
{
$this->Body = $htmlBody;
}
Done!

when I'll get the chance I will keep adding