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,139
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
66
Hello everyone, In a factory where we installed Citect 7.20 the computer began to show the first signs of end of life. They never considered...
Replies
0
Views
73
I have a running backup of Citect and plc and I want to make a spare PC station so I have installed the win XP and somatic net v6.0 and import the...
Replies
3
Views
118
I am trying to display a variable within a cicode function onto a graphics page. This function queries a SQL database. I can get the value onto a...
Replies
3
Views
274
Back
Top Bottom