Hi there,
I was able to set up the smtp.gmail.com port 465 SSL to my gmail account. I would like to send the following email to collective2.com in my signal script. How do I define the Subject and the body text of my email in powerlanguage?
Subject: C2 signal
Text:
systemid=12345
pw=Baby231
BTO 1 ZBU6 LIMIT 171.34 GTC (stock)
profittarget=35
stoploss=9
Many thanks in advance.
Sending Emails to Collective2
-
- Posts: 66
- Joined: 26 Nov 2015
- Has thanked: 7 times
- Been thanked: 3 times
-
- Posts: 66
- Joined: 26 Nov 2015
- Has thanked: 7 times
- Been thanked: 3 times
Re: Sending Emails to Collective2
I came across this piece of code on Markplex website
Is there a powerlanguage equivalent for Pager_Send?
Code: Select all
Variables: Length(14),
SendEmail (TRUE),
email("youremail@email.net");
Variables: oBullishEngulfing( 0 ),
oBearishEngulfing( 0 ),
content(""),
valuexy(0),
IntraBarPersist EmailSent (FALSE),
IntraBarPersist BarNo (0);
//The following is a TS EasyLanguge function
Valuexy = C_BullEng_BearEng(Length, oBullishEngulfing, oBearishEngulfing);
//Resets the EmailSent flag on a new bar
If BarNumber <> BarNo then EmailSent = FALSE;
if oBullishEngulfing = 1 then
begin
PL0T1(L,"" ,Green);
content = "Time: "+NumToStr(time,2) + "Date: " + NumToStr(Date,0) + newline +"Bullish Engulfing formation. " + newline + "Possible Buy"+ " " + GetSymbolname ;
If SendEmail AND EmailSent = FALSE AND GetAppInfo(aiRealTimeCalc) = 1 then
Begin
EmailSent = TRUE;
BarNo = BarNumber;
Print( Time,"",Pager_Send(email,content) ) ;
end;
end
else if oBearishEngulfing =1 then
begin
PL0T1(H,"",Red);
content = "Time: "+NumToStr(time,2) + "Date: " + NumToStr(Date,0) + newline +"Bearish Engulfing formation. " + newline + "Possible Sell"+ " " + GetSymbolname ;
If SendEmail AND EmailSent = FALSE AND GetAppInfo(aiRealTimeCalc) = 1 then
Begin
EmailSent = TRUE;
BarNo = BarNumber;
Print( Time,"",Pager_Send(email,content) ) ;
end;
end ;
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Sending Emails to Collective2
Hi,
There is no eqivalent to this command. You can check related discussion here:
viewtopic.php?f=1&t=8895
There is no eqivalent to this command. You can check related discussion here:
viewtopic.php?f=1&t=8895