PHPMailer? ???? ??? ???? ???? ? ??? ????. ?? ? ??(?, ?? ???? ??)
????? ?????. ?? ???? ? ???? ?? ???(Outlook ? Gmail? ??? ?????). ?? ??? ????? ???? ?? "$success="? ??????.
?????? ??? ??? ????.
??: ../images/Logo.jpg, ??, Logo.jpg,,, ???
??: ../podbanks/images/XX.jpg, XX, XX.jpg,,, ???
??: ??(PHPMailerPHPMailerPHPMailer)#1 (71) { ["????"]=> NULL ["CharSet"]=> ???(10) "iso-8859-1" ["ContentType"]=> "text/html" ["???"]=> ???(4) "8bit" ["ErrorInfo"]=> "" ["???"]=> ???(18) "admin@example.com" ["??? ??"]=> "?? ???"["Sender"]=> string(18)"admin@example.com" ["??"]=> string(27) "??? ?? ?????." ["??"]=> string(215) "??? ?? ???? ??? SendEmail? ??????. ??? ???.???? ????..." ["AltBody"]=> string(0) "" ["Ical"]=> ???(0) "" ["MIMEBody":??]=> ["MIMEHeader":???]=> string(0) "" ["mailHeader":???]=> string(0) "" ["WordWrap"]=> int(0) ["???"]=> ["Sendmail"]=> string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=> bool(true) ["ConfirmReadingTo"]=> "" ["??? ??"]=> string(0) "" ["MessageID"]=> ["MessageDate"]=> ???(0) "" ["???"]=> ???(14) "smtp.gmail.com" ["??"]=> int(587) ["Helo"]=> "tls" ["SMTPAutoTLS"]=> bool(true) ["SMTPAuth"]=> ["SMTPOptions"]=> ??(0) { } ["??? ??"]=> "examplemail@gmail.com" ["password"]=> ???(16) "shotlzacfvdubehm" ["AuthType"]=> String(0) "" ["oauth":protected]=> NULL ["Timeout"]=> int(300) ["SMTPDebug"]=> int(0) ["Debugoutput"]=> ["SMTPKeepAlive"]=> bool(false) ["SingleTo"]=> ["SingleToArray":protected]=> array(0) { } ["do_verp"]=> bool(false) ["AllowEmpty"]=> bool(false) ["DKIM_selector"]=> ["DKIM_identity"]=> ???(0) "" ["DKIM_passphrase"]=> ???(0) "" ["DKIM_domain"]=> ???(0) "" ["DKIM_private"]=> ???(0) "" ["DKIM_private_string"]=> ???(0) "" ["action_function"]=> "" ["XMailer"]=> ???(0) "" ["smtp":???]=> ["to":???]=> ??(2) { [0]=> "aa@gmail.com" 1=> ???(10) "AA" } 1=> ??(2) { [0]=> ???(15) "aa@example.com" 1=> ???(13) "A/??" } } ["cc":???]=> ??(0) { } ["bcc":???]=> ??(0) { } ["ReplyTo":protected]=> ??(1) { ["admin@example.com"]=> ??(2) [0]=> ???(18) "admin@example.com" 1=> ???(0) "" } } ["all_recipients":protected]=> array(2) { ["aa@gmail.com"]=> bool(true) ["ag@example.com"]=> bool(true) } ["RecipientsQueue":???]=> ["ReplyToQueue":???]=> array(0) { } ["?? ??":???]=> ??(2) { [0]=> ??(8) { [0]=> "../images/clients/Logo.jpg" 1=> ???(13) "Logo.jpg" 2=> ???(13) "Logo.jpg" [3]=> ???(0) "" [4]=> ???(10) "???/jpeg" [5]=> bool(false) [6]=> ???(6) "???" [7]=> ???(9) "??" }1=> ??(8) { [0]=> ???(35) "../images/XX.jpg" 1=> "XX.jpg" 2=> ???(16) "XX.jpg" [3]=> ???(0) "" [4]=> ???(10) "image/jpeg" [5]=> bool(false) [6]=> string(6) "???" [7]=> ???(3) "XX" } } ["CustomHeader":protected]=> ["lastMessageID":???]=> ["message_type":protected]=> string(0) "" ["boundary":protected]=> array(0) { } ["??": ???]=> array(0) { } ["error_count":???]=> int(0) ["sign_cert_file":???]=> ???(0) "" ["sign_key_file":???]=> ["sign_extracerts_file": ??] => ["sign_key_pass": ??] = > string(0) "" ["??": ??] = > bool(false) ["uniqueid":protected]=> string(0) "" } ???? ???????!
GitHub: 3731??? ???? ??? ?? ? ????. ?? ?? ?? ??? ?? ???????. ??? ? ?? ????? ??? ??? ??? ??? ???? ????. ??? ????? ???? ?? ?? ???? ???? ???(Base64? ????? ? ? ?? ?????)? "???" ?? ?? ?? ??? ????? ??...
??, ??? ?????? ???? ?? ??(????)? ???? ?? ??? ?? ??? PHPMailer? ???? ?? ??? ???? ??????? ????.
??? ??? ?? ??? ?? ???? ? ? ????. ?? ????? ? ???. Mailer
– isSMTP()
??? ??? ????.
???? ?? ??? ??? ????? ???? ?? ?? ?? ??? ?? ?? ??? ????? ? ? ????. ?? ?? ??? ??? ?? ? ???? logo-123456.png
,并希望將其附加為 logo.png
.
???? ?? ?? base64
?? ???. ???? ????? ??? ?? ??? ??? ???? ????? ????.
MIME ??? ?? ???? ???? ??? ???? ???? ?? MIME ??? ???? ?? ??? ??? ?? ? ? ??? ??? ? ????(PHPMailer? ???? ???).