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
Last revisionBoth sides next revision
tips:mailconfig [2009-12-01 10:35] 80.59.14.169tips:mailconfig [2024-02-02 16:00] – [(older comments)] 2a01:cb00:21:a00:5d08:da6e:3a0e:6b14
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 190: Line 189:
  
 :!: This [[http://www.metakitto.com/doku.php?id=wiki:dokuwiki_smtp_patch|patch]] to the 2006-11-06 version allows DokuWiki to talk to any SMTP server, including one which requires authentication. :!: This [[http://www.metakitto.com/doku.php?id=wiki:dokuwiki_smtp_patch|patch]] to the 2006-11-06 version allows DokuWiki to talk to any SMTP server, including one which requires authentication.
 +[[https://mylittlenature.fr/ |baie du miracle]]  
 +[[https://location-voiture-vtc.fr/ |location voiture vtc]]
 Note: Windows installations can use the "fake sendmail" program to provide authentication instead of installing this patch.  See [[#Windows-specific instructions|Windows instructions]] for details. Note: Windows installations can use the "fake sendmail" program to provide authentication instead of installing this patch.  See [[#Windows-specific instructions|Windows instructions]] for details.
  
Line 200: Line 200:
  
 I would also like any news on running through a different SMTP server on the network.   --- // Paul Hoy 2006/09/16 // I would also like any news on running through a different SMTP server on the network.   --- // Paul Hoy 2006/09/16 //
- +[[https://mylittlenature.fr/products/la-baie-miracle |baie du miracle 
-> I've not been successful in running Sendmail for Windows, yet. Has anyone managed to run Sendmail for Windows successfully? Thanks. -- Straider (2004.09.02).+]]> I've not been successful in running Sendmail for Windows, yet. Has anyone managed to run Sendmail for Windows successfully? Thanks. -- Straider (2004.09.02).
  
 >> Try using sendmail_path = \"C:\HostingServices\SendMail\sendmail.exe -t -i\" as sendmail.exe requires -t to run and the Win32 version of PHP does not supply this by default as specified. -- Jared (2005.23.01) >> Try using sendmail_path = \"C:\HostingServices\SendMail\sendmail.exe -t -i\" as sendmail.exe requires -t to run and the Win32 version of PHP does not supply this by default as specified. -- Jared (2005.23.01)
Line 214: Line 214:
  
 >>>>> My ISP uses qmail with a windows server.  Any ideas how to configure this one? >>>>> My ISP uses qmail with a windows server.  Any ideas how to configure this one?
 +  
 +  
 +  
 +  
 +  
 +
 > After modify php.ini, remember to **restart Apache server**, or you will still get an error. -- Fwolf (2005.09.07) > After modify php.ini, remember to **restart Apache server**, or you will still get an error. -- Fwolf (2005.09.07)
  
 > 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.txt · Last modified: 2024-02-02 17:15 by Aleksandr

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