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) »
  • Error on CiviEvent email submit...
Pages: [1] 2

Author Topic: Error on CiviEvent email submit...  (Read 2414 times)

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Error on CiviEvent email submit...
March 09, 2009, 05:58:53 am
H,

I'm getting this error when sending civiEvent confirmation emails on real event submissions. Where I have the username, I'm not sure at all where Civi is picking this information from.

The Global settings for CiviMail are working. I can send newsletters. The username/authentication information in the global settings is not the same as this username being shown. This username is nowhere that I can see in the event settings, nor is it the username I use for the cron job which runs the CiviMail sending (which works too).

Where is this username being set?

Thanks for any help you can offer.

Cheers,

Adam



unrecoverable error
    Sorry. A non-recoverable error has occurred.

    A fatal 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: Validation failed for: thewronguser@


nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on CiviEvent email submit...
March 09, 2009, 06:13:07 am
In other words, thewronguser@ isn't the same thing I have entered in the Outbound SMTP settings. Is there somewhere this is overridden?

Thanks for any advise.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error on CiviEvent email submit...
March 09, 2009, 06:27:07 am
hi,

Quote
Where is this username being set?
If I understood, username means From Name and From Email. You can set it as event specific.
To set for given event go to  Manage Events -> Configure -> Online Registration -> Confirmation Email.
check  'Confirm From Name' and 'Confirm From Email'.

Quote
The Global settings for CiviMail are working. I can send newsletters.
Check twice for same email address that you are using for event registration.

kiran

 
You Are Designed To Choose... Defined By Choice.

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on CiviEvent email submit...
March 09, 2009, 06:39:59 am
Hi Kiran,
Thanks for the reply. This user name isn't the same one as in my Event Configuration -> From email, nor is it the same as in my global mail settings.
Where else could this be pulling from?
the "wrongusername@" mention is really all it shows. I can't find anywhere in those settings where the "wrongusername@" is entered, let alone entered without a domain at the end?

I'm quite confused.

Thank you ...

Adam

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Error on CiviEvent email submit...
March 09, 2009, 06:59:31 am
hi,

If you are php savvy need to debug variable values passed to CRM_Utils_Mail::send( );
CiviCRM debug tools might help you. (make sure to take backup of code files. )

kiran
« Last Edit: March 09, 2009, 07:08:23 am by kiran »
You Are Designed To Choose... Defined By Choice.

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on CiviEvent email submit...
March 09, 2009, 09:22:50 am
I just don't understand how civiMail is working and this event mailing isn't.

Isn't it the same thing?

No, I'm not that PHP savvy.

Hmm, has anyone got any further settings I can look @?

Thank you for any help,

Adam

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error on CiviEvent email submit...
March 09, 2009, 11:33:22 am

this is not a config issue, most likely it is a bug in the code. hence kiran asked you to help debugging it (since we cannot reproduce it on demo :(

In your event registration, is the name of the person registering: "wrongusername@"?

if not, is there anyone in the db with "wrongusername@"

i assume u can reproduce this consistently. Do u have ssh access to your system? if so, jump on IRC (http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true) and we can take a look. I'm assuming u r on 2.1. Would be good for u to upgrade to 2.2

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on CiviEvent email submit...
March 09, 2009, 05:05:12 pm
Are the DB requirements the same for 2.1 and 2.2? Is the upgrade difficult? Will my data and events make it through?

I was on IRC for a bit there but had to go.

The user is actually the drupal username of the user who published the event.

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on CiviEvent email submit...
March 09, 2009, 05:40:55 pm
And does 2.2 work with Drupal 5?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error on CiviEvent email submit...
March 09, 2009, 08:49:27 pm

i assume u r on civicrm 2.0 (since u r on drupal 5)

no 2.1/2.2 are not compatible with drupal 5.

since we dont support 2.0, u'll need to potentially hire someone to help you find and fix the issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on CiviEvent email submit...
March 10, 2009, 08:35:34 am
So - this was released with out the main email confirmation for event registrants not working?
If someone can help me with this, it would be awesome. I have a lot of clients using this software.

A live registration for a client is out there broken. No kittens have died though ;)

I guess this also means D5 isn't supported any more? Eek!

Can someone give me a clue as to where that piece of data should be coming from? Somewhere in the code, it's referring to the user who created the event and using that email to send as opposed to the SMTP email settings. This is a large bummer to have to report to a client after praising so much.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error on CiviEvent email submit...
March 10, 2009, 08:44:59 am

It works (or seems to work) in most cases. There is a bug in a few instances that triggers the behavior u mention (i think there was a forum post similar to this but we did not get this far)

The mail is sent from: CRM/Event/BAO/EventPage.php, line 164

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on CiviEvent email submit...
March 10, 2009, 10:44:37 am
Is there still a chance you'd log in and take a peek?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error on CiviEvent email submit...
March 10, 2009, 10:46:32 am

sorry, no.

you might want to get some help from http://civicrm.org/professional/. The folks at Web Access should be able to help debug and provide a patch if needed

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on CiviEvent email submit...
March 13, 2009, 06:56:39 am
The full error message is:
Sorry. A non-recoverable error has occurred.

A fatal 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: Validation failed for: thewronguser@

Return to home page.

Then I get an email from the system with "additional camper information". So this means the email is working.
I looked in to that area in the code which you mentioned was sending the email and I hard coded the right information. I still got the same error, same information showing.

A client has this system. They're live. Every single applicant is having issues. Is there another area in the code I can look?

I hardcoded values in:
            CRM_Utils_Mail::send( $receiptFrom, <<---
                                  $displayName,  <<--- i hardcoded these two and still got wronguser@ in the error message.
                                  $email,
                                  $subject,
                                  $message,
                                  CRM_Utils_Array::value( 'cc_confirm', $values['event_page'] ),
                                  CRM_Utils_Array::value( 'bcc_confirm', $values['event_page'] )
                                  );

Thank you for any help you can offer.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error on CiviEvent email submit...

This forum was archived on 2017-11-26.