Jump to content

Sending html messages trough phpmail()


Recommended Posts

Posted

Hello,

I have a little trouble sending html message, once I will set this option to yes: http://screenshooter...5311258/hoypfhn

It tells me that message cannot be sent, I base on Linux (php5), the sendmail in PHP is set to sendmail which is reference only to exim 4. So the main SMTP server is the exim (I didn't want to use sendmail itself so just used it as connector between exim and php as it didn't work directly to attach exim to php. I do like this for years anyway).


However, I am wondering what I missed and where, as exim's logs tells me nothing special that could help me to solve the issue, any advice?


P.S. tested on local copy of same forum running on windows and sending the html messages worked perfectly.

Posted

dealt with similar last night, are some domains accepting mail while others are not?
seeing any 450 4.7.1 client host rejected cannot find your reverse hostname
you have PTR setup for the server?

I have cpanel with config server mail queue plugin so I was able to easily see the errors.

Posted

what I found is: http://screenshooter...1770180/sqarcke

I use recommended suhosin settings..


; configuration for php suhosin module

extension=suhosin.so


;;;;;;;;;;;;;;;;;;;

; Module Settings ;

;;;;;;;;;;;;;;;;;;;

; the following values are the internal default settings and set implicit

; feel free to modify to your needs

; documentation can be found at:

; http://www.hardened-php.net/suhosin/configuration.html

; or have a look into /usr/share/doc/php5-suhosin/examples/suhosin.ini.gz


[suhosin]

; Logging Configuration

;suhosin.log.syslog =

;suhosin.log.syslog.facility = 9

;suhosin.log.syslog.priority = 1

;suhosin.log.sapi =

;suhosin.log.script = 0

;suhosin.log.phpscript = 0

;suhosin.log.script.name =

;suhosin.log.phpscript.name =

;suhosin.log.use-x-forwarded-for = off


; Executor Options

;suhosin.executor.max_depth = 0

;suhosin.executor.include.max_traversal = 0

;suhosin.executor.include.whitelist =

;suhosin.executor.include.blacklist =

;suhosin.executor.include.allow_writable_files = on

;suhosin.executor.func.whitelist =

;suhosin.executor.func.blacklist =

;suhosin.executor.eval.whitelist =

;suhosin.executor.eval.blacklist =

;suhosin.executor.disable_eval = off

;suhosin.executor.disable_emodifier = on

;suhosin.executor.allow_symlink = off


; Misc Options

;suhosin.simulation = off

;suhosin.apc_bug_workaround = off

suhosin.sql.bailout_on_error = on

;suhosin.sql.user_prefix =

;suhosin.sql.user_postfix =

;suhosin.multiheader = off

suhosin.mail.protect = 1

;suhosin.memory_limit = 0


; Transparent Encryption Options

;suhosin.session.encrypt = on

;suhosin.session.cryptkey =

;suhosin.session.cryptua = on

;suhosin.session.cryptdocroot = on

;suhosin.session.cryptraddr = 0

;suhosin.session.checkraddr = 0

;suhosin.cookie.encrypt = on

;suhosin.cookie.cryptkey =

;suhosin.cookie.cryptua = on

;suhosin.cookie.cryptdocroot = on

;suhosin.cookie.cryptraddr = 0

;suhosin.cookie.checkraddr = 0

;suhosin.cookie.cryptlist =

;suhosin.cookie.plainlist =


; Randomness

;suhosin.srand.ignore = on

;suhosin.mt_srand.ignore = on


; Filtering Options

;suhosin.filter.action =

;suhosin.cookie.max_array_depth = 100

;suhosin.cookie.max_array_index_length = 64

;suhosin.cookie.max_name_length = 64

;suhosin.cookie.max_totalname_length = 256

;suhosin.cookie.max_value_length = 10000

;suhosin.cookie.max_vars = 100

;suhosin.cookie.disallow_nul = on

;suhosin.get.max_array_depth = 50

;suhosin.get.max_array_index_length = 64

;suhosin.get.max_name_length = 64

;suhosin.get.max_totalname_length = 256

;suhosin.get.max_value_length = 512

;suhosin.get.max_vars = 100

;suhosin.get.disallow_nul = on

;suhosin.post.max_array_depth = 100

;suhosin.post.max_array_index_length = 64

;suhosin.post.max_name_length = 64

;suhosin.post.max_totalname_length = 256

;suhosin.post.max_value_length = 1000000

suhosin.post.max_vars = 4096

;suhosin.post.disallow_nul = on

;suhosin.request.max_array_depth = 100

;suhosin.request.max_array_index_length = 64

;suhosin.request.max_totalname_length = 256

;suhosin.request.max_value_length = 1000000

suhosin.request.max_vars = 4096

suhosin.request.max_varname_length = 350

;suhosin.request.disallow_nul = on

;suhosin.server.encode = on

;suhosin.server.strip = on

;suhosin.upload.max_uploads = 25

;suhosin.upload.disallow_elf = on

;suhosin.upload.disallow_binary = off

;suhosin.upload.remove_binary = off

;suhosin.upload.verification_script =

;suhosin.session.max_id_length = 128

;suhosin.coredump = off

;suhosin.protectkey = 1

;suhosin.stealth = 1

;suhosin.perdir = "0"


Posted

only used suhosin for a bit so I am rusty.
turning mail.protect toi 0 should allow it to send at least while you work on hardening it, having it as 1 disallows exactly what it looks like its blocking.
iirc there was a bug dealing with this issue

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...