このクラスを使用してメールを自動的に送信しますhttp://bbs.php100.com/read-htm-tid-121431.html
彼が使用したphpのバージョンが古いため、関数ereg_replace()とereg()
を使用しました

解決策
1ereg_replace() 関数の場合、strtr() 関数に置き換えます
構文の違いは次のとおりです:

詳細http://www.php.net/manual/zh/function.ereg-replace.php

詳細http://www.w3school.com.cn/php/func_string_strtr.asp
2ereg() 関数の場合は、preg_match() 関数に置き換えます

リンクhttp://blog.163.com/yanli_xu/blog/static/1363672912011420101820393/
preg_match() 関数構文http://www.php.net/manual/zh/function.preg-match.php
変更後の完全なコードは次のとおりです
【メールクラス】sm.class.php

smtp( = "", = 25, = ,,
->デバッグ =
->smtp_port =
->relay_host =
->タイムアウト = 30;
->認証 = ;
->ユーザー =
->パス =
->ホスト名 = "ローカルホスト";
->log_file = ""
->靴下 =
sendmail(, , = "", = "", , = "", = "", = ""
= ->get_address(->strip_comment()
= (, "(^|(rn))(.)", "1.3" .= "MIME バージョン:1.0rn"
(=="HTML"
.= "Content-Type:text/htmlrn"
.= "宛先: ".."rn"
( != ""
.= "Cc: ".."rn"
.= "From: <"..">rn"<スパン88
.= "件名: ".."rn"<スパン90
.= <スパン92
.= "Date: ".("r")."rn"<スパン94
.= "X-Mailer:By Redhat (PHP/".().")rn"<スパン96
<スパン97 <スパンリスト(<スパン$msec, <スパン$sec) = <スパンexplode(" ", <スパンマイクロタイム<スパン());
<スパン98
.= "Message-ID: <".("YmdHis", ).".".(*1000000). ".".