You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2018. It is now read-only.
Setting the domain name doesn't override something in the headers, mailgun still registers the sender as the domain that is entered in the module settings.
The only way i've been able to get the messages to register in the correct log is to change that domain in the module settings; otherwise if there is a mismatch, then it somehow sets the envelope sender as postmaster@ the domain entered;
i spent some time trying to figure this out, but have hit a dead end; When I print_r the wiremail instance, it does show the override for the domain, but then when i see the message in the mailgun log, it still has that envelope sender as the wrong domain. I tried adding a header like this:
$mail->header('Sender', $identity->email);
but that didn't work;
Also i noticed that the fromEmail would be blank and thought that might fix this so i added the method..
/**
* Overrides the fromEmail setting in config
*
* @param string $fromEmail
*/
public function setFromEmail($fromEmail)
{
$this->fromEmail = $fromEmail;
}
but that may be superfluous since this is not affecting the envelope sender.
i think the problem may be that this:
CURLOPT_URL => "{$this->apiUrl}{$this->domain}/messages",
$this->domain is not being overridden by the instance
The text was updated successfully, but these errors were encountered:
basically means that i don't need to override the domain using that method (since it doesn't' work), but need to change the code to make sure the mail from is always set.
private function getDomainName() {
return substr(strrchr($this->mail['from'], "@"), 1);
}
Setting the domain name doesn't override something in the headers, mailgun still registers the sender as the domain that is entered in the module settings.
The only way i've been able to get the messages to register in the correct log is to change that domain in the module settings; otherwise if there is a mismatch, then it somehow sets the envelope sender as postmaster@ the domain entered;
i spent some time trying to figure this out, but have hit a dead end; When I print_r the wiremail instance, it does show the override for the domain, but then when i see the message in the mailgun log, it still has that envelope sender as the wrong domain. I tried adding a header like this:
but that didn't work;
Also i noticed that the fromEmail would be blank and thought that might fix this so i added the method..
but that may be superfluous since this is not affecting the envelope sender.
i think the problem may be that this:
CURLOPT_URL => "{$this->apiUrl}{$this->domain}/messages",
$this->domain is not being overridden by the instance
The text was updated successfully, but these errors were encountered: