12.07.2015 Aufrufe

Versenden von E-Mails mit dem 750-842 - Wago

Versenden von E-Mails mit dem 750-842 - Wago

Versenden von E-Mails mit dem 750-842 - Wago

MEHR ANZEIGEN
WENIGER ANZEIGEN
  • Keine Tags gefunden...

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

12 • Verwendete Funktionsbausteine6.2 SMTP ClientWAGO-I/O-PRO – Library - ElementeKategorie:Name:MAIL_SmtpClientTyp: Funktion Funktionsblock X ProgrammName der Bibliothek: MAIL_02.libAnwendbar für: Ethernet controller <strong>750</strong>-<strong>842</strong>Input: Datatyp: Comment:sSmtpServerIP STRING IP Address of the computer on whichthe mail server is runningsFrom STRING Address from the users Mail providersTo STRING e-mail address of the person whoshould receive the messagesSubject STRING This text will be placed in the head ofthe mail formsMessage STRING(255) Message textsAttachmentFileName STRING(255) File name of the attachmentptAttachmentPointer toArray[1..1500]of ByteThis pointer shows to the data sourcefor the attachmentiAttachmentLength INT Number of Bytes in the attachment(max approximately1400 Byte)In_Output Datatyp: Comment:xSend BOOL The message will be send with the risingedge of the start input. This signalwill be automatically reset after executionof the function block.Output Datatyp: Comment:xDoneBOOLwError WORD 0: no error17: attachment data to long33, 65, 97, 129, 257, 305, 337:failure during smtp protocol254: internal error, check your applicationprogram255: ethernet connection to the mailserver not availablesAnswerSTRINGDescription:This function block uses SMTP protocol. The mail may include an attachment.Attachment data is base_64 coded. Therefore it is possible to mail binary data.The mail server must be able to handle Mime V1.0 format.In case of sending a simple mail without attachment, do not use the inputssAttachmentFileName, ptAttachment and iAttachmentLength.The mail function will be started with the rising edge of the input xSend. The outputparameters will indicate the result of the function. The variable xSend will be reset bythe function block.AnwendungshinweisA103002

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!