• Not sure why you have the variable 'Server' set up with a Datatype of Object.

    Second

    Not sure if just saying 'aquireconn' in the foreach will mean you arfe testign connectivity.

    Email sending : use the sendmail task.