This short sample creates Outlook configuration file with Gmail servers - SMTP, POP3, secure connection to servers, set username and password, and store the configuration as .iaf file. You can import the file directly to Outlook express and MS Office Outlook. See online demo of this sample.
|Gmail account - Setup outlook configuration with smtp and pop3 using script.|
Option Explicit 'Create account exporter object Dim Export Set Export = CreateObject("EmailExport.Account") 'Name the configuration of account Export.AccountName = "GMail - John Book" 'set bas info for outgoing mail - email and name Export.SMTPEmailAddress = "firstname.lastname@example.org" Export.SMTPDisplayName = "John Book" 'Set login information for POP Export.POP3UserName = "email@example.com" Export.POP3Password = "T00book" 'SMTP use the same password as pop3 Export.SMTPUseSicily = 2 'Set SMTP and POP servers Export.SMTPServer = "smtp.gmail.com" Export.POP3Server = "pop.gmail.com" 'Set secure connection and port for SMTP Export.SMTPSecureConnection = True Export.SMTPPort = 465 'Set secure connection and port for POP3 Export.POP3SecureConnection = True Export.POP3Port = 995 'Save the IAF file. Export.SaveIAFFile Export.AccountName & ".IAF"
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: firstname.lastname@example.org