bernstein
  • Member for 8 years, 5 months
  • Last seen more than a month ago
  • Switzerland
How to sendmail via command line piping
-1 votes

php -f file.php 2>&1 | sed 's/^/To: test@email.com\nSubject: My Test Email Subject\n\n/' | sendmail -t

View answer