setup Mail account using SSL and port number

Hello -

I am new to AppleScript. I am trying to modify the basic “create new mail account” script from Apple
for OS X mail in order to automate setting up accounts for users. I want to be able to set up an IMAP
account where I can specify to use SSL, and also the SSL port to be used (it varies). All other aspects of setting
up the account seem fairly straight forward, but I can’t seem to get “use SSL” or “port” to work at
all. Any advice would be greatly apreciated, an example even more so.

Craig Swafford

AppleScript: AppleScript 1.1.0
Operating System: Mac OS X (10.4)

Jacques-

Thank you so much for taking the time to help me with this- I appreciate it
very much. I hope to someday return the favor.

Craig

did you solve that issue? please let me know what you have don to create a new mail account. thank you