AccountName

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Default Property 
          Member of  EmailExport.Account 

Description

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

Syntax

vAccountName = Account.AccountName
Account.AccountName = vAccountName

Returns

String

Remarks

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.

Examples

 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 = "smtp.mail-domain.com"
Export.POP3Server = "pop3.mail-domain.com"


'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"

	RS.MoveNext
Loop



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

Methods of Account class

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

EmailExport.Account

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

EmailExport

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 – 2006 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 1.01.8