[Email][ Send Email]

Discussion about recent product features & solutions!
Search

Post Reply
6 posts • Page 1 of 1
Indrani125
Posts: 37
Joined: Wed Aug 07, 2019 8:50 am

[Email][ Send Email]

Post by Indrani125 » Fri Aug 28, 2020 4:04 am

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-
Attachments
console.PNG
logview.PNG
mail.PNG

User avatar
kilianvp
Posts: 261
Joined: Fri Jan 16, 2015 9:29 am

Re: [Email][ Send Email]

Post by kilianvp » Sat Aug 29, 2020 12:17 pm

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.

Indrani125
Posts: 37
Joined: Wed Aug 07, 2019 8:50 am

Re: [Email][ Send Email]

Post by Indrani125 » Sun Aug 30, 2020 7:11 am

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
Attachments
mail.PNG

Indrani125
Posts: 37
Joined: Wed Aug 07, 2019 8:50 am

Re: [Email][ Send Email]

Post by Indrani125 » Thu Sep 03, 2020 9:31 am

Email is sent successfully!via using sendmail..thank you!

Indrani125
Posts: 37
Joined: Wed Aug 07, 2019 8:50 am

Re: [Email][ Send Email]

Post by Indrani125 » Tue Sep 15, 2020 5:48 am

Hello all!
is there any way to send timestamp at which I am sending mail via wincc oa?

User avatar
adaneau
Posts: 256
Joined: Tue Feb 21, 2012 8:49 am

Re: [Email][ Send Email]

Post by adaneau » Tue Sep 15, 2020 7:48 am

Hi,

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

BR
Alexanre

Post Reply
6 posts • Page 1 of 1