1

I have a TYPO3 website v10 and using powermail forms.
The test mail in installtool is send good.
The mail to user is send good.
The mail to receivers is not send. This is very strange.

Here is my settings from localconf file:

'defaultMailFromAddress' => 'contact@company.gmbh',
'defaultMailFromName' => 'contact@company.gmbh',
'defaultMailReplyToAddress' => 'contact@company.gmbh',
'defaultMailReplyToName' => 'contact@company.gmbh',
'transport' => 'smtp',
'transport_sendmail_command' => '/usr/sbin/sendmail -t -i',
'transport_smtp_encrypt' => false,
'transport_smtp_password' => '123456789123456',
'transport_smtp_server' => 'smtp.office365.com',
'transport_smtp_username' => 'admin@company.gmbh',

Can you please give me some idea why is the email to receivers never works?

Peter Kraume
  • 3,577
  • 2
  • 21
  • 39
Mohamed Masmoudi
  • 547
  • 1
  • 9
  • 23
  • Still the old problem? https://stackoverflow.com/questions/71071698/why-powermail-form-dont-send-emails – Julian Hofmann Mar 05 '22 at 15:19
  • The problem is that the user email works good, but the receivers email does not work. – Mohamed Masmoudi Mar 07 '22 at 14:55
  • 1
    This is nearly always the same problem that can be handled with the comment from the documentation: https://github.com/einpraegsam/powermail/tree/develop/Documentation/FAQ#how-to-solve-spf-defiance – Alex Kellner Jun 26 '22 at 09:18
  • Thank you Alex, yes i already tried to overwrite with the typoscript configuration, i still have the problem that i get only the user email confirmation but, not receive the receiver email. – Mohamed Masmoudi Jun 26 '22 at 10:17
  • Did you really paste the example TypoScript into your "Setup"? If so, can you please paste your code here? – Alex Kellner Jun 27 '22 at 07:25

2 Answers2

1

Things you should check:

  • what is the sender address of the mail which is sent to the receiver? You should avoid to use the email address from the form data as sender address because most mail servers check SPF records nowadays. Better use TypoScript to set a static sender address like info@company.gmbh or no-reply@company.gmbh. To increase comfort for the receiver you could set a reply-to address. See here for details how to do that.
  • is the subject really set? If it's empty no mail is sent.

To track problems further I suggest to use a local development environment like DDEV which provides Mailhog out of the box to intercept all mails which are sent from the webserver. This helps a lot to test mails.

Peter Kraume
  • 3,577
  • 2
  • 21
  • 39
  • Yes i have already check the sender and i did change the email adress but they are both belong to Microsoft365. Maybe this is why SPF check didn't pass? Yes subject is already set. – Mohamed Masmoudi Mar 08 '22 at 08:11
  • The email to the user is working good, The form user have the confirmation email, but the website managers (Receiver emails) don't get any emails. – Mohamed Masmoudi Jun 21 '22 at 16:54
1

If your receiver mail is sent as Bcc: you might have hit an incompatibility of symfony/mailer (which TYPO3 uses from v10+) used with sendmail -i -t (symfony/mailer issue).

You can work around it by using transport_sendmail_command = /usr/sbin/sendmail -bs.

This TYPO3 issue explains it, too.

Jonas Eberle
  • 2,835
  • 1
  • 15
  • 25