Coldfusion mail() object set authentication

176 views Asked by At

I'm receiving a DMARC policy error when I try to send an email using ColdFusion. I believe the issue is because I'm not fully authenticating the email. How can I authenticate passing server, username, and password using cfscript mail().

mailerService = new mail();
mailerService.setTo("[email protected]");
mailerService.setFrom("[email protected]");
mailerService.setSubject("TEST");
mailerService.setType("html");
var mailBody = "This is a Test";
mailerService.send(body=mailBody);

Is there a mailService.server, .password, and .user?

Thanks

0

There are 0 answers