Hello,
I have set up email notifications using a script. They trigger using the schadule method on the gateway at specific times. Below is what it looks like:
def onScheduledEvent():
subject = "Sample_string"
body = 'Sample_string \n\n'
recipients = ["x@x.com"]
#cc_recipients = ["x@x.com"]
smtpProfile = "EmailProfile"
system.net.sendEmail(smtpProfile=smtpProfile, fromAddr="x@x.com", subject=subject, body=body, html=0, to=recipients)
However, duplicate emails are coming into the mail I don't know what could be the reason for sending two emails instead of one. What is the cause or how can this be debugged?
Another question that comes up when sending emails is what encoding to use to send special characters such as: ą, ć, ę, ł, ń, ó, ś, ź, ż I receive in the message Ä ÄÅÄżźó
Best regards,
Michał