PHP? W ??? I :?? Why? Ail (), PHP?

Source: Internet
Author: User
PHP ???? ? Sent Letter ?? R waits ,?? ?? Very strange ???, That is: Warning: mail (): Failedtoconnecttomailserverat & quot; localhost & quot; port25, verifyyour & quot; SMTP & quot; and & quot; s

PHP ???? ? Sent Letter ?? R waits ,?? ?? Very strange ???, That is:
Warning: mail (): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php. ini or use ini_set () in .......
Of course ,???? Color ?? Upper? Shown, just ?? ?? F Ming, no? You can? Set? Shown? Color ,??? Well ,??? Want to stay? You have studied it.
 
? Why does the internet search for phase? ? Technology? Blog, everyone is very ?? What do you know? Q solution. most of the changes are just mentioned: [mail function] letter ??? in php. ini ???? What is the phase of mtp? Function? Row? Yes. Which of the following is ?? :
[Mail function]
SMTP = localhost
Smtp_port = 25
Sendmail_from = youremailUsual@domin.com
;?? Is it necessary ?? Under ,???? Parts are From.
Sendmail_path = ""
; It was empty at first ,?? After? Ming.
Mail_add_x_header = on
;?? Is it Mo? On? O changes required
 
To? Step by step, after modification ?, ?? Pache ,? But ??? Operation, me ?? Operated in CMD ,????? Operation ,?? A question ?? Xiao ?. How stupid I am!
 
? Too many ?, Refresh? Face ,?? Still exist.
 
?? Trapped in ?? To the point where stackoverflow mentions IIS (windows Mo? ? Palm ?, Why can't I find it in Control Panel-administrative tools? I ?, Why is it win7? Therefore, when adding and? H Division program, put it ?? Pure? Pay attention to the operation. after? Are you sure you want ??? Required parameter _, here? R: What about smtp? All very exciting ???? Phase sequence _, configured phase? ??? For example, intercept? D:
 
Correct: here? Forgot ??? D. sorry! 7-5 ?? Positive.
 
 

 
? Sentence ???,? Step-by-step comparison ????, Which of the above is ASP.net ??, Let's take care of your PHP affair. [What is it?] Successful].
 
Think Twice ,? Why does my base encyclopedia check smtp? F ??? Solution ?,? Click Here :?? Wu] pieces? F?
? ^? Modify [mail function] as follows:
; To 126? Box? Set? Why ?? Br/> SMTP = smtp.126.com
Smtp_port = 25
Sendmail_from = my126EmailAddress@126.com
Sendmail_path = ""
Mail_add_x_header = on
 
Same? R modified $ from? in the program? Quantity? Offset ?? Suck 3 loyal recovery?
 
[Reason? Why? White paper? Y ?, Add the phpinfo () function in the program ??? Sniffing? In? Search for mail ?, You ?? L ??? Lucky ?? Localhost Value and master Value ,? But ??? It's easy to understand. what does Localhost Value mean in your program? Set? Offset? Is the master Value of php. ini? Set]
? Sniffing? What's amazing ?? Disappear, no? Outbound? ?? :
Mail (): SMTP server response: 553 You are not authorized to send mail, authentication is required aaf353e4-8ac5-416e-9cd5-6b54fc592764
 
And then changed the other ones? Box, such as QQ and Gamil ,?? As prompted above, I read one ?? Familiar? Sleeper ~ Authorized.
 
To? What does one look like? Success? Think of the previous users? ? Why? R waits, the last step is all ????? Do you need it ??? Quot; server? Why ?? ". The last one accidentally found one ?? The file package named sendmail, bottom? Address: sendmail
After that, it is best to look at the root of PHP? Create now ?? File? A: What is the backend of sendmail? ? Go and try again? Why ?? Modify one ?? The file named sendmail. ini is modified as follows:
 
; Take the fomus email provider in China 126 for example
[Sendmail]
Smtp_server = smtp.126.com
Smtp_port = 25
Default_domin = 126.com
Auth_username = strings in your email address before char '@'
Auth_password = your password which allow you to login in your email-box
Hostname = 126.com
 
After that, you need to modify php. ini ,? Old Place:
SMTP = smtp.126.com
;?? Modify ?? What is ocalhost ?? Others ?? Keep it ?.
Smtp_port = 25
Sendmail_from = my126EmailAddress@126.com
Sendmail_path = "your sendmail path/sendemail.exe-t"
;? But ??? ? Which of the following is the saddle? Including your PHP Security? Root object ?,?? Quot ;\"? Q Cheng "/", I think it is required? What to do.
Mail_add_x_header = on

To ?? Configuration complete, heavy? Stunned? Pache, refresh? Face ,?? Because? $ To is your 126 and QQ? Box ,? Why ?? .
 
? Click QQ at the bottom right corner of the desktop ?? Outbound 3 ?? ? R, I know that I resolve it ?? Parts? Hot? And me? Face? Entered? Genius? Restore? And some? Hot swap? Yes? Why ??? Why? Copy? Nbsp;

Author: Tian Haoyu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.