Closed (works as designed)
Project:
SMTP Authentication Support
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2015 at 06:36 UTC
Updated:
25 Sep 2020 at 00:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vishnujayadhevan commentedMe too have the same issue
Comment #3
danielbeeke commentedWe had this issue, for us it was the setting inside system.mail.yml. The interface.default was still on php_mail instead of SMTPMailSystem
/config/active/system.mail.yml (this file is probably on a different place or in database)
Comment #4
enrico200165 commentedI see to have the same problem, in the log I find
User error: Invalid placeholder (!name) in string: The name that all e-mails will be from. If left blank will use a default of: !name in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (linea 240 di /var/www/digipmi/core/lib/Drupal/Component/Render/FormattableMarkup.php).
this despite having set the from address in the module config and in system configuration,
I also modified system.mail.yaml to contain
interface:
default: 'SMTPMailSystem'
Comment #5
ptmkenny commentedComment #6
estoyausenteAdded related issue. Placeholders items can be related.
Comment #7
estoyausenteWith the patch uploaded in https://www.drupal.org/node/2651976 this issue seems that is resolved too.
Comment #8
estoyausenteComment #9
ptmkenny commentedI still got the message:
Error sending email (from abc@xyz.com to test@example.com with reply-to not set).
after applying the patch referenced in #7.
Watchdog showed this as a "mail" error, which was also accompanied by an "smtp" error:
Error sending e-mail from abc@xyz.com to test@example.com : SMTP Error: Could not connect to SMTP host.
In this case, I had the SMTP port wrong. Changing the port to the correct one resolved both errors. If the error is a wrong SMTP port, "reply-to not set" is a misleading error message.
Comment #10
richardu commentedI had these same errors/messages and was not able to send mail. I solved the problem by installing the Mail System module and setting SMTP mail as default formatter plugin and as default sender plugin.
(on Drupal 8.0.3). I did not apply any patch.
Edit: when I configured another e-mail account, the messages returned and no mail was sent. In debugging mode, I saw that my credentials were rejected. The log messages themselves are not very helpful to find out what really is the problem. With the correct credentials, the messages were no longer created.
Comment #11
estoyausenteI think that this module not work correctly without some patches that are in RTBC, and I have some problems to test the module with these errors :S
I hope that we commit these patchs asap and then we try to resolve related issues (like this).
Comment #12
ToxaViking commentedHave the same issue. Core - 8.1.1
Comment #13
asrobComment #14
kashandarash commentedComment #15
kashandarash commentedComment #16
pazhyn commentedThis issue is reproducing only if the email is not send by server.
Settings for Gmail:
smtp.gmail.com
port 465
your login and password
The error message is "Error sendign email"
'Reply-To not set' is additional information, not the reason of the error.
Comment #17
dpovshed commentedThank you for your comments ##9, 10, 16
This is clear that error message about 'reply-to' is just side-effect of inability to sent a message. I also see if I miconfigured server parameter I see 3 messages with 'error' severity. Most important is 'Unable to sent email'. Two others are just less important, including one with 'reply-to'.
Let us close the issue then. In case topicstarter is absolutely sure that reply-to impact email sending in some way, please feel free to reopen the issue with more detail.
Comment #18
yeskmilo commentedHi all, #3 solved this issue for me.
Update default value to "SMTPMailSystem" on system.mail.yml
Comment #19
finex commentedSame bug here, Gmail smtp server, Drupal 8.4.2 and SMTP 8.x-1.0-beta3. The patch #3 doesn't fix the problem.
Comment #20
zuhair_akI had the same issue, but the problem was SMTP was not default mail system & empty body in mail. The issue is not related to reply-to being empty.
Comment #21
myvo commentedResolved it by 2 steps in Drupal 8:
1. Config the SMTP server correctly at /admin/config/system/smtp
2. Go to Mail System configuration (/admin/config/system/mailsystem) then add the SMTP module with formatter is SMTP Mailer and Sender is SMTP mailer too. See the attached image
Comment #22
charlie1volley commentedHi,
I am very new to configuring email in Drupal, so perhaps this is a no brainer, but thought I'd share my experience...
I was getting this same error when configuring any of these 3 modules for SMTP email: SMTP, Swiftmailer, or Easy Email (which is dependent on Swiftmailer). When I changed the Basic Site Settings (/admin/config/system/site-information) email address to match the SMTP email address, all 3 modules' test emails worked. If your site email address is different than the SMTP email address and changing the site email address is an option for you, maybe this can help (but I can't explain why...) :-) -c
Comment #23
jami3z commentedI have tried #21 but I am still getting the same error (#22 is correct).
Comment #24
paradizex commentedI was also getting the same error after upgrading the module.So, after investigating, I discovered that our organization's mail server didn't support TLS. So, turned it OFF in the smtp settings and emails started working again