Created
January 5, 2015 11:52
-
-
Save etobi/2ed4633525cf77696b80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
path = "/Users/tobias/fake-mailer" | |
Dir.mkdir(path) if !File.exists?(path) | |
File.open("#{path}/#{Time.now.to_i}.eml", "w") do |f| | |
f.puts ARGV.inspect | |
$stdin.each_line { |line| f.puts line } | |
end | |
sleep(1) |
Just add this in your AdditionalConfiguration:
$GLOBALS['TYPO3_CONF_VARS']['MAIL'] = array(
'transport' => 'sendmail',
'transport_sendmail_command' => '/Users/tobias/bin/fake-sendmail.sh -t',
);
Alternatively you can configure the script for "sendmail_path" in your php.ini.
I see. Thanks a bunch!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do you use this, e.g. configure TYPO3 to use it?