Citect email a page

mario619

Member
Join Date
Mar 2012
Location
pretoria
Posts
5
Hi I have a problem pasting a runtime page automatically into outlook it looks like the sendkey function does not work.
This is a part of my code

WinCopy()
MailToURL(email, "test","","","")
sleep(5)
sendkey("test -Message(HTML)","^(v)")

I am using windows 7 with citect 7.2

please help

thank youo_O
 
Last edited:
Do you need to use outlook for the email?

You could use winfile to create a screendump .bmp file then mailsend to send the message with the attached file.

WinFile("dump")
MailSend("[email protected]","screen dump","insert message here...","[data]:dump.bmp",0)
 
Do you need to use outlook for the email?

You could use winfile to create a screendump .bmp file then mailsend to send the message with the attached file.

WinFile("dump")
MailSend("[email protected]","screen dump","insert message here...","[data]:dump.bmp",0)

I do need to use outlook for the email.

thank you for the help it works here is my code i used hope it helps someone els

FUNCTIONSendScreen()
Counter=Counter+1;
WinFile(PathToStr("[data]\dump"+IntToStr(Counter)+".bmp"));
MailLogon("Outlook","",0);
MailSend("email","screen dump","insert message here...",PathToStr("[data]\dump"+IntToStr(Counter)+".bmp"),0);
MailLogoff();
END

(y):D
 
Last edited:
Blat can be found at http://www.blat.net/

Blat -h will show the help file.
I usually run the install command blat -install to store mail server parameters to the windows registry.

Then using cicode something like:
INT
FUNCTIONsendmail()
STRING sRecipient;
STRING sSubject;
STRING sBody;
STRING sAttachment;
STRING sBlatPath;
STRING stemp;
sRecipient = "[email protected]"
sSubject = "^"msg subject inserted here...^""
sBody = "^"msg body here^""
sAttachment = "^""+PathToStr("[data]:\blat\_MG_4735.jpg")+"^""
sBlatPath = PathToStr("[data]:\blat\blat")
sTemp = sBlatPath + " -to " + srecipient + " -subject "+ sSubject + " -body " + sBody + " -attach " + sAttachment
Exec(stemp);
RETURN0;
END//


This is only one way. Have a look at the option in "blat -h"

Cheers
 
Blat can be found at http://www.blat.net/

Blat -h will show the help file.
I usually run the install command blat -install to store mail server parameters to the windows registry.

Then using cicode something like:
INT
FUNCTIONsendmail()
STRING sRecipient;
STRING sSubject;
STRING sBody;
STRING sAttachment;
STRING sBlatPath;
STRING stemp;
sRecipient = "[email protected]"
sSubject = "^"msg subject inserted here...^""
sBody = "^"msg body here^""
sAttachment = "^""+PathToStr("[data]:\blat\_MG_4735.jpg")+"^""
sBlatPath = PathToStr("[data]:\blat\blat")
sTemp = sBlatPath + " -to " + srecipient + " -subject "+ sSubject + " -body " + sBody + " -attach " + sAttachment
Exec(stemp);
RETURN0;
END//


This is only one way. Have a look at the option in "blat -h"

Cheers

Is there a way of slowing the program down so you can use the help as it is just a flach and it is closed again. or am i doing sumthing wrong
 

Similar Topics

Hi All - I have a Citect system Version 7.20 that has been happily running for a number of years, one of the tasks that is done at each shift...
Replies
0
Views
1,147
Hello, the system we use is Scada 7.5 series. We have usb key activ now we need additional key to make the system work, how do we solve this...
Replies
0
Views
13
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
67
Hello, i've been at this for months now, i tried creating accounts on the aveva website but it seems to never approve my accounts or at least when...
Replies
3
Views
97
Hello, I have a running project on Citect v5.42 and simatic net v6.4 I have created a new spare PC and loaded all software like Citect, station...
Replies
0
Views
76
Back
Top Bottom