NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP mail() signup confirmation for JewFind.comdoes not get delivered consistently

Brent Baisley brenttech at gmail.com
Tue Nov 25 18:00:53 EST 2008


No, SwiftMail doesn't have to relay. You can give it your username and
password and it will actually login to the mail server you specified
and send the email, just like an email client (i.e. Outlook).
You don't have to change any configurations on the mail server, so you
can use yahoo, gmail, your own, or any other mail system to send your
emails. It's not relaying through the mail server, it actually sending
it from mail server as a logged in user. Plus, you can set whatever
headers you want. Which is why delivery rates would be higher.

The PHP mail command does not login to mail servers, it has to have
what is essentially an open relay.

Brent Baisley

On Tue, Nov 25, 2008 at 4:32 PM, NYPHP <nyphporg at dynamicink.com> wrote:
> Brent,
>
> It appears that SwiftMail operates like an SMTP but it also tracks delivery
> stats, is that right? It is easy to reconfigure either PHP or the current
> SMTP server to relay mail through another server like SwiftMail, but why
> would SwiftMail yield any higher delivery rates?
>
>
> ----- Original Message ----- From: "Brent Baisley" <brenttech at gmail.com>
> To: "NYPHP Talk" <talk at lists.nyphp.org>
> Sent: Tuesday, November 25, 2008 1:13 PM
> Subject: Re: [nycphp-talk] PHP mail() signup confirmation for JewFind.comdoes
> not get delivered consistently
>
>
>> On Sun, Nov 23, 2008 at 11:03 AM, Hans Zaunere <lists at zaunere.com> wrote:
>>>>
>>>> A client of mine (www.JewFind.com) is using the PHP mail() function to
>>>> send signup email-confirmations and it works most of the time, but
>>>> quite a few users have contacted them saying that they did not receive
>>>> the email. We discovered that Yahoo mail requires the "-f
>>>> sender at domain.com" header to deliver to the inbox instead of the
>>>> junkmail box- anyone know if there other headers that can be added to
>>>> make the delivery more reliable?
>>>
>>> -- Use -fsomething at somehwere.com header
>>>
>>> -- Make sure the web server's user is in /etc/mail/trusted-users if using
>>> sendmail/etc.
>>>
>>> -- And most importantly: relay mail through a real mail server with
>>> proper
>>> DNS records, etc.  Many places now check for the correct DNS records and
>>> listening SMTP ports to ensure it's a real server sending the mail.  Web
>>> servers won't pass these tests.
>>>
>>> H
>>
>> For this very reason I switched to SwiftMail long ago (written in
>> PHP). I can log into an account on a mail server (i.e. gmail) and send
>> emails through that account. It's free and very robust, but also has a
>> "simple" mode.
>>
>> Brent Baisley
>> _______________________________________________
>> New York PHP User Group Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> http://www.nyphp.org/show_participation.php
>
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show_participation.php
>



More information about the talk mailing list