I am using swiftmailer module to send email in Drupal 8. But when Iam sending the email via contact form getting the following error

An attempt to send an e-mail message failed, and the following error message was returned : Address in mailbox given [PROJECT NAME] does not comply with RFC 2822, 3.6.2.

The e-mail carried the following headers:

Sender: arimo@gmail.com
Message-ID: <8875c2d70bc051bc28589f887c@IP>
Date: Fri, 01 Jul 2016 18:29:18 +0900
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: Drupal

  • Well, yeah, PROJECT NAME isn't a valid email address...this is a known feature of swiftmailer (github.com/swiftmailer/swiftmailer/issues/382), you probably just need to make sure your Return-Path is set correctly – Clive Jul 1 '16 at 10:06
  • @Clive there is my project name i have change with PROJECT NAME. I have not set that. – amol Jul 1 '16 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.