Re: Sending server mails [message #186793 is a reply to message #186785] |
Wed, 04 March 2015 12:38 |
|
Atomicrun
Messages: 54 Registered: November 2010 Location: Lund
Karma:
|
Member |
|
|
My service provider require TLS for e-mails. No TLS, no mails! Typically you find an error that "TLS" -- "this stream do not support SSL/crypto". A search reveals that some can simply enable TSL/SSL, and the problem go away, while others (like me) are stuck with no solution. You must have a sufficiently updated Apache and PHP, or the solutions will not work.
I cannot run my own mail service; outgoing mails using such service is not allowed (blocked) on my server's connection. I must upload the mails like a PC mail software, to an account at my service provider.
My e-mail service provider -- they suddenly revealed that if sending to one of their own accounts, no checks is made on the e-mail, but when sending to external domains all checks (TLS) must pass, or the e-mail send will fail with an error. And I have been testing the e-mails using my ordinary account ... for some years ...
My new e-mail routine store outgoing e-mails on disk, later sent out by a deamon-php, that can re-send in case there is a problem or if some admin adjustments are needed.
I found some minor problems in the existing code, here and there, such as errors due to empty "To:"; inconsistency if the "To:" is a string or an array, mail simply lost if the send routine cannot succeed possibly without any error. The mail-account e-mail will also usually be different from the server admin e-mail.
Likely will e-mail providers increase restrictions so if your mail works now, it can simply lock an any time.
I will run the software for some time; I'll see if I can cut-out a portable version in case this is of interest to others.
|
|
|