Click here to get back home

Accessing SMTP direct instead of using mail()

 HomeNewsGroups | Search

comp.lang.php - PHP programming language discussions 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Accessing SMTP direct instead of using mail() Beauregard T. Shagnasty 06-03-2008
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

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

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

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

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

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

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 ThreadsPosted
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

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy