MOTOBIT.COM - ASP upload, IIS utility AccountName Default Property of Account class - Account Name

Default Property | Member of  EmailExport.Account | Changes | Purchase | Download


Name of the mail account. Display name - the name you can see in list of account in Outlook or Outlook Express.


vAccountName = Account.AccountName
Account.AccountName = vAccountName




Registry key: Account Name
Outlook express dialog position: General tab, Mail Account
Outlook express uses pop3 host for this values as default
Account name is required property for each type of account.


Bulk export of email configuration from a database

This sample demonstrates work with IAF (Internet account file) format. It let's you export email account data feom database to configuration fole for Outlook or Outlook express.
Option Explicit

'Create account exporter object
Dim Export
Set Export = CreateObject("EmailExport.Account")

'Set common properties - servers.
Export.SMTPServer = ""
Export.POP3Server = ""

'open connection and recordset with source data.
Dim Conn, RS
Set Conn = GetDBConn("F:\work\Market\DB\market.mdb")

'The source table contains name of the person, email and password
Set RS = Conn.Execute("Select person, email, password from Emails")

Do While Not rs.eof
	'Save private account properties
	Export.AccountName = "Mail-Domain, " & RS("email")
	Export.SMTPEmailAddress = RS("email")
	Export.SMTPDisplayName = RS("person")

	'The server uses Email as a POP3 Logon name 
	Export.POP3UserName = "" & RS("email")
	Export.POP3Password = "" & RS("password")

	'Save the IAF file.
	Export.SaveIAFFile Export.AccountName & ".IAF"


Function GetDBConn(MDBDatabase)
  Dim GlobalConn
    Set GlobalConn = CreateObject("ADODB.Connection")
    GlobalConn.Provider = "Microsoft.Jet.OLEDB.4.0" "Data Source=" & MDBDatabase
  Set GetDBConn = GlobalConn
End Function

Other links for AccountName

Methods of Account class

LoadIAFFile, SaveIAFFile

Properties of Account class

AccountID, AccountName, AdBarUrl, BackupConnectoid, BinaryIAF, ConnectionFlags, ConnectionType, Connectoid, DomainisMSNcom, ExpireDays, GotPollingInterval, HTTPMailFriendlyName, HTTPMailPassword, HTTPMailPolling, HTTPMailPromptforPassword, HTTPMailServer, HTTPMailUserName, HTTPMailUseSicily, IMAPDataDirectory, IMAPDirty, IMAPDraftsFolder, IMAPFullList, IMAPNOOPInterval, IMAPPassword, IMAPPollAllFolders, IMAPPolling, IMAPPort, IMAPPromptforPassword, IMAPRootFolder, IMAPSecureConnection, IMAPSentItemsFolder, IMAPServer, IMAPSvrsideSpecialFolders, IMAPTimeout, IMAPUseLSUB, IMAPUserName, IMAPUseSicily, LeaveMailOnServer, MakeAvailableOffline, NNTPDataDirectory, NNTPDisplayName, NNTPEmailAddress, NNTPOrganizationName, NNTPPassword, NNTPPolling, NNTPPort, NNTPPosting, NNTPPromptforPassword, NNTPReplyToEmailAddress, NNTPSecureConnection, NNTPServer, NNTPSignature, NNTPSplitMessages, NNTPSplitMessageSize, NNTPTimeout, NNTPUserName, NNTPUseSicily, OutlookCacheName, POP3Password, POP3Port, POP3PromptforPassword, POP3SecureConnection, POP3Server, POP3SkipAccount, POP3Timeout, POP3UserName, POP3UseSicily, RegF0033E12, RegF7033813, RegF7033A13, RemoveWhenDeleted, RemoveWhenExpired, ServerReadOnly, ShowAdBar, SMTPDisplayName, SMTPEmailAddress, SMTPOrganizationName, SMTPPassword, SMTPPort, SMTPPromptforPassword, SMTPReplyToEmailAddress, SMTPSecureConnection, SMTPServer, SMTPSignature, SMTPSplitMessages, SMTPSplitMessageSize, SMTPTimeout, SMTPUserName, SMTPUseSicily, TemporaryAccount, UseGroupDescriptions


Export of email account settings to the .iaf file format.


Email Account configuration exporter is an ActiveX/COM library, which let's you work with Outlook and Outlook Express email account configuration in VB script/JScript and other programming languages (t-SQL, C++, VBA, php, c#, Delphi...). You can create POP3, IMAP and HTTP email configurations or NNTP news account and export them directly from the script. You can export all fields, including servers, SPA, user names, emails, passwords, etc.

© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail:

Other Motobit links:   IISTracer, real-time IIS monitor   ASP file upload - upload files to ASP. 
ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object