WordPress.org

Ready to get started?Download WordPress

Forums

E-mail a friend plugin? (33 posts)

  1. kcomphlint
    Member
    Posted 9 years ago #

    Has anyone developed a plugin that would allow a visitor to e-mail a post to a friend?
    basically, take the permalink to the post, and allow a visitor to fill out a form to e-mail it to a friend.

  2. carthik
    Member
    Posted 9 years ago #

    http://www.lesterchan.net/portfolio/programming/wp-email.zip
    Please search in the wiki too :)
    That was at the Plugin page.

  3. kcomphlint
    Member
    Posted 9 years ago #

    i didn't see it there the first time i checked...should've done a ctrl+f for email i guess.
    thanks

  4. tauquatrino
    Member
    Posted 9 years ago #

    ok.. how exactly does one use the plug in? there is no documentation on the website. or am i not looking in the right place?

  5. Anonymous
    Unregistered
    Posted 9 years ago #

    They instructions are in the header of the wp-email.php file. : )

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    I installed it and it works fine, except that I get a bunch of SMTP junk on the confirmation page. (Please go to http://crowhill.net/blog and try it out. You'll see what I mean.)
    How do I suppress that?
    Thanks,
    Greg

  7. piginzen
    Member
    Posted 9 years ago #

    i get the same junk too...i've emailed the lester chan but he has yet to write me back....
    let me know if you ever figure it out...
    i was thinking a simple redirect to the main index.php would suffice after hitting submit, but i've tried that html and it screws everything up...

  8. Dalton
    Member
    Posted 9 years ago #

    I believe you need to turn off debugging mode in the SMTP module. I can't remember exactly, but I got it to work on my site somehow - It's in the wp-includes folder.
    http://www.daltonrooney.com

  9. Anonymous
    Unregistered
    Posted 9 years ago #

    Thanks for the tip!
    In class-smtp.php there are the following lines that might be relevant.
    /**
    * Sets whether debugging is turned on
    * @var bool
    */
    var $do_debug; # the level of debug to perform
    ....
    function SMTP() {
    $this->smtp_conn = 0;
    $this->error = null;
    $this->helo_rply = null;
    $this->do_debug = 0;
    }
    I tried setting $this->do_debug = 1; but that didn't change anything. Any ideas?
    Greg

  10. Anonymous
    Unregistered
    Posted 9 years ago #

    Nope. Got it now.
    In wp-includes/class-phpmailer.php, find this section ...
    /**
    * Sets SMTP class debugging on or off.
    * @var bool
    */
    var $SMTPDebug = true;
    and change "true" to "false"
    Thanks, daltonrooney, for the tip.

  11. piginzen
    Member
    Posted 9 years ago #

    anyidea on having it redirect too, after submitting?

  12. piginzen
    Member
    Posted 9 years ago #

    i changed the true to false and i get this error now:
    Language string failed to load: recipients_failedmat@xxxxx.com
    thanks,
    mat

  13. Beel
    Member
    Posted 9 years ago #

    I have not gotten it to work in 1.3 - though it was in earlier versions of WP. Just a heads up.

  14. piginzen
    Member
    Posted 9 years ago #

    Where did you put that code?

  15. cyskon
    Member
    Posted 9 years ago #

    Hello all,
    Well, my implemetation works. Works in the sense that it says that the article has been sent, but when I look in the queue, it's sitting there. I'm using Microsoft Virtual SMTP Server (yeah I know, I know). When I check the Event Viewer and look the error message there, it says:
    Message delivery to the host '000.000.000.000' failed while delivering to remote yhada yhada
    It goes on to say that
    The SMTP verb 'AUTH' caused the problem
    Any idea how I can fix this?
    In the class-phpmailer.php file, I set SMTPAuth to false.

  16. Anonymous
    Unregistered
    Posted 9 years ago #

    Hello Folks,
    I've got the wp-email going just fine and put in the redirect code (thanks daltonrooney). My only question is the links to the Blog and Blog Post in the sent email aren't clickable. I tried adjusting the variables in class-phpmailer.php to send HTML but that didn't do it. Any idea's? Thank you for any help you can offer.

  17. Biggworm
    Member
    Posted 9 years ago #

    Solved my problem..... thanks.

  18. Anonymous
    Unregistered
    Posted 9 years ago #

    Where can I find a free SMTP server service? Thanks a lot!

  19. trench
    Member
    Posted 9 years ago #

    How did you (or anyone) make the links to the blog clickable?

  20. Anonymous
    Unregistered
    Posted 9 years ago #

    this is great, thanks a lot!

  21. Anonymous
    Unregistered
    Posted 9 years ago #

    quick question
    can spammers abuse this type of service as you are allowing people to send a message via your web form.

  22. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I have certainly received emailed spams when I have ticked a box for 'subscribe to comments'
    That won't be the intention of the spammers though - sending me 1000 spams doesn't raise their googlerank one bit.

  23. brave3
    Member
    Posted 9 years ago #

    Does this hack have flood control and/or check for the same IP used more than once? Does it deliver the e-mail when more than one e-mail address is entered the "friend's e-mail" box? I could see an e-mail spammer using the custom message part to include a link to their site. Maybe we can delete the custom message part of the form and then the spammers would have no reason to use it if they can't include a link to their site... Would that work?
    I'd look at the code/documentation but it looks the plugin site is down right now.

  24. _g_
    Member
    Posted 9 years ago #

    I am not able to get it to work.
    When I click the /wp-email.php?p=id (some number) I get the error
    No Post Matched Your Criteria
    On debugging I found that the file isn't going through the following loop:
    if(isset($_POST['mail'])) {
    I am not sure what this loop is doing and how can i set mail? Do I have to do it from class-phpmailer.php? or somewhere in my server?
    Thanks in advance.

  25. idowens
    Member
    Posted 9 years ago #

    Anyone know if this works in 1.3 yet? or have an email plugin for 1.3?

  26. Beel
    Member
    Posted 9 years ago #

    No and no, not yet -haven't looked into why it is not working (I just commented the link to wp-email out for now).

  27. dss
    Member
    Posted 9 years ago #

    I just tried it in 1.3 and it doesn't even appear in the plugs list for activation.
    further: it provides the file "class-smtp.php" which is already in the wp-includes folder.
    maybe there'll be an update when daddy-o moves up to 1.3?
    who knows.
    i'd love to employ the sending of posts to friends.
    F.

  28. Anonymous
    Unregistered
    Posted 9 years ago #

    Hi,
    instead of "smpt" I used "sendmail " -it's much more easy!
    line 72 of wp-email.php
    $mail->Mailer = "sendmail";
    insetead of
    $mail->Mailer = "smtp";
    nothing else! tzzz - this toke me abaout 2 houers to find out....
    How ever: I have no good feeling... I guesse it's possible to use that function for hacks ...
    Does anybody know some secure solution (for example a limit of 5 Mails per hour from same IP....)

  29. _g_
    Member
    Posted 9 years ago #

    I think the problem in 1.3 is that, the post id is not posted to wp-email.php.

    Has anybody able to solve the problem? Or is there any similar hack/plugin?

  30. nathanielstern
    Member
    Posted 9 years ago #

    hmmm. i didn't feel like i was overwriting anything like an smtp mailer when i put the includes up on my server, but then, i don't remember being born, either...

    anyway, yeh, I'm also having trouble on 1.3/1.5 - i always get the error message that "no posts match that criteria" - so what _g_ is saying (above) make sense. is there a way to "massage" the link to make it look like it's supposed to, and send wp-email the necessary information?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.