Purpose This study aims to test the effect of cause-related marketing (CRM), campaign-related marketing and consumer-related antecedents on consumers’ behavioral responses in a developing-country context. Design/methodology/approach A descriptive cross-sectional research design was used. An online questionnaire was distributed, and a sample of 738 Egyptians was obtained. Both the SPSS25 and Smart PLS software were used to report the results. Findings Results revealed that campaign-related antecedents had stronger effects on consumer attitudes than consumer-related antecedents. The most important campaign-related antecedents were brand function fit and hedonic product type. Extrinsic religiosity affected brand attitude and was also the most important predictor of purchase intention. Other predictors of purchase intention were brand attitude, hedonic product type and brand function fit. Furthermore, the effect of brand attitude on purchase intention was positive and significant. Cause involvement and others’ – centered attribution of corporate motives positively moderated the relationship between attitudes and purchase intention. Conversely, skepticism and self-centered attribution of corporate motives negatively moderated brand attitudes and purchase intention relationships. Research implications and suggestions for future research were also presented. Originality/value The study contributes to the existing academic literature by providing a better understanding of the effect of consumer and campaign-related variables on consumer attitudes and purchase intentions in a CRM context. It also helps understand the role of the two dimensions of religiosity in forming attitudes and purchase intentions for CRM campaigns. Furthermore, the research examines two possible moderators of the attitude–behavior gap through the lenses of signaling theory, prosocial behavior theory, theory of reasoned action and attribution theory.