[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Any way to change the Email Alert Subject?



PureBytes Links

Trading Reference Links

Use this new version if your subject or message has space or double quote characters.

Procedure emailAlert(subject, msg)
{
	local text;
	subject = StrReplace(subject, "\"", "\\\"");
	msg = StrReplace(msg, "\"", "\\\"");
	text = "\"" + subject + "\" \"" + msg + "\"";
	AlertIf(true, "EXEC C:\\Program Files\\AmiBroker\\EMailerSSL.exe", text, 5, 0);
}


--- In amibroker@xxxxxxxxxxxxxxx, Mark Hike <markhike@xxx> wrote:
>
> If anyone interested, I have figured this out by using undocumented feature
> :-)
> 
> Procedure emailAlert(subject, msg)
> {
>     text = subject + " " + msg;
>     AlertIf(true, "EXEC C:\\Program Files\\AmiBroker\\EMailerSSL.exe", text,
> 5, 0);
> }
> 
> emailAlert("MyOwnSubjectNow", "MyMessage\nline2\nline3");
> 
> 
> On Wed, Oct 14, 2009 at 12:25 PM, Mark Hike <markhike@xxx> wrote:
> 
> > I am using AlertIF() to send status emails for my auto trade system.
> > However, the subject of the emails seem to be a fixed format, like "Alert:
> > Other (5) ADP on 10/14/2009 1:00:00 PM",
> > is there a way to control the subject to make it more meaningful?
> > Not a big deal, but nice to have.
> >
> >
> >
> >
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/