Click or drag to resize

IUserMailUser Property

The users mail username. CRM 5.web saves this if user has specified it.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
string MailUser { get; set; }

Property Value

Type: String
String - the users mail username
Examples

MailUser

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO, assoc , User
Set objSO = CreateObject("SuperOfficeDB.Database")
if objSO.login ("<userid>", "<password>") = true then
    Set assoc = objSO.getassociate(objSO.UserAssociateId)
    set user = objSO.admin.getuser(assoc)
    msgbox user.mailuser
    'set a new password for the user since property is write-only
    user.mailpassword = "123Test"
    user.save
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also