Trying to send mail trough script - ISPconfig3/Ubuntu Server 12.04.2

Discussion in 'Installation/Configuration' started by [email protected], May 28, 2013.

  1. danhansen@denmark

    [email protected] Member HowtoForge Supporter


    I am trying to get a script to send a email - but an error occurs:

    "...line 64.." "...No such file or directory.."

    Line 64: /usr/sbin/ssmtp [email protected] </home/administrator/MyScripts/HotCPU.txt

    I guess it's the "/usr/sbin/ssmtp" part which courses the problem!?
    Anyone who can tell me where to find a smtp/mail send function or show me where its located on the Ubuntu Server 12.04.2 / ISPconfig
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The program to send emails in scripts on a postfix server is named "sendmail" and not ssmtp.
  3. danhansen@denmark

    [email protected] Member HowtoForge Supporter

    Sendmail... Check!

    Hi Till,

    Thanks for your reply. I'm new to doing these shell scripts, so is it possible for you to help me with the code?
    An example for how a sendmail line would look like!?! With path to where it is located.

    Is there anything I should keep in mind making shell-scripts on a ISPConfig server? I seem to rembember that during the installation we did change some settings for bash..

    Again, thanks for helping me...

Share This Page