| Where | Type | Optional | Default | Description |
|---|---|---|---|---|
| IgnoreErrors | Boolean | yes | fale | Ignore errors in IAF structure. |
| ||
Dim Export
'Create the export object
Set Export = CreateObject("EmailExport.Account")
'Set basic properties.
Export.AccountName = "My New Account"
Export.SMTPEmailAddress = "first.second@mail-domain.com"
Export.SMTPDisplayName = "Some person Name"
Export.SMTPServer = "smtp.mail-domain.com"
Export.POP3Server = "pop3.mail-domain.com"
Export.POP3UserName = "first.second@mail-domain.com"
Export.POP3Password = "Someveryloongpassword"
Response.ContentType = "application/download"
Response.AddHeader "Content-Disposition", "attachment; filename=""My New Account.IAF"""
Response.BinaryWrite Export.BinaryIAF
Response.End |
| ||
| This sample is using ASP Upload object from Motobit software site. You can see this sample working live on Online IAF password recovery page. | ||
Dim Form: Set Form = Server.CreateObject("ScriptUtils.ASPForm")
If Form.State = 0 Then 'Completted
'Create the export object
Dim Export
Set Export = CreateObject("EmailExport.Account")
On Error Resume Next
Export.BinaryIAF = Form("IAFFIle").ByteArray
If err<>0 Then
Response.Write "<font style=color:red>" & Err.Description & "</font>"
Else
Response.Write "<br> AccountName: '<b>" & Export.AccountName & "</b>'"
Response.Write "<br> SMTPPassword: '<b>" & Export.SMTPPassword & "</b>'"
Response.Write "<br> POP3Password: '<b>" & Export.POP3Password & "</b>'"
Response.Write "<br> HTTPMailPassword: '<b>" & Export.HTTPMailPassword & "</b>'"
Response.Write "<br> IMAPPassword: '<b>" & Export.IMAPPassword & "</b>'"
Response.Write "<br> NNTPPassword: '<b>" & Export.NNTPPassword & "</b>'"
End If
End If |