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 [2008-10-12 18:12] – updated to refer to the swiftmail-plugin Michituxtips: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 211: Line 210:
   - in mail.php, delete the line \"$header = mail_encode_address($to, 'To');\" and change \"return @mail(null, ...\" to \"return @mail($to, ...\"   - in mail.php, delete the line \"$header = mail_encode_address($to, 'To');\" and change \"return @mail(null, ...\" to \"return @mail($to, ...\"
  
->>>> On Windows, with PHP properly installed to already know the SMTP and sendmail_from parameters, all I had to do was modify mail.php as described in the preceding note.+>>>> On Windows, with PHP properly installed to already know the SMTP and sendmail_from parameters, all I had to do was modify mail.php as described in the preceding note
  
 >>>>> 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?
tips/mailconfig.1223827921.txt.gz · Last modified: 2009-07-09 18:20 (external edit)

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