Re: [CODE4LIB] php and email
Yes, sendgrid-php api finally does the job for me. There are quite many steps to go through to make it work. If anybody is in the same situation like me, contact me off-line; I can help to walk you through. Thanks for all the help received. - Kelly -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Kun Lin Sent: Friday, February 26, 2016 4:53 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email Hi Kaile If you wasn't able to install Postfix on your server, try a third-party mail delivery service. For example: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mandrill.com_&d=CwIBaQ&c=URKFmO0h1-PpCttSQ3v_bEhalPi_sNmh-_LG0Bso5YA&r=UmjVf-1YCnSJ8ymaevl-35Anh5CG-YF09ZrBGH_xV3U&m=nVNcB0ugd-0DHxOUN2sjEprE9MOoBmPiJL0vZFJW3Fo&s=YeWZ78MoyK1hJHczQzWYMilS_20ekrNa4zWk_OteAMI&e= or https://urldefense.proofpoint.com/v2/url?u=https-3A__sendgrid.com_&d=CwIBaQ&c=URKFmO0h1-PpCttSQ3v_bEhalPi_sNmh-_LG0Bso5YA&r=UmjVf-1YCnSJ8ymaevl-35Anh5CG-YF09ZrBGH_xV3U&m=nVNcB0ugd-0DHxOUN2sjEprE9MOoBmPiJL0vZFJW3Fo&s=bDE4ZUTNUXnnqY3p74ZY9pmI_894o8Yz0KM6eDKApA8&e= They have an API for you to send emails. Kun Lin Whitman College -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Kaile Zhu Sent: Friday, February 26, 2016 2:23 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email I tried. It seems without a mail server, it won't work. - Kelly -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Erik Sandall Sent: Friday, February 26, 2016 4:20 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email Hi Kelly, PHP has a mail function that you can incorporate into your scripts. The manual page is here: https://urldefense.proofpoint.com/v2/url?u=https-3A__secure.php.net_manual _en_function.mail.php&d=CwIC-g&c=URKFmO0h1-PpCttSQ3v_bEhalPi_sNmh-_LG0Bso5 YA&r=UmjVf-1YCnSJ8ymaevl-35Anh5CG-YF09ZrBGH_xV3U&m=Y2klCC-6Dhar7sB9-IRgKrA mwCBSC5FuSpCTARGME6w&s=wFuddn5VUWc783vIPFXYAN81v0JOn4JHNZZbdlbtwLI&e= /e -- Erik Sandall, MLIS Electronic Services Librarian & Webmaster Mechanics' Institute 57 Post Street San Francisco, CA 94104 415-393-0111 esand...@milibrary.org On 2/26/2016 1:50 PM, Kaile Zhu wrote: > Hi, > > Our library has a website run on PHP. The university IT would not > help to set up email capability via Web. My question is, what are the options there that I can add email notification capability to our website, and how? > > Our server is Windows 2008r2, PHP5.6, IIS 7.5. > > Thanks. > > Kelly Zhu >
Re: [CODE4LIB] php and email
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I would strongly recommend against using PHP's built-in mail() functionality, as it is often difficult to hand-craft messages that will be delivered correctly rather than rejected by spam filters, create multipart HTML messages (if that is your need) and configure on a server where you don't have good access. It's also difficult to troubleshoot failed deliveries, especially when delivering via a 3rd party SMTP service configured in php.ini as you would need to do on windows. I second the recommendation for PHPMailer; for situations like yours where you don't have good administrative access to the SMTP delivery chain. All of its configuration lives within your code, and it provides good error reporting and debugging features, which are very lacking in mail(). https://github.com/PHPMailer/PHPMailer Good luck On Fri, 26 Feb 2016, Park, Sarah said: > Did you try PhpMailer? It includes SMTP functionality. > > Sarah Park - -- Michael Berkowski University of Minnesota Libraries m...@umn.edu 612.626.6137 PGP Public Key: http://z.umn.edu/mjbpubkey -BEGIN PGP SIGNATURE- Version: GnuPG v1 iEYEARECAAYFAlbRnskACgkQ01KJk46VC2ZKQQCeO8jnVMJ67MyGWtkpNqfZowM5 d48AoIADMetJD9sXyU1xDDXIC4Xo2/tp =aV5M -END PGP SIGNATURE-
Re: [CODE4LIB] php and email
> > Our library has a website run on PHP. The university IT would not help to > set up email capability via Web. My question is, what are the options > there that I can add email notification capability to our website, and how? > > Our server is Windows 2008r2, PHP5.6, IIS 7.5. > Does university IT know you intend to run your own mail server and are OK with your intended use? If not, you might want to touch base to ensure you don't find yourself with a blocked service or worse. kyle
Re: [CODE4LIB] php and email
Do you have the ability to specify an SMTP mail server? http://php.codeindepth.com/php-sending-mail/ .m On Fri, Feb 26, 2016 at 2:53 PM, Park, Sarah wrote: > Did you try PhpMailer? It includes SMTP functionality. > > Sarah Park > > -Original Message- > From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of > Kaile Zhu > Sent: Friday, February 26, 2016 4:23 PM > To: CODE4LIB@LISTSERV.ND.EDU > Subject: Re: [CODE4LIB] php and email > > I tried. It seems without a mail server, it won't work. - Kelly > > -Original Message- > From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of > Erik Sandall > Sent: Friday, February 26, 2016 4:20 PM > To: CODE4LIB@LISTSERV.ND.EDU > Subject: Re: [CODE4LIB] php and email > > Hi Kelly, > > PHP has a mail function that you can incorporate into your scripts. The > manual page is here: > https://urldefense.proofpoint.com/v2/url?u=https-3A__secure.php.net_manual_en_function.mail.php&d=CwIC-g&c=URKFmO0h1-PpCttSQ3v_bEhalPi_sNmh-_LG0Bso5YA&r=UmjVf-1YCnSJ8ymaevl-35Anh5CG-YF09ZrBGH_xV3U&m=Y2klCC-6Dhar7sB9-IRgKrAmwCBSC5FuSpCTARGME6w&s=wFuddn5VUWc783vIPFXYAN81v0JOn4JHNZZbdlbtwLI&e= > > /e > > -- > Erik Sandall, MLIS > Electronic Services Librarian & Webmaster Mechanics' Institute > 57 Post Street > San Francisco, CA 94104 > 415-393-0111 > esand...@milibrary.org > > > On 2/26/2016 1:50 PM, Kaile Zhu wrote: > > Hi, > > > > Our library has a website run on PHP. The university IT would not help > to set up email capability via Web. My question is, what are the options > there that I can add email notification capability to our website, and how? > > > > Our server is Windows 2008r2, PHP5.6, IIS 7.5. > > > > Thanks. > > > > Kelly Zhu > > >
Re: [CODE4LIB] php and email
Hi Kaile If you wasn't able to install Postfix on your server, try a third-party mail delivery service. For example: http://www.mandrill.com/ or https://sendgrid.com/ They have an API for you to send emails. Kun Lin Whitman College -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Kaile Zhu Sent: Friday, February 26, 2016 2:23 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email I tried. It seems without a mail server, it won't work. - Kelly -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Erik Sandall Sent: Friday, February 26, 2016 4:20 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email Hi Kelly, PHP has a mail function that you can incorporate into your scripts. The manual page is here: https://urldefense.proofpoint.com/v2/url?u=https-3A__secure.php.net_manual _en_function.mail.php&d=CwIC-g&c=URKFmO0h1-PpCttSQ3v_bEhalPi_sNmh-_LG0Bso5 YA&r=UmjVf-1YCnSJ8ymaevl-35Anh5CG-YF09ZrBGH_xV3U&m=Y2klCC-6Dhar7sB9-IRgKrA mwCBSC5FuSpCTARGME6w&s=wFuddn5VUWc783vIPFXYAN81v0JOn4JHNZZbdlbtwLI&e= /e -- Erik Sandall, MLIS Electronic Services Librarian & Webmaster Mechanics' Institute 57 Post Street San Francisco, CA 94104 415-393-0111 esand...@milibrary.org On 2/26/2016 1:50 PM, Kaile Zhu wrote: > Hi, > > Our library has a website run on PHP. The university IT would not help to set up email capability via Web. My question is, what are the options there that I can add email notification capability to our website, and how? > > Our server is Windows 2008r2, PHP5.6, IIS 7.5. > > Thanks. > > Kelly Zhu >
Re: [CODE4LIB] php and email
Did you try PhpMailer? It includes SMTP functionality. Sarah Park -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Kaile Zhu Sent: Friday, February 26, 2016 4:23 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email I tried. It seems without a mail server, it won't work. - Kelly -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Erik Sandall Sent: Friday, February 26, 2016 4:20 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email Hi Kelly, PHP has a mail function that you can incorporate into your scripts. The manual page is here: https://urldefense.proofpoint.com/v2/url?u=https-3A__secure.php.net_manual_en_function.mail.php&d=CwIC-g&c=URKFmO0h1-PpCttSQ3v_bEhalPi_sNmh-_LG0Bso5YA&r=UmjVf-1YCnSJ8ymaevl-35Anh5CG-YF09ZrBGH_xV3U&m=Y2klCC-6Dhar7sB9-IRgKrAmwCBSC5FuSpCTARGME6w&s=wFuddn5VUWc783vIPFXYAN81v0JOn4JHNZZbdlbtwLI&e= /e -- Erik Sandall, MLIS Electronic Services Librarian & Webmaster Mechanics' Institute 57 Post Street San Francisco, CA 94104 415-393-0111 esand...@milibrary.org On 2/26/2016 1:50 PM, Kaile Zhu wrote: > Hi, > > Our library has a website run on PHP. The university IT would not help to > set up email capability via Web. My question is, what are the options there > that I can add email notification capability to our website, and how? > > Our server is Windows 2008r2, PHP5.6, IIS 7.5. > > Thanks. > > Kelly Zhu >
Re: [CODE4LIB] php and email
Can you view your Php.ini file? See if you have settings configured for mail? http://php.net/manual/en/mail.configuration.php On February 26, 2016, at 5:24 PM, Kaile Zhu wrote: I tried. It seems without a mail server, it won't work. - Kelly -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Erik Sandall Sent: Friday, February 26, 2016 4:20 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email Hi Kelly, PHP has a mail function that you can incorporate into your scripts. The manual page is here: https://urldefense.proofpoint.com/v2/url?u=https-3A__secure.php.net_manual_en_function.mail.php&d=CwIC-g&c=URKFmO0h1-PpCttSQ3v_bEhalPi_sNmh-_LG0Bso5YA&r=UmjVf-1YCnSJ8ymaevl-35Anh5CG-YF09ZrBGH_xV3U&m=Y2klCC-6Dhar7sB9-IRgKrAmwCBSC5FuSpCTARGME6w&s=wFuddn5VUWc783vIPFXYAN81v0JOn4JHNZZbdlbtwLI&e= /e -- Erik Sandall, MLIS Electronic Services Librarian & Webmaster Mechanics' Institute 57 Post Street San Francisco, CA 94104 415-393-0111 esand...@milibrary.org On 2/26/2016 1:50 PM, Kaile Zhu wrote: > Hi, > > Our library has a website run on PHP. The university IT would not help to > set up email capability via Web. My question is, what are the options there > that I can add email notification capability to our website, and how? > > Our server is Windows 2008r2, PHP5.6, IIS 7.5. > > Thanks. > > Kelly Zhu >
Re: [CODE4LIB] php and email
I tried. It seems without a mail server, it won't work. - Kelly -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Erik Sandall Sent: Friday, February 26, 2016 4:20 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] php and email Hi Kelly, PHP has a mail function that you can incorporate into your scripts. The manual page is here: https://urldefense.proofpoint.com/v2/url?u=https-3A__secure.php.net_manual_en_function.mail.php&d=CwIC-g&c=URKFmO0h1-PpCttSQ3v_bEhalPi_sNmh-_LG0Bso5YA&r=UmjVf-1YCnSJ8ymaevl-35Anh5CG-YF09ZrBGH_xV3U&m=Y2klCC-6Dhar7sB9-IRgKrAmwCBSC5FuSpCTARGME6w&s=wFuddn5VUWc783vIPFXYAN81v0JOn4JHNZZbdlbtwLI&e= /e -- Erik Sandall, MLIS Electronic Services Librarian & Webmaster Mechanics' Institute 57 Post Street San Francisco, CA 94104 415-393-0111 esand...@milibrary.org On 2/26/2016 1:50 PM, Kaile Zhu wrote: > Hi, > > Our library has a website run on PHP. The university IT would not help to > set up email capability via Web. My question is, what are the options there > that I can add email notification capability to our website, and how? > > Our server is Windows 2008r2, PHP5.6, IIS 7.5. > > Thanks. > > Kelly Zhu >
Re: [CODE4LIB] php and email
Hi Kelly, PHP has a mail function that you can incorporate into your scripts. The manual page is here: https://secure.php.net/manual/en/function.mail.php /e -- Erik Sandall, MLIS Electronic Services Librarian & Webmaster Mechanics' Institute 57 Post Street San Francisco, CA 94104 415-393-0111 esand...@milibrary.org On 2/26/2016 1:50 PM, Kaile Zhu wrote: Hi, Our library has a website run on PHP. The university IT would not help to set up email capability via Web. My question is, what are the options there that I can add email notification capability to our website, and how? Our server is Windows 2008r2, PHP5.6, IIS 7.5. Thanks. Kelly Zhu
[CODE4LIB] php and email
Hi, Our library has a website run on PHP. The university IT would not help to set up email capability via Web. My question is, what are the options there that I can add email notification capability to our website, and how? Our server is Windows 2008r2, PHP5.6, IIS 7.5. Thanks. Kelly Zhu