How to write the mailbox into globalvariable

Am trying to insert Malbox to globalvarible.
is it anyone who can help me…

what and where to insert the smtp and imap?