Advertisement
olie480

AMPPS Sendmail Configuration

Nov 4th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Find the line in the correct php.ini file that says [mail function] and just replace everything with this block of code. To the [SQL] block.
  2.  
  3. [mail function]
  4. ; For Win32 only.
  5. ; http://php.net/smtp
  6. SMTP = 127.0.0.1
  7.  
  8. ; http://php.net/smtp-port
  9. smtp_port = 25
  10.  
  11. ; For Win32 only.
  12. ; http://php.net/sendmail-from
  13. sendmail_from = YOUR_EMAIL_ADDRESS@YOUR_DOMAIN.COM
  14.  
  15. ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
  16. ; http://php.net/sendmail-path
  17. ;sendmail_path =
  18. sendmail_path = "C:\Ampps\sendmail\sendmail.exe -t"
  19.  
  20. ; Force the addition of the specified parameters to be passed as extra parameters
  21. ; to the sendmail binary. These parameters will always replace the value of
  22. ; the 5th parameter to mail(), even in safe mode.
  23. ;mail.force_extra_parameters =
  24.  
  25. ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
  26. mail.add_x_header = On
  27.  
  28. ; The path to a log file that will log all mail() calls. Log entries include
  29. ; the full path of the script, line number, To address and headers.
  30. ;mail.log =
  31.  
  32. [SQL]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement