Home › Forums › Newsletter Plugin Support › Wrong newsletter sender email and name
- This topic has 10 replies, 3 voices, and was last updated 1 year, 2 months ago by Anonymous.
-
AuthorPosts
-
July 4, 2023 at 5:28 pm #303761AnonymousInactive
Hi,
we are currently experiencing a problem with the wordpress plugin : the email sender address and name are not displayed once a scheduled newsletter is sent (the wp_mail default email and username are used instead). This has happened for about three/four weeks now : before everything worked fine, and we have not changed our server SMTP provider and config and we have installed no new plugins. Moreover, everything works fine when sending in test mode or from the delivery diagnostic panel. Only the actual delivery of the newsletters is broken. I have inspected the plugin code for any clue, but everything looks fine. Could you please help us solve the issue ?July 4, 2023 at 5:38 pm #303762StefanoKeymasterHi, you mentioned an SMTP provider, are you using a plugin to connect the blog to the SMTP? When sending in “test mode”, do you mean sending a test from the System panels?
July 4, 2023 at 5:47 pm #303763StefanoKeymasterUhm, another check: newsletters can have custom email and name for the sender, could be your newsletters have that option active?
July 4, 2023 at 6:15 pm #303764AnonymousInactiveHi, and thank you for your help! I do not have a SMTP plugin, but a custom sSMTP config on the server for the php sendmail command. I tested through the prompt on the “Delivery diagnostic” panel and the test button on the newsletter edit page (both to single email and to test subscribers).
July 4, 2023 at 6:16 pm #303765AnonymousInactivecustom email and name for the sender are set and work only in test mode
July 4, 2023 at 6:46 pm #303766StefanoKeymasterHi, the custom email is set on Newsletter main settings and/or on the single newsletter? I’m trying to understand which config. is not pick up, it seems a bug.
July 4, 2023 at 6:54 pm #303767AnonymousInactiveI’ve tried both and I have the same result. Can there be any difference between the test and the actual sending logic ?
July 5, 2023 at 10:47 am #303813AnonymousInactiveAfter further research I think I might have a clue. We have two ssmtp configuration files,
a default and a custom one. In the default one, the
FromLineOverride
parameter is set to NO – the “from”
field value is thus overridden for all outgoing emails. In our custom config
(ssmtp-fo.conf
), theFromLineOverride
parameter is
set to YES – thus allowing any value for the email “from” field.
Ourphp.ini
config file defines the command to be used by
wp_mail
to send emails, and, in our case, which config to use is
part of the specified command:
sendmail_path = /usr/sbin/ssmtp -t -C /etc/ssmtp/ssmtp-fo.conf
.
So, it seems that for the newsletter plugin, sending in test mode uses the
right command and the right configuration, while somehow the actual delivery uses the
default config. If I temporarily change the parameter for the default config
everything works fine.July 5, 2023 at 10:48 am #303814AnonymousInactiveFor security reasons, I would prefer not to change the default ssmtp config.
July 5, 2023 at 11:40 am #303818AnonymousInactiveOk, I think I found the problem. We actually have two php.ini files, one for HTTP usage with FPM and the other for usage through CLI. In the CLI configuration file that is used by the plugin for the actual email deliveries, the
sendmail_path
was not specified, and so the default ssmtp config was used. Thank for your help, we should be able to fix this ourselves.July 11, 2023 at 4:46 pm #304001AnonymousInactiveI’ve tried both and I have the same result.
-
AuthorPosts
- You must be logged in to reply to this topic.