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-
[Email][ Send Email]
Search
Re: [Email][ Send Email]
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.
-
- Posts: 41
- Joined: Wed Aug 07, 2019 10:50 am
Re: [Email][ Send Email]
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
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
-
- Posts: 41
- Joined: Wed Aug 07, 2019 10:50 am
Re: [Email][ Send Email]
Email is sent successfully!via using sendmail..thank you!
-
- Posts: 41
- Joined: Wed Aug 07, 2019 10:50 am
Re: [Email][ Send Email]
Hello all!
is there any way to send timestamp at which I am sending mail via wincc oa?
is there any way to send timestamp at which I am sending mail via wincc oa?
Re: [Email][ Send Email]
Hi,
You mean inside the mail? You can use anything as subject or content, like getCurrentTime()
BR
Alexanre
You mean inside the mail? You can use anything as subject or content, like getCurrentTime()

BR
Alexanre