Page 1 of 1

[Email][ Send Email]

Posted: Fri Aug 28, 2020 6:04 am
by Indrani125
Hi,
I am trying to send simple email through WinCC OA. I have written a script from help file and replaced SMTP name,IP address according to mine..using my official email as sender mail and personal mail as receiver.I am running that script in control manager but getting error as attached.Can anyone tell.why this error is coming?
I am using below script from help file modified as per my SMTP host name and IP address-

Re: [Email][ Send Email]

Posted: Sat Aug 29, 2020 2:17 pm
by kilianvp
Almost all the questions you ask you could solve yourself if you read the help correctly. The first parameter of emSendMail is the SMTP server. I doubt very much that "prij" is your SMTP server. WinCC OA does not provide a SMTP server! So you must use an external one. In your position I would rather use the function sendMail. It has more functionality.

Re: [Email][ Send Email]

Posted: Sun Aug 30, 2020 9:11 am
by Indrani125
Hi,
Actually I attached code from help file..I had already replaced it with mine..but I was getting error as attached..i am sharing my code snipet too..i have not used sendmail..will also try that..I had used my outlook mail as sender and gmail as receiver..I had closed outlook also while running program as suggested by help file

Re: [Email][ Send Email]

Posted: Thu Sep 03, 2020 11:31 am
by Indrani125
Email is sent successfully!via using sendmail..thank you!

Re: [Email][ Send Email]

Posted: Tue Sep 15, 2020 7:48 am
by Indrani125
Hello all!
is there any way to send timestamp at which I am sending mail via wincc oa?

Re: [Email][ Send Email]

Posted: Tue Sep 15, 2020 9:48 am
by adaneau
Hi,

You mean inside the mail? You can use anything as subject or content, like getCurrentTime() :)

BR
Alexanre