We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lando v3.6.2 Drupal 9
Whenever I try to send email with Drupal, I get a "Cannot send email" error.
So with help from platform.sh Slack, I tried a test email:
php -r 'mail("[[email protected]](mailto:[email protected])", "test message", "just testing", "From: [[email protected]](mailto:[email protected])");',
This gave the error: sendmail: /etc/msmtprc: line 6: command host needs an argument.
sendmail: /etc/msmtprc: line 6: command host needs an argument.
A Stack Overflow search led me to this answer, which suggests a problem with msmtprc.
msmtprc
So I did lando ssh; vi /etc/msmtprc:
lando ssh; vi /etc/msmtprc
defaults syslog on timeout off account platform host from account default : platform
I think this is incorrect because when I check vi /etc/msmtprc.psh-tmpl, I see:
vi /etc/msmtprc.psh-tmpl
defaults syslog on timeout off account platform host ${info.get("mail_relay_host_tmpl", "")} from ${info.get("mail_smtp_from", "")} account default : platform
So it seems that the values for host and from are not getting filled in for some reason.
host
from
I don't really know anything about msmtprc so this is as far as I got with debugging.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
lando v3.6.2
Drupal 9
Whenever I try to send email with Drupal, I get a "Cannot send email" error.
So with help from platform.sh Slack, I tried a test email:
This gave the error:
sendmail: /etc/msmtprc: line 6: command host needs an argument.
A Stack Overflow search led me to this answer, which suggests a problem with
msmtprc
.So I did
lando ssh; vi /etc/msmtprc
:I think this is incorrect because when I check
vi /etc/msmtprc.psh-tmpl
, I see:So it seems that the values for
host
andfrom
are not getting filled in for some reason.I don't really know anything about
msmtprc
so this is as far as I got with debugging.The text was updated successfully, but these errors were encountered: