TwistPHP Documentation

disableSenderChecking

File path: dist/twist/Core/Models/Email/Create.model.php
Namespace: Twist\Core\Models\Email
Extends:

disableSenderCheckingDisable sender field checking, the sender field wil be set to the same as the from field.
This will eliminate for the most part the Outlook warning: (from_name "sender" on behalf of "from_email")
when the MX and SPF records of the domain don't match the servers IP.
Alternatively you can set a custom sender, see "setCustomSender" function.

Return Values

void — No return information has been documented for this function.

Example

<?php
//Call the function disableSenderChecking with the example vars
$resCreate = new \Twist\Core\Models\Email\Create();
$resCreate -> disableSenderChecking();