Ad Widget

Collapse

Mail is sended but without info

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ittec
    Member
    • Mar 2008
    • 73

    #1

    Mail is sended but without info

    Hi

    Im trying to use a external SMTP server with Zabbix as first option, so I have followed the howto on Cookbook to use a script to log on external SMTP

    http://www.zabbix.com/forum/showthread.php?t=1323


    Good: the mail is properly sended and I have no problems with logon on external SMTP.

    Bad: Mail is only fill with "From", there aren't Subject, body of mail, etc. No info.

    Code:
    #!/bin/sh
    
    export [email protected]
    export zabbixemailto=$1
    export zabbixsubject=$2
    export zabbixbody=$3
    export smtpserver=mail.mysmtp.com
    export smtplogin=some@one
    export smtppass=password
    
    /usr/sbin/sendmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject -m $zabbixbody -s $smtpserver:25 -xu $smtplogin -xp $smtppass
    Do I miss something?

    Thanks!

    PD: is more easy to use a local MTA?
  • ittec
    Member
    • Mar 2008
    • 73

    #2
    I read again the cookbook and I noticed something that I miss first:

    (change the variables to suit you. $1,$2,$3 are variables you set in the Zabbix PHP front end)
    MMM, I think I no setup any variable on Zabbix php frontend. How I can do this?

    thanks

    Comment

    Working...