CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Bad sender address syntax
Pages: [1]

Author Topic: Bad sender address syntax  (Read 1264 times)

psichael

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1.70-cll
  • PHP version: 5.3.26
Bad sender address syntax
April 03, 2014, 05:32:16 am
Hi, I am trying to send a mailing through CiviCRM, but when I try to send the test mail, I get the following error:

Failed to set sender: b.7.6.181373af205412c9@ [SMTP: Invalid response code received from SMTP server while sending email. This is often caused by a misconfiguration in Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 401, response: 4.1.7 Bad sender address syntax)]

I am able to send a test mail from the SMTP settings page. I also have an account for incoming mail set up with the same address than the "from" address.

Any idea where this can come from?

Thanks, Michael

psichael

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1.70-cll
  • PHP version: 5.3.26
Re: Bad sender address syntax
April 08, 2014, 04:00:20 pm
I solved it by commenting out

if (!empty($headers['Return-Path'])) {
            $from = $headers['Return-Path'];
        }

in civicrm/packages/Mail/smtp.php, as suggested in:

http://forum.civicrm.org/index.php/topic,24242.0.html


sjsamdrake

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Wordpress 4.0
  • MySQL version: unknown
  • PHP version: unknown
Re: Bad sender address syntax
September 18, 2014, 10:55:45 pm
FYI, I have exactly the same problem.  Civicrm 4.5.0 on Wordpress 4.0.  I'll try your workaround, thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Bad sender address syntax

This forum was archived on 2017-11-26.