UNSOLVED

RockyChan

updated

12 years ago

R

RockyChan

9 Posts

0

37948

January 12th, 2015 23:00

Email alert content format

Hi,

May I know how to change the content format in the email alert?

I have tried HTML, but it does not work.

Thanks

Rocky

  • RockyChan

    9 Posts

    2941

    0

    Posted January 13th, 2015 01:00

    Hi Ranveer,

    Thanks for your reply.

    Since the information is quite messy, I want to add some line feeds into them.

    If there is no way to do so, then just keep it in default format. No worries.

    Thanks again for your information.

    Cheers,

    Rocky

  • 2941

    1

    Posted January 13th, 2015 01:00

    Hi Rocky,

    Thanks for the post.

    So just to understand, are you trying to set the format preference for email alert in OME? If yes, then this is not supported in OME. Because once you configure an email alert, the notification will be sent in pre-defined format which can't be edited from OME.

    Hope this answers your question!

    Regards

    Ranveer

  • brastedd

    2 Intern

    •

    336 Posts

    2941

    0

    Posted January 14th, 2015 12:00

    I'm having the exact same issue. I want to split up each item in the alert (e.g. date, IP) with carriage returns. In OME 1.3 it formatted correctly, with one below the other. Having just upgraded to 2.01, my e-mail alerts now have everything bunched together. Why did it work in 1.3 and not in 2.01?

  • brastedd

    2 Intern

    •

    336 Posts

    2941

    1

    Posted January 14th, 2015 14:00

    RockyChan,

    Try adding carriage returns in the e-mail alert settings when you create the message. Mine are now being formatted correctly like this:

    Device:

    IP:

    Service Tag:

    Asset Tag:

    Date:

    Time:

    Severity:

    Message:

    Mine didn't work after I initially configured the e-mail alert, but it's working now. If it doesn't work for you try editing and redoing the settings again.

  • RockyChan

    9 Posts

    2941

    0

    Posted January 14th, 2015 20:00

    Hi brastedd ,

    Thanks for your help.

    However, I still cannot config like yours even through I have done a new email alert.

    btw, Thanks a lot

     

    Rocky

  • brastedd

    2 Intern

    •

    336 Posts

    2941

    0

    Posted January 15th, 2015 07:00

    Which version of OME are you running? How is your message set out? I am running OME 2.0.1.2222 and my message is as follows:

    Device:$n

    IP:$ip

    Service Tag:$st

    Asset Tag:$at

    Date:$d

    Time:$t

    Severity:$sev

    Message:$m

    There is a single space at the end of each line. I don't know if that makes a difference or not. If it doesn't work the first time, try re-editing the message, making changes so you have carriage returns and spaces, then save it and wait a couple of hours. When I immediately did a test e-mail it didn't display as I wanted it, but a few hours later I got an alert and it was formatted correctly.

  • phanx

    2 Posts

    2941

    0

    Posted March 23rd, 2017 19:00

    Unfortunately , OME doesn't support config HTML email directly, although OME's sendmail.exe support a /C parameter.

    D:\Program Files\Dell\SysMgt\Essentials\bin>sendmail.exe /?


    Usage: sendemail.exe -H -T -F -S " " -B " " -C Y/N

    Options:
    -H Set the SNMP Host Address for the sender.
    -T Set the recipients email address.
    Multiple email addresses can be added using ';' (without spaces)

    -F Set the Sender's email address.
    -S Set the Subject Line of the mail.
    -B Set the Body of the mail.
    -C Set contents of the mail as HTML or plain text. Y/N
    -? Help regarding parameters.

    So, we can use Microsoft SQL Server Management Studio to edit OME database, add this parameter after your email message.

    You can find your stored action in table "dbo.EventStoredAction" of database "OMEssentials".

    Just edit "CmdLineArguments" column

    For example:

    -t "yourname@youname.com" -f "alert@yourname.com" -s "This is alert" -b "Alert alert
    Message: $m"   -C Y