Menu

SMTP/edit change mail

Help
macalter
2010-01-14
2013-05-30
  • macalter

    macalter - 2010-01-14

    I wanted to test my "edit only" account so logged in and made a change. Logged out and logged in as administrator. MyGedView Portal block shows this error. I know last thread about SMTP I went to configure and saw that the information was incorrect. However everytime I tried to change, it didn't save. Wouldn't let me enter Yahoo info, only my web host.

    ERROR 2: fsockopen() : unable to connect to smtp.mail.yahoo.com:110 (Connection timed out)
    0 Error occurred on in function fsockopen
    1 called from line 122 of file class.smtp.php in function Connect
    2 called from line 810 of file class.phpmailer.php in function SmtpConnect
    3 called from line 706 of file class.phpmailer.php in function SmtpSend
    4 called from line 576 of file class.phpmailer.php in function Send
    5 called from line 154 of file functions_mail.php in function pgvMail
    6 called from line 526 of file authentication.php in function addMessage
    7 called from line 86 of file review_changes.php in function review_changes_block
    8 called from line 1 of file index.php(276) : eval()'d code in function eval
    9 called from line 276 of file index.php

    Warning: fsockopen() : unable to connect to smtp.mail.yahoo.com:110 (Connection timed out) in /home/myuser/mydomain.com/tree/includes/class.smtp.php on line 122

    Fatal error: Call to undefined method SMTP::getError() in /home/myuser/mydomain.com/tree/includes/class.phpmailer.php on line 1923

    My config.php file reads:
    $PGV_SMTP_ACTIVE = true; //- Enable to use of SMTP to send external emails
    $PGV_SMTP_HOST = "smtp.mail.yahoo.com"; //- The domain name of the SMTP smarthost
    $PGV_SMTP_HELO = "yahoo.ca"; //- The local SMTP domain name
    $PGV_SMTP_PORT='110'; //- The port number talk to the SMTP smarthost
    $PGV_SMTP_AUTH = true; //- Enable the use of SMTP authorization
    $PGV_SMTP_AUTH_USER = "myemail@yahoo.ca"; //- User name for SMTP authorization
    $PGV_SMTP_AUTH_PASS = "mypassword"; //- Password for SMTP authorization
    $PGV_SMTP_FROM_NAME = " Site Coordinator"; //- Sender name

    YES the SMTP is yahoo.com but email is yahoo.ca. This is only way my email works in my email client.

     
  • roland_l

    roland_l - 2010-01-15

    Hello mcalter -

    Hoping the following insights will help you resolve your e-mail issues. It appears Yahoo! has changed the requirements to access their e-mail servers. Different ports are now required if you wish to use a "client" program for your mail. ( I would assume this applies to the configuration we use in PGV but cannot be certain. I offer this as an observation only.)

    Anyway, for home users to access e-mail through a client program they must first have a Yahoo ! MailPlus account (about $20US/year) and activate the following settings in the program: - ** Access Yahoo! Mail Plus ** http://help.yahoo.com/l/us/yahoo/mail/original/mailplus/pop/pop-14.html (You will notice in Help at Yahoo! that nowhere is regular Yahoo! Mail mentioned anymore.)

    Like you, I have a local e-mail client and go online for my mail sometimes. Yahoo! made these changes (silently) within the last year, probably as a way to further reduce Spam and cut down on people using theire servers as a "pass-through". If you compare the settings in your client e-mail profile you might see this same settings. For e-mail "clients", it used to be that you would authenticate on the POP side and your SMTP would "just work". Not so anymore. Don't ask me why, but sometimes the client is able to get through with the old settings in spite of these new requirements. Just the same, port 110 is normally the default port for SMTP and does not require (or allow) any authentication. Conversely, port 465 is used for secured e-mail transmission.

    Keep at it ! I know you are a "seasoned" person in the PGV forum and you may find a combination that works for you. Otherwise, the error message is clear - "Connection Timed Out" - means you can't get in. Good Luck and let us know your results.

    RL

     
  • roland_l

    roland_l - 2010-01-15

    Update -
    Typing is faster that brain - <port 110 is normally the default port for SMTP> should be
    port  25 is normally the default port for SMTP  (for the discussion above).

    ps:  port 110 is the default port for POP

     
  • macalter

    macalter - 2010-01-15

    roland_1: Hopefully Yahoo.ca won't catch on and start charging for mail forwarding! I'll play with the port numbers and see if that works or, just make up an email account to use (with my web domain) and forward it to the Yahoo one. Will let you know if it works (yahoo)

     
  • roland_l

    roland_l - 2010-01-15

    Hello mcalter -

    As long as no one is telling, here is similar info for Yahoo! Canada Mail - http://help.yahoo.com/l/ca/yahoo/mail/pop/pop-03.html

    I think you're closer to your goal than I thought, just check your ports!

    ps. Personally, I prefer the Domain email> then Forward option because it's one less interface, ID, and password to remember ! PLUS (no pun intended), because we pay for it, it Better work!

    RL

     
  • macalter

    macalter - 2010-01-15

    cannot change the SMTP config. My file is writable. Every save reverts back to original, wrong setup. Mail won't send (tested by sending email to my other user account). Errors refer to settings I changed but obviously it's not writing to config.php file.

     
  • macalter

    macalter - 2010-01-15

    When I typed the dummy email and clicked Send, watched in the browser status what was happening. It was trying to send from my PGV domain, not the SMTP yahoo email. I set config.php to port 465, authenticate and SSL per Yahoo's instructions.

     
  • roland_l

    roland_l - 2010-01-15

    Hi macalter -

    We tried ! But wait, you say the Config is writeable. Normally this is not the case as PGV warns you to NOT leave it so (- unless it is kept outside of the standard PGV file structure?) What are the permissions on the Config file as it exists now?

    Until the "big guns" chime in on this one, perhaps editing a local copy of your Config and then put it back up on your site for testing is the work-around?  Otherwise, looks like a bug to me now. I'm sure others will want to know what PGV version you are using for further troubleshooting.

    RL

     
  • macalter

    macalter - 2010-01-15

    Oh, no, don't be alarmed, I set the permissions to 777 to write changes as that's the only way it can be done. Then I return to 444 to make it safe. I know others have asked about SMTP but as mine was working and I didn't quite follow the thread, don't want to play and break something. I use the email when I'm logged in as "edit only" at a library or somewhere public. That's what generated the problem, notifying me (admin) of a change to approve.

    Also want to use it to send to visitors, of course.

    Version is 4.2.3 release except for a couple of svn files (bug fix).

     

Log in to post a comment.