IgM is the main antibody produced in an initial attack by a specific bacterial or viral antigen, while IgG is usually produced in later infections caused by the same agent. Here, CD40LG is linked to infection.