Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Get DSN Final-RecipientsIf an email is a delivery-status-notification (DSN), then the GetDsnFinalRecipients method may be called to fetch the full list of Final-Recipients from the message/delivery-status part of the email.
Dim fso, outFile Set fso = CreateObject("Scripting.FileSystemObject") Set outFile = fso.CreateTextFile("output.txt", True) set email = CreateObject("Chilkat.Email2") success = email.LoadEml("dsnSample.eml") If (success = 0) Then MsgBox email.LastErrorText WScript.Quit End If ' sa is a Chilkat.CkStringArray Set sa = email.GetDsnFinalRecipients() If (sa Is Nothing ) Then MsgBox email.LastErrorText Else n = sa.Count For i = 0 To n - 1 outFile.WriteLine(sa.GetString(i)) Next End If outFile.Close |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.