|
Posted by Michael Fesser on June 3, 2008, 7:46 pm
Please log in for more thread options
.oO(Beauregard T. Shagnasty)
show/hide quoted text
>I've been playing with phpmailer. After some modification - and
>rewriting some of the mailing scripts/pages - it works after a fashion.
>Heh, 90-something KB to replace one mail() line.
You'll soon learn that PHPMailer is much more powerful and far more
convenient than the simple mail() function, where you would have to do a
lot of things by hand, especially if you want to send multi-part mails.
The only things that I don't like about PHPMailer are some of the method
names, which are misleading. For example isHtml() shouldn't set the used
mode, but just return a TRUE or FALSE. Anyway, such things are easy to
fix with a wrapper class if necessary, the rest is just working fine.
Micha
|
|
Posted by Beauregard T. Shagnasty on June 3, 2008, 8:38 pm
Please log in for more thread options
Michael Fesser wrote:
show/hide quoted text
> .oO(Beauregard T. Shagnasty)
>> I've been playing with phpmailer. After some modification - and
>> rewriting some of the mailing scripts/pages - it works after a
>> fashion. Heh, 90-something KB to replace one mail() line.
>
> You'll soon learn that PHPMailer is much more powerful and far more
> convenient than the simple mail() function, where you would have to
> do a lot of things by hand, especially if you want to send multi-part
> mails.
I'll agree it's powerful. However, it far exceeds my needs, which
consist only of sending short text messages^1 to broadcast events to our
members, to confirm registrations (about 150 ten-line messages per
summer), a little members-only "forum", and the contact page. There are
never attachments nor embedded graphics, for example.
But I'll still do some more experimenting with it.
show/hide quoted text
1. HTML is for web pages <g>
--
-bts
-Friends don't let friends drive Windows
|
|
Posted by Jerry Stuckle on June 3, 2008, 8:35 pm
Please log in for more thread options Beauregard T. Shagnasty wrote:
show/hide quoted text
> Michael Fesser wrote:
>
>> .oO(Beauregard T. Shagnasty)
>>> Jerry Stuckle wrote:
>>>> Beauregard T. Shagnasty wrote:
>>>>> My shared web host has made some sort of upgrade to ..
>>>> Get phpmailer. It handles all of that.
>>> I looked at that during my search. It appears to me it needs to be
>>> installed on the *shared* web host, and I don't see how I can do
>>> that.
>> Just upload it to some directory on your host and include the two
>> classes in your script, that's all. No further installation
>> necessary. The configuration can be set at runtime.
>
> I've been playing with phpmailer. After some modification - and
> rewriting some of the mailing scripts/pages - it works after a fashion.
> Heh, 90-something KB to replace one mail() line.
>
> Oh, and this. I just got a 'followup' from the tech guy, who says, "Your
> normal php mail() function should now be working."
>
> Duh... Last night I wasn't allowed to use it.
>
Hmmm, not sure why you had to rewrite some of the scripts. The couple
of times I've used it it's worked fine. But you must have some really
off-the-wall requirements from your host.
Interesting that now mail() works. They must have had a bunch of
complaints from their users.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
|
Posted by Beauregard T. Shagnasty on June 3, 2008, 9:55 pm
Please log in for more thread options Jerry Stuckle wrote:
show/hide quoted text
> Interesting that now mail() works. They must have had a bunch of
> complaints from their users.
It worked for one run of a half-dozen individual messages to rally
registrants.
Then it failed on a broadcast of coming events to the club members. Club
email address in TO: and a hundred members in BCC:. That script is
unmodified for years.
I reopened the trouble ticket. :-(
--
-bts
-Friends don't let friends drive Windows
|
|
Posted by Jerry Stuckle on June 3, 2008, 11:39 am
Please log in for more thread options Beauregard T. Shagnasty wrote:
show/hide quoted text
> Jerry Stuckle wrote:
>
>> Beauregard T. Shagnasty wrote:
>>> My shared web host has made some sort of upgrade to ..
>> Get phpmailer. It handles all of that.
>
> I looked at that during my search. It appears to me it needs to be
> installed on the *shared* web host, and I don't see how I can do that.
>
> (The search also turned up some results that said
> http://www.swiftmailer.org/
> is even better, but the same restrictions apply.)
>
> I can't do this on my home PC as there is an online associated members'
> database maintained by the membership chairman of the year, who also
> needs to use some of the mailing functions. Club officers also have some
> access to certain functions.
>
Nope, you can put it on your website then include the classes. It works
fine with shared hosts. If you have access to the directory below your
webroot, I recommend placing it there (where I place all include files).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
| Similar Threads | Posted | | Mail via SMTP | June 12, 2007, 2:16 pm |
| mail() on linux to use other smtp server | February 9, 2005, 6:03 pm |
| Non-local SMTP mail function. | October 4, 2006, 5:08 pm |
| Is it possible to send mail through authenticated SMTP? | May 27, 2008, 11:54 am |
| SMTP mail problem (but works OK in Outlook) | December 17, 2004, 1:43 am |
| mail - differentiate between smtp envelope to and header to? | June 29, 2005, 9:32 am |
| [function mail() Windows XP]SMTP localhost | April 4, 2006, 3:58 am |
| test mail() on development machine w/o smtp server | June 17, 2007, 11:05 am |
| Warning: mail(): SMTP server response: 505 5.7.3 Must issue a STARTTLS command first | February 6, 2006, 6:56 am |
| mail() function error: (SMTP server response: 501 5.5.4 Invalid Address) | May 11, 2008, 12:53 pm |
|
>rewriting some of the mailing scripts/pages - it works after a fashion.
>Heh, 90-something KB to replace one mail() line.