1
patagon
article 1.0 email to a friend feature doesnt work?
  • 2007/7/7 17:07

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Hi,

I'm using article module, and the 'email to a friend' doesnt seem to work. After the screen where you set the email to send to, it shows a blank screen (when hitting send) and the email never arrives...is this a local problem or a known bug? any solution or advice?

thanks

2
siweb
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/7 20:49

  • siweb

  • Not too shy to talk

  • Posts: 150

  • Since: 2004/5/2 1


Change line 22 in /Frameworks/transfer/plugin/email/action.email.php

from
require_once "../../../transfer.php";


to
require_once "../../transfer.php";

3
patagon
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/7 21:51

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Thanks siweb, that fixed it

Now, I just noticed that when a user is not logged the email comes from an IP address and the email of the admin, I would like to replace that with info@mysite.com...

I can probably figure that with a lot of blindly trying, but if anyone knows how to do this, it will save me some time/mistakes

4
patagon
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/7 22:36

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


well..it seems its not the admin email that its sending from, because I changed it to something else, and it still sends my mail when a non registered user sends an article...I even cleared the cache (everything on xoops/cache) and it didnt help..

5
Tobias
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/8 5:16

  • Tobias

  • Not too shy to talk

  • Posts: 172

  • Since: 2005/9/13


Maybe you're sending through smtp? Or your webhost uses your registered email if you use sendmail? Perhaps you can experiment a little with the sending method in system settings --> mail? Please don't forget that there was an issue with sendmail lately.

This is just a very rough guess, please disregard if you were there already.

6
patagon
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/8 15:37

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Thanks Tobias! I completely overlooked that setting, I looked everywhere but there

That fixed the part of emails coming from my mail, which was the most important issue, since my mail had nothing to do with the site.

I still see the emails coming from an IP address (outlook shows an IP address, if you go to details it shows the right mail). This is not that important, but I fear users will consider it spam/never realize that IP is the site...its just not as user friendly as a name, but I can live with that for now.

thanks again

7
Tobias
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/8 15:55

  • Tobias

  • Not too shy to talk

  • Posts: 172

  • Since: 2005/9/13


If you fill in all the settings, it should populate the sender address with what you want to be written there. If it doesn't, then there's probably one more setting we're overlooking here.

Other than that: The IP is going to come with the message headers. You can't prevent that, only spoof, but then you're a spammer. But it shouldn't show in the "sender" field if it's set up correctly.

8
patagon
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/8 16:22

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


I filled everything in Preferences »» Mail Setup...when a registered user sends the email it comes as it should (from that username). However when not logged in, it still comes as an IP (which I dont mind showing, but it shouldnt be the sender field, because it may come as spam even if it isnt...)

9
Tobias
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/8 17:06

  • Tobias

  • Not too shy to talk

  • Posts: 172

  • Since: 2005/9/13


OK, I get the same Didn't ever realize.

That comes from /Frameworks/transfer/plugins/email/action.email.php around line 47, where it says:
}else{
    require_once 
XOOPS_ROOT_PATH."/Frameworks/art/functions.php";
    
$xoopsMailer->setFromName(mod_getIP(true));                
}


Change the line with the mod_getIP to something like
$xoopsMailer->setFromName("info@yoursite.org");

and it should work!

10
patagon
Re: article 1.0 email to a friend feature doesnt work?
  • 2007/7/8 17:20

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


mmm...i tried that yesterday and it gave me an error...maybe because of the @? (I'm guessing here)

Login

Who's Online

298 user(s) are online (209 user(s) are browsing Support Forums)


Members: 0


Guests: 298


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits