Discussion:
Sending PHP mail with Authentication
dealTek
2013-09-25 20:11:51 UTC
Permalink
Hi All,

Semi newbie email question...

I have used the - mail() — Send mail php function to send email from a site.

now it seems the server is blocking this for safety because I should be using authentication....

Q: mail() does not have authentication - correct?

Q: So I read from the link below that maybe I should use - PEAR Mail package .... is this a good choice to send mail with authentication?

...any suggestions for basic sending email with authentication (setup info and links also) would be welcome


http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

--
Thanks,
Dave - DealTek
***@gmail.com
[db-3]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Aziz Saleh
2013-09-25 21:12:45 UTC
Permalink
Usually if I am using a framework I would use the SMTP library associated
with it. If it doesn't have one, I use phpmailer, fast and easy to setup:

http://phpmailer.worxware.com/index.php?pg=examplebsmtp

Aziz
Post by dealTek
Hi All,
Semi newbie email question...
I have used the - mail() — Send mail php function to send email from a
site.
now it seems the server is blocking this for safety because I should be
using authentication....
Q: mail() does not have authentication - correct?
Q: So I read from the link below that maybe I should use - PEAR Mail
package .... is this a good choice to send mail with authentication?
...any suggestions for basic sending email with authentication (setup info
and links also) would be welcome
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
--
Thanks,
Dave - DealTek
[db-3]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Camilo Sperberg
2013-09-25 21:48:11 UTC
Permalink
Another vote for PHPMailer, I have it working several years already
(authenticating against a Zimbra and Outlook SMTP server) without problems.

Greetings.
Post by Aziz Saleh
Usually if I am using a framework I would use the SMTP library associated
http://phpmailer.worxware.com/index.php?pg=examplebsmtp
Aziz
Post by dealTek
Hi All,
Semi newbie email question...
I have used the - mail() — Send mail php function to send email from a
site.
now it seems the server is blocking this for safety because I should be
using authentication....
Q: mail() does not have authentication - correct?
Q: So I read from the link below that maybe I should use - PEAR Mail
package .... is this a good choice to send mail with authentication?
...any suggestions for basic sending email with authentication (setup
info
Post by dealTek
and links also) would be welcome
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
Post by dealTek
--
Thanks,
Dave - DealTek
[db-3]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Camilo Sperberg
2013-09-25 21:49:59 UTC
Permalink
Post by Camilo Sperberg
Another vote for PHPMailer, I have it working several years already
(authenticating against a Zimbra and Outlook SMTP server) without problems.
Greetings.
Post by Aziz Saleh
Usually if I am using a framework I would use the SMTP library associated
http://phpmailer.worxware.com/index.php?pg=examplebsmtp
Aziz
Post by dealTek
Hi All,
Semi newbie email question...
I have used the - mail() — Send mail php function to send email from a site.
now it seems the server is blocking this for safety because I should be
using authentication....
Q: mail() does not have authentication - correct?
Q: So I read from the link below that maybe I should use - PEAR Mail
package .... is this a good choice to send mail with authentication?
...any suggestions for basic sending email with authentication (setup info
and links also) would be welcome
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
--
Thanks,
Dave - DealTek
[db-3]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Another vote for PHPMailer, I have it working several years already
(authenticating against a Zimbra and Outlook SMTP server) without
problems.

Greetings.

PD: Sorry for previous mail, it has been some time that I haven't used
the webmail interface of gmail :)
--
Mailed by:
UnReAl4U - unreal4u
ICQ #: 54472056
www1: http://www.chw.net/
www2: http://unreal4u.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maciek Sokolewicz
2013-09-26 22:06:30 UTC
Permalink
Post by dealTek
Hi All,
Semi newbie email question...
I have used the - mail() — Send mail php function to send email from a site.
now it seems the server is blocking this for safety because I should be using authentication....
Q: mail() does not have authentication - correct?
Q: So I read from the link below that maybe I should use - PEAR Mail package .... is this a good choice to send mail with authentication?
...any suggestions for basic sending email with authentication (setup info and links also) would be welcome
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
--
Thanks,
Dave - DealTek
[db-3]
I'm sure I'm going to annoy people with this, but I would advise to
never use PEAR. It's the biggest load of extremely badly coded PHP
you'll ever find. Creating an SMTP client (with the purpose of just
sending mail) is very easy to do yourself (and also a good challenge if
you're not yet very skilled with PHP). Alternatively, you can indeed use
a package such as PHPMailer; it's not perfect, and quite bloated for
what you want probably, but it works rather well.

- Tul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Paul M Foster
2013-09-29 21:29:17 UTC
Permalink
On Fri, Sep 27, 2013 at 12:06:30AM +0200, Maciek Sokolewicz wrote:

[snip]
Post by Maciek Sokolewicz
I'm sure I'm going to annoy people with this, but I would advise to
never use PEAR. It's the biggest load of extremely badly coded PHP
you'll ever find. Creating an SMTP client (with the purpose of just
sending mail) is very easy to do yourself (and also a good challenge
if you're not yet very skilled with PHP). Alternatively, you can
indeed use a package such as PHPMailer; it's not perfect, and quite
bloated for what you want probably, but it works rather well.
I have to agree on the code bloat. Unless your requirements are
extraordinary (which the OP's are), the native PHP mail() function is
generally quite adequate.

Never thought about creating a PHP email client. Interesting idea...

Paul
--
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...