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 CiviEvent (Moderator: Yashodha Chaku) »
  • Tell a Friend gives an SMTP error
Pages: [1]

Author Topic: Tell a Friend gives an SMTP error  (Read 1460 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Tell a Friend gives an SMTP error
February 22, 2009, 04:35:35 pm
I have an event where I've enabled Tell A Friend.
On the Tell A Friend page, when I press "Send Your Message" I get the following error.

Quote
A error occurred when CiviCRM attempted to send an email (via SMTP). If you received this error after submitted on online contribution or event registration - the transaction was completed, but we were unable to send the email receipt.

This is probably related to a problem in your Outbound Email Settings (Administer CiviCRM » Global Settings » Outbound Email). Possible causes are:

    * Your SMTP Username or Password are incorrect.
    * Your SMTP Server (machine) name is incorrect.
    * You need to use an Port other than the default port 25 in your environment.
    * Your SMTP server is just not responding right now (it is down for some reason).

Check this page for more information.

The mail library returned the following error message: Failed to set sender: @localhost [SMTP: recipient is not recognized (code: 501, response: <@localhost>: no local part)]

Now I know my SMTP settings are OK - the confirmation email is sent correctly.
And I know that my event email settings are OK - the confirmation email is delivered from the sending address I specified.
I've looked through the forums - http://forum.civicrm.org/index.php/topic,5736.0.html is the closest match I could find, and I've double-checked the event email settings.

How does Tell A Friend decide which sending address to use?
How do I set that up?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Tell a Friend gives an SMTP error
February 22, 2009, 10:15:16 pm
Seems to be working fine for me. If your Test Mail is working, I have no idea why you are getting this error.

Kurund
Found this reply helpful? Support CiviCRM

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Tell a Friend gives an SMTP error
February 23, 2009, 12:35:46 am
Quote
If your Test Mail is working, I have no idea why you are getting this error

Kurund,

Thanks for your prompt response. My issue is not with CiviMail (which is how I read your response) but with the Tell A Friend feature for a CiviEvent.

Thanks,
Ken

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Tell a Friend gives an SMTP error
February 23, 2009, 01:19:18 am
Looking at the code in CRM/Friend/BAO/Friend.php it seems to treat as special the case where the event participant has not supplied a first name or last name but just an email address. This is my situation.

(PS: my version is 2.1.2)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Tell a Friend gives an SMTP error
February 23, 2009, 02:07:09 am
By Test mail I meant,  Global Settings >> Outbound Mail , Save and Send Test Mail.

I checked with your scenario still not getting any errors. Can you try to replicate this on http://drupal.demo.civicrm.org.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Tell a Friend gives an SMTP error

This forum was archived on 2017-11-26.