Recommend this page to a friend! |
MIME E-mail message sending | > | MIME E-mail message sending package blog | > | How Can PHP Send Emai... | > | All threads | > | Combine smtp_class plus html and... | > | (Un) Subscribe thread alerts |
|
1 - 10 | 11 - 14 |
![]() Hi Manuel,
I'm sorry but my provider refused email-addresses with non-ASCII characters. I tested to make a new account at the t-online-server of the person who gaves me the address with the non ASCIIs but the server refused non-ASCII too. It seems, that the address of the recepient is incorrect. Sorry, for the inconvenience... Patrick
![]() I have tried this, but the attachments still come out as "non-attachments". This works on other servers I have just fine, it's this particular server. Here is my output of phpinfo():
As you can see, I have magic_quotes_runtime turned off. This one has nme baffled. Thanks! Mike phpinfo() PHP Version => 4.4.4 System => Linux portal.redhawksecurity.com 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 Build Date => Feb 6 2007 17:18:02 Configure Command => './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gd=/usr/local' '--with-mysql=/usr' '--with-freetype-dir=/usr/local/include' '--enable-calendar' '--with-pdflib=/usr/local' '--with-png' '--with-openssl' '--with-jpeg=/usr/local/' '--with-pspell' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/lib/php.ini PHP API => 20020918 PHP Extension => 20020429 Zend Extension => 20050606 Debug Build => no Zend Memory Manager => enabled Thread Safety => disabled Registered PHP Streams => php, http, ftp, https, ftps, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies _______________________________________________________________________ Configuration PHP Core Directive => Local Value => Master Value allow_call_time_pass_reference => Off => Off allow_url_fopen => On => On always_populate_raw_post_data => Off => Off arg_separator.input => & => & arg_separator.output => & => & asp_tags => Off => Off auto_append_file => no value => no value auto_prepend_file => no value => no value browscap => no value => no value default_charset => no value => no value default_mimetype => text/html => text/html define_syslog_variables => Off => Off disable_classes => no value => no value disable_functions => no value => no value display_errors => Off => Off display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => no value => no value enable_dl => On => On error_append_string => no value => no value error_log => syslog => syslog error_prepend_string => no value => no value error_reporting => 5 => 5 expose_php => On => On extension_dir => /usr/local/lib/php/extensions/ => /usr/local/lib/php/extensions/ file_uploads => On => On gpc_order => GPC => GPC highlight.bg => #FFFFFF => #FFFFFF highlight.comment => #FF8000 => #FF8000 highlight.default => #0000BB => #0000BB highlight.html => #000000 => #000000 highlight.keyword => #007700 => #007700 highlight.string => #DD0000 => #DD0000 html_errors => Off => On ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => Off include_path => .:/usr/local/lib/php => .:/usr/local/lib/php log_errors => On => On log_errors_max_len => 1024 => 1024 magic_quotes_gpc => Off => Off magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off max_execution_time => 0 => 1060 max_input_time => 1060 => 1060 open_basedir => no value => no value output_buffering => 0 => 4096 output_handler => no value => no value post_max_size => 120M => 120M precision => 14 => 14 register_argc_argv => On => Off register_globals => Off => Off report_memleaks => On => On safe_mode => Off => Off safe_mode_exec_dir => /usr/local/apache2/htdocs => /usr/local/apache2/htdocs safe_mode_gid => Off => Off safe_mode_include_dir => /usr/local/apache2/htdocs => /usr/local/apache2/htdocs sendmail_from => no value => no value sendmail_path => sendmail -t => sendmail -t serialize_precision => 100 => 100 short_open_tag => On => On SMTP => localhost => localhost smtp_port => 25 => 25 sql.safe_mode => Off => Off track_errors => Off => Off unserialize_callback_func => no value => no value upload_max_filesize => 120M => 120M upload_tmp_dir => /tmp => /tmp user_dir => no value => no value variables_order => GPCS => GPCS xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off y2k_compliance => On => On calendar Calendar support => enabled ctype ctype functions => enabled gd GD Support => enabled GD Version => 2.0 or higher FreeType Support => enabled FreeType Linkage => with freetype GIF Read Support => enabled GIF Create Support => enabled JPG Support => enabled PNG Support => enabled WBMP Support => enabled mysql MySQL Support => enabled Active Persistent Links => 0 Active Links => 0 Client API version => 5.0.27 MYSQL_MODULE_TYPE => external MYSQL_SOCKET => /var/lib/mysql/mysql.sock MYSQL_INCLUDE => -I/usr/include/mysql MYSQL_LIBS => -L/usr/lib -lmysqlclient Directive => Local Value => Master Value mysql.allow_persistent => On => On mysql.connect_timeout => 60 => 60 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => no value => no value mysql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => On => On openssl OpenSSL support => enabled OpenSSL Version => OpenSSL 0.9.8a 11 Oct 2005 overload User-Space Object Overloading Support => enabled pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 6.6 06-Feb-2006 PDF Support => enabled PDFlib GmbH Binary-Version => 7.0.0p3 PECL Version => 2.1.1 Revision => $Revision: 1.3 $ posix Revision => $Revision: 1.51.2.4.2.1 $ pspell PSpell Support => enabled session Session Support => enabled Registered save handlers => files user Directive => Local Value => Master Value session.auto_start => Off => Off session.bug_compat_42 => Off => Off session.bug_compat_warn => On => On session.cache_expire => 1440 => 1440 session.cache_limiter => nocache => nocache session.cookie_domain => no value => no value session.cookie_lifetime => 0 => 0 session.cookie_path => / => / session.cookie_secure => Off => Off session.entropy_file => no value => no value session.entropy_length => 0 => 0 session.gc_divisor => 1000 => 1000 session.gc_maxlifetime => 1440 => 1440 session.gc_probability => 1 => 1 session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => /tmp => /tmp session.serialize_handler => php => php session.use_cookies => On => On session.use_only_cookies => Off => Off session.use_trans_sid => Off => Off ssh2 libssh2 version => 0.13 banner => SSH-2.0-libssh2_0.13 remote forwarding => enabled hostbased auth => enabled polling support => enabled publickey subsystem => enabled standard Regex Library => Bundled library enabled Dynamic Library Support => enabled Path to sendmail => sendmail -t Directive => Local Value => Master Value assert.active => 1 => 1 assert.bail => 0 => 0 assert.callback => no value => no value assert.quiet_eval => 0 => 0 assert.warning => 1 => 1 auto_detect_line_endings => 0 => 0 default_socket_timeout => 600 => 600 safe_mode_allowed_env_vars => PHP_ => PHP_ safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=href,area=href,frame=src,input=src,form=fakeentry user_agent => PHP => PHP tokenizer Tokenizer Support => enabled xml XML Support => active XML Namespace Support => active EXPAT Version => 1.95.6 Additional Modules Module Name Environment Variable => Value HOSTNAME => portal.redhawksecurity.com TERM => xterm SHELL => /bin/bash HISTSIZE => 1000 SSH_CLIENT => 192.168.168.250 2480 22 QTDIR => /usr/lib/qt-3.3 QTINC => /usr/lib/qt-3.3/include SSH_TTY => /dev/pts/1 USER => root LS_COLORS => no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: KDEDIR => /usr MAIL => /var/spool/mail/root PATH => /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin INPUTRC => /etc/inputrc PWD => /usr/local/lib LANG => en_US.UTF-8 SSH_ASKPASS => /usr/libexec/openssh/gnome-ssh-askpass SHLVL => 1 HOME => /root LOGNAME => root QTLIB => /usr/lib/qt-3.3/lib CVS_RSH => ssh SSH_CONNECTION => 192.168.168.250 2480 172.16.1.60 22 LESSOPEN => |/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES => 1 _ => /usr/local/bin/php OLDPWD => /root PHP Variables Variable => Value _SERVER["HOSTNAME"] => portal.redhawksecurity.com _SERVER["TERM"] => xterm _SERVER["SHELL"] => /bin/bash _SERVER["HISTSIZE"] => 1000 _SERVER["SSH_CLIENT"] => 192.168.168.250 2480 22 _SERVER["QTDIR"] => /usr/lib/qt-3.3 _SERVER["QTINC"] => /usr/lib/qt-3.3/include _SERVER["SSH_TTY"] => /dev/pts/1 _SERVER["USER"] => root _SERVER["LS_COLORS"] => no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: _SERVER["KDEDIR"] => /usr _SERVER["MAIL"] => /var/spool/mail/root _SERVER["PATH"] => /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin _SERVER["INPUTRC"] => /etc/inputrc _SERVER["PWD"] => /usr/local/lib _SERVER["LANG"] => en_US.UTF-8 _SERVER["SSH_ASKPASS"] => /usr/libexec/openssh/gnome-ssh-askpass _SERVER["SHLVL"] => 1 _SERVER["HOME"] => /root _SERVER["LOGNAME"] => root _SERVER["QTLIB"] => /usr/lib/qt-3.3/lib _SERVER["CVS_RSH"] => ssh _SERVER["SSH_CONNECTION"] => 192.168.168.250 2480 172.16.1.60 22 _SERVER["LESSOPEN"] => |/usr/bin/lesspipe.sh %s _SERVER["G_BROKEN_FILENAMES"] => 1 _SERVER["_"] => /usr/local/bin/php _SERVER["OLDPWD"] => /root _SERVER["PHP_SELF"] => _SERVER["SCRIPT_NAME"] => _SERVER["SCRIPT_FILENAME"] => _SERVER["PATH_TRANSLATED"] => _SERVER["DOCUMENT_ROOT"] => _SERVER["argv"] => Array ( ) _SERVER["argc"] => 0 PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
![]() Hi,
test_html_mail_message.php sends HTML mail using PHP mail(,)while test_smtp_message.php sends email using SMTP. Well, I need to know how to send HTML message using smtp. I think it will be better if the send() method of email_message_class has an optional parameter that determine the method of delivery, i.e SMTP or mail() Best regards, Said Bakr
![]() The classes are different because each one uses different delivery methods and parameters.
To send HTML messages via SMTP just change the email_message_class to smtp_message_class in the test_html_mail_message.php example, as well set the host, port and other variable to configure the SMTP deliveries. |
1 - 10 | 11 - 14 |
info at phpclasses dot org
.