wordpress - How to configure php mail in XAMPP -
i using windows server 2008 r2. have installed xampp installed mysql, php, , apache. installed wordpress. have couple questions can't seem straight answer searching google. i've been searching these answers on 8 hours.
questions
is there way install smtp server work apache? if so, how?
can configure php mail work without using smtp? if so, how?
problem:
i have configured mail in wordpress , sendmail.ini. can send test email , says sent, never receive email. need getting fixed. i'm totally @ loss.
send mail output below
test message sent result was: bool(true) full debugging output shown below: object(phpmailer)#232 (65) { ["priority"]=> int(3) ["charset"]=> string(5) "utf-8" ["contenttype"]=> string(10) "text/plain" ["encoding"]=> string(4) "8bit" ["errorinfo"]=> string(0) "" ["from"]=> string(23) "myemail@email.com" ["fromname"]=> string(12) "joe randolph" ["sender"]=> string(23) "myemail@email.com" ["returnpath"]=> string(0) "" ["subject"]=> string(50) "wp mail smtp: test mail myemail@email.com" ["body"]=> string(68) "this test email generated wp mail smtp wordpress plugin." ["altbody"]=> string(0) "" ["mimebody":protected]=> string(69) "this test email generated wp mail smtp wordpress plugin. " ["mimeheader":protected]=> string(364) "date: wed, 9 apr 2014 01:55:32 +0000 return-path: myemail@email.com from: joe randolph message-id: <2c046a69376cf33b2ede557c0e3f3e8a@127.0.0.1> x-priority: 3 x-mailer: phpmailer 5.2.4 (http://code.google.com/a/apache-extras.org/p/phpmailer/) mime-version: 1.0 content-transfer-encoding: 8bit content-type: text/plain; charset=utf-8 " ["mailheader":protected]=> string(88) "to: myemail@email.com subject: wp mail smtp: test mail myemail@email.com " ["wordwrap"]=> int(0) ["mailer"]=> string(4) "mail" ["sendmail"]=> string(18) "/usr/sbin/sendmail" ["usesendmailoptions"]=> bool(true) ["plugindir"]=> string(0) "" ["confirmreadingto"]=> string(0) "" ["hostname"]=> string(0) "" ["messageid"]=> string(0) "" ["messagedate"]=> string(0) "" ["host"]=> string(9) "localhost" ["port"]=> int(25) ["helo"]=> string(0) "" ["smtpsecure"]=> string(3) "ssl" ["smtpauth"]=> bool(false) ["username"]=> string(0) "" ["password"]=> string(0) "" ["authtype"]=> string(0) "" ["realm"]=> string(0) "" ["workstation"]=> string(0) "" ["timeout"]=> int(10) ["smtpdebug"]=> bool(true) ["debugoutput"]=> string(4) "echo" ["smtpkeepalive"]=> bool(false) ["singleto"]=> bool(false) ["singletoarray"]=> array(0) { } ["le"]=> string(1) " " ["dkim_selector"]=> string(0) "" ["dkim_identity"]=> string(0) "" ["dkim_passphrase"]=> string(0) "" ["dkim_domain"]=> string(0) "" ["dkim_private"]=> string(0) "" ["action_function"]=> string(0) "" ["version"]=> string(5) "5.2.4" ["xmailer"]=> string(0) "" ["smtp":protected]=> null ["to":protected]=> array(1) { [0]=> array(2) { [0]=> string(23) "myemail@email.com" [1]=> string(0) "" } } ["cc":protected]=> array(0) { } ["bcc":protected]=> array(0) { } ["replyto":protected]=> array(0) { } ["all_recipients":protected]=> array(1) { ["myemail@email.com"]=> bool(true) } ["attachment":protected]=> array(0) { } ["customheader":protected]=> array(0) { } ["message_type":protected]=> string(5) "plain" ["boundary":protected]=> array(3) { [1]=> string(35) "b1_2c046a69376cf33b2ede557c0e3f3e8a" [2]=> string(35) "b2_2c046a69376cf33b2ede557c0e3f3e8a" [3]=> string(35) "b3_2c046a69376cf33b2ede557c0e3f3e8a" } ["language":protected]=> array(0) { } ["error_count":protected]=> int(0) ["sign_cert_file":protected]=> string(0) "" ["sign_key_file":protected]=> string(0) "" ["sign_key_pass":protected]=> string(0) "" ["exceptions":protected]=> bool(true) }
below code sendmail.ini - i'm not sure configured correctly
; configuration fake sendmail ; if file doesn't exist, sendmail.exe settings in ; registry, under hklm\software\sendmail [sendmail] ; must change mail.mydomain.com smtp server, ; or iis's "pickup" directory. (generally c:\inetpub\mailroot\pickup) ; emails delivered via iis's pickup directory cause sendmail ; run quicker, won't error messages calling ; application. smtp_server=mail.localhost.com ; smtp port (normally 25) smtp_port=25 ; smtps (ssl) support ; auto = use ssl port 465, otherwise try use tls ; ssl = alway use ssl ; tls = use tls ; none = never try use ssl smtp_ssl=auto ; default domain server read registry ; appended email addresses when 1 isn't provided ; if want override value in registry, uncomment , modify ;default_domain=mydomain.com ; log smtp errors error.log (defaults same directory sendmail.exe) ; uncomment enable logging error_logfile=error.log ; create debug log debug.log (defaults same directory sendmail.exe) ; uncomment enable debugging ;debug_logfile=debug.log ; if smtp server requires authentication, modify following 2 lines auth_username=myemail@email.com auth_password=test1 ; if smtp server uses pop3 before smtp authentication, modify ; following 3 lines. not enable unless required. pop3_server= pop3_username= pop3_password= ; force sender following email address ; affect "mail from" command, won't modify ; "from: " header of message content force_sender= ; force sender following email address ; affect "rctp to" command, won't modify ; "to: " header of message content force_recipient= ; sendmail use hostname , default_domain in ehlo/helo ; smtp greeting. can manually set ehlo/helo name if required hostname=localhost
question 1: there way install smtp server work apache? if so, how?
as devon mentioned in comments, smtp , apache different servers/services , use different protocols together. can understand question, yes can setup built in smtp server on 2008 r2 server , use send mail long have static ip isp server resides (if have dynamic ip server ip may permanently blocked being able send local mail server in case either exchange server or 3rd party email application in reside locally testing purposes). if want know happening email follow link on getting smtp logs setup , viewing happening mail sent through php.
http://www.vsysad.com/2012/04/setup-and-configure-smtp-server-on-windows-server-2008-r2/
also on side note, if using php mail function or type of mail function (not php) typically not use ssl on port 25 unless configured smtp use smtp on ssl in manner (the settings have setup on plugin not make sense).
question 2: can configure php mail work without using smtp? if so, how?
the plugin using has ability not send localhost (local smtp server) rather address gmail, yahoo, secureserver (godaddy) or other mail service provider smtp particular situation. depending on provider smtp configuration change based on setup have account.
here brief list of servers use instead of localhost , require smtp authentication (which requires account 1 of them).
http://www.arclab.com/en/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html
Comments
Post a Comment