Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invite friends does not send mail (Trac #1266) #1266

Closed
elgg-gitbot opened this issue Feb 16, 2013 · 7 comments
Closed

Invite friends does not send mail (Trac #1266) #1266

elgg-gitbot opened this issue Feb 16, 2013 · 7 comments

Comments

@elgg-gitbot
Copy link

Original ticket http://trac.elgg.org/ticket/1266 on 39717824-12-21 by trac user chispoteado, assigned to trac user chispoteado.

Elgg version: 1.6

A fresh 1.6 install can't send invite friends mail from profile. I'm using the default installation plugin and I can't find if I have to configure it someway somewhere..

It appears to work fine. Show me a success message, but no mail is sent out. I've tried with several mail addresses.

Other system mails work normally.

Can anyone point me in the right direction?

@elgg-gitbot
Copy link
Author

Milestone changed to Unscheduled by trac user chispoteado on 39717829-10-15

@elgg-gitbot
Copy link
Author

trac user chispoteado wrote on 39717903-07-02

Sorry, this is a support request, not a bug report. I'm going to close this and publish it in the community groups.

Replying to chispoteado:

A fresh 1.6 install can't send invite friends mail from profile. I'm using the default installation plugin and I can't find if I have to configure it someway somewhere..

It appears to work fine. Show me a success message, but no mail is sent out. I've tried with several mail addresses.

Other system mails work normally.

Can anyone point me in the right direction?

@elgg-gitbot
Copy link
Author

Attachment added by trac user chispoteado on 39717963-07-31: elggdiagnostic.txt

@elgg-gitbot
Copy link
Author

trac user chispoteado wrote on 39717972-09-26

Sorry again, I was a bit confused with the difference between a bug report and a support request. Now I'm shure that it is a bug report. So I'm attaching a Diagnostics report from my clean installation of Elgg 1.6.

@elgg-gitbot
Copy link
Author

brettp wrote on 39718556-07-04

You were correct in closing this. This is a support request as this isn't a bug in Elgg Core. I've confirmed invitefriends is still working in 1.6. You'll have to configure PHP and a mail server separately in order to have Elgg send email. The community site and the docs have more information about this.

@elgg-gitbot
Copy link
Author

trac user mrclay wrote on 40041110-12-13

Mod that shipped with 1.6.1 indeed breaks if you list more than one address. The code currently effectively glues all addresses together, making one invalid address.

The trivial fix is to replace lines 18,19:

$emails = str_replace("\n","",$emails);
$emails = explode("\n",$emails);

With:

$emails = preg_split('/\\s+/', $emails, -1, PREG_SPLIT_NO_EMPTY);

@elgg-gitbot
Copy link
Author

brettp wrote on 40084962-10-22

Fixed in http://trac.elgg.org/extensions/changeset/1187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant