DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:mailconfig

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:mailconfig [2009-12-01 10:35] 80.59.14.169tips:mailconfig [2024-02-02 17:15] (current) – old revision restored (2018-01-25 15:14) Aleksandr
Line 1: Line 1:
 ====== Sending mails with SMTP ====== ====== Sending mails with SMTP ======
  
-There is a plugin for [[plugin:swiftmail]] available that handles sending mails over external SMTP servers. Read on the [[plugin:swiftmail|plugins page]] for details.+There is a [[plugin:smtp|SMTP Plugin]] available that handles sending mails over external SMTP servers. Read on the [[plugin:smtp|plugins page]] for details.
  
 Everything below is no longer needed and shouldn't be used unless there is a specific reason. Everything below is no longer needed and shouldn't be used unless there is a specific reason.
Line 147: Line 147:
 return @mail($to,$subject,$body,$header); return @mail($to,$subject,$body,$header);
 </file> </file>
- 
 ===== Unix (Linux) sendmail setup ===== ===== Unix (Linux) sendmail setup =====
  
Line 166: Line 165:
 <file> <file>
 ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i"). ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
-sendmail_path = /usr/sbin/sendmail -syour.sendmail.host.com -t -i+sendmail_path = /usr/sbin/sendmail -s your.sendmail.host.com -t -i
 </file> </file>
  
-Replace '''your.sendmail.host.com''' with the name of the machine you use for sendmail services.  Note that the ';' at the beginning of the line is removed.  You may need to restart the web server for this to take effect (''/etc/init.d/httpd restart'').+Replace '''your.sendmail.host.com''' with the name of the machine you use for sendmail services.  Note that the ';' at the beginning of the line is removed.  You may need to restart the web server for this to take effect (''/etc/init.d/httpd restart''). You may also have to add the respective user sending emails to the ''mail'' group. and restart php5-fpm (user logout).
  
 **(2)** If for some reason you can't do (1), another solution is to create a script that **(2)** If for some reason you can't do (1), another solution is to create a script that
Line 219: Line 218:
 > Try to use the first method which simply modifies PHP.ini. I failed with the second one which requires sendmail.exe but succeeded with the first one. :-D -- Minyang (2006.12.05) > Try to use the first method which simply modifies PHP.ini. I failed with the second one which requires sendmail.exe but succeeded with the first one. :-D -- Minyang (2006.12.05)
 >> This may have been due to the 8.3 path issue mentioned in the [[#One Example of Configuring Windows XP with PHP 5 using Method #2|Windows example]].  --- //[[spamact@yahoo.com|Jeff]] 2007-02-27 20:38// >> This may have been due to the 8.3 path issue mentioned in the [[#One Example of Configuring Windows XP with PHP 5 using Method #2|Windows example]].  --- //[[spamact@yahoo.com|Jeff]] 2007-02-27 20:38//
- 
tips/mailconfig.1259660119.txt.gz · Last modified: 2009-12-01 10:35 by 80.59.14.169

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki