Alpha Video Training
Results 1 to 3 of 3

Thread: Saving and restoring Email settings

  1. #1
    Member
    Real Name
    Mark Williams
    Join Date
    Dec 2005
    Posts
    318

    Default Saving and restoring Email settings

    I have the following two scripts to save and restore email settings in the registry. We use this whenever we install the app on a new machine or install a new version of Alpha Five.

    For some reason it doesn't work any longer. Is there something glaringly wrong with this logic?

    Thanks

    Save Current Email Settings
    Code:
    dim user_mail as P
    dim temp_mail as C
    user_mail.foo = ""
    temp_mail = file.to_property(a5.Get_Path()+chr(92)+"mail.txt",user_mail)
    
    dim user_rmail as P
    user_rmail.dummy = ""
    property_from_string(user_rmail, temp_mail)
    
    registry.save_settings("init\email",user_rmail)

    Restore Email Settings from File
    Code:
    user_data.mail = ""
    :registry.load_settings("init\email",user_data)
    file.From_property(a5.Get_Path()+chr(92)+"mail.txt",user_data)
    Last edited by Mark Williams; 10-19-2011 at 01:23 PM.

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Saving and restoring Email settings

    Am I missing something? Your scripts seem identical.

  3. #3
    Member
    Real Name
    Mark Williams
    Join Date
    Dec 2005
    Posts
    318

    Default Re: Saving and restoring Email settings

    Quote Originally Posted by Stan Mathews View Post
    Am I missing something? Your scripts seem identical.
    Oops - original post has been edited...

Similar Threads

  1. Email Settings
    By Dave Mac Callum in forum Alpha Five Version 9 - Desktop Applications
    Replies: 9
    Last Post: 03-21-2011, 07:26 PM
  2. email settings
    By Atta in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 11-17-2010, 11:00 PM
  3. Email settings
    By Clunes in forum Alpha Five Version 10 - Desktop Applications
    Replies: 0
    Last Post: 11-03-2010, 05:33 AM
  4. Saving & Restoring variable values
    By lerg in forum Alpha Five Version 10 - Desktop Applications
    Replies: 2
    Last Post: 09-17-2010, 04:53 PM
  5. Email settings work in Outlook 2003, fail in A5V9 built-in email
    By rmcgaffic in forum Alpha Five Version 9 - Desktop Applications
    Replies: 12
    Last Post: 05-16-2009, 01:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •