Hi there, i recently installed pgv, when a user signs up they receive this error...
"Message was not sent.
Mailer error: Language string failed to load: connect_host
Message was not sent.
Mailer error: Language string failed to load: connect_host"
after this they get a welcome message... asking them to check their email to confirm the sign up....
maybe im missing something simple... any help would be great thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
to me it looks like something that needs to be fixed... not something that i can solve?? or can i?
do i need to configure phpmailer.php in a text editor or does the pgv wizard do everything that needs to be done...?
by looking at /includes/classes/class_phpmailer.php (if this is the correct php file to inspect) there doesnt seem to be much configured... perhaps this is just a large oversight on my part... but i was assuming that if i configured smtp in the install wizard pgv would be able to send mail when i was done. am i wrong?
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the server
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port
$mail->From = "replyto@yourdomain.com";
$mail->FromName = "Webmaster";
$mail->Subject = "This is the subject";
$mail->AltBody = "This is the body when user views in plain text format"; //Text Body
$mail->WordWrap = 50; // set word wrap
to me it looks like something that needs to be fixed... not something that i can solve?? or can i?
do i need to configure phpmailer.php in a text editor or does the pgv wizard do everything that needs to be done...?
by looking at /includes/classes/class_phpmailer.php (if this is the correct php file to inspect) there doesnt seem to be much configured... perhaps this is just a large oversight on my part... but i was assuming that if i configured smtp in the install wizard pgv would be able to send mail when i was done. am i wrong?
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am really quite confused now... does pgv handle the implementation of phpmailer... or do i need to have a server with that already installed and setup..
where do i find a file with the sort of syntax shown in the last post...?
if i have an apache server with basic php5 and mysql setup, shouldnt pgv's smtp functionality work out of the box (assuming the mail server works)?
perhaps it does if phpmailer is setup?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i'm not sure what you mean by use gmail? i know what gmail is but im not sure if i understand how the smtp server can be used or when this would have been setup...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when i installed phpgedview i used an SMTP server from my ISP... and filled in the install wizard's form.
where is the smtp config info you asked for found in the installation???
in the PGV admin config panel i have this filled in.....
Use SMTP to send external mails : Yes
Outgoing server (SMTP) name smtphm.sympatico.ca (thats my isps server)
Sending domain name : symaptico.ca
SMTP Port: 25
User name : my smtp servers username and password
Password
Sender name : Kyle
thanks again!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Kyle: In the Install Wizard, the SMTP is on Page 4 tab 2. That's the one I raised issue about the "Next" button.
I know Sympatico is fussy being as is Rogers. Do you need authentication? Do you use Port 25 in your email application? Is PGV installed on your Sympatico Site?
I have mine on a web domain that's not associated with my Gmail account. So I have the SMTP for Gmail but Outgoing server as mydomain.com. And, used Port 587.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i tried to configure gmail from the configuration screen of the admin panel
when a user account is requested i get this large set of errors...
ERROR 8: fputs() [function.fputs]: send of 16 bytes failed with errno=32 Broken pipe
0 Error occurred on in function fputs
1 called from line 557 of file class_smtp.php in function SendHello
2 called from line 544 of file class_smtp.php in function Hello
3 called from line 609 of file class_phpmailer.php in function SmtpConnect
4 called from line 520 of file class_phpmailer.php in function SmtpSend
5 called from line 412 of file class_phpmailer.php in function Send
6 called from line 150 of file functions_mail.php in function pgvMail
7 called from line 455 of file login_register.php
Notice: fputs() [function.fputs]: send of 16 bytes failed with errno=32 Broken pipe in /var/www/html/phpgedview/includes/classes/class_smtp.php on line 557
ERROR 8: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Broken pipe
0 Error occurred on in function fputs
1 called from line 210 of file class_smtp.php in function Authenticate
2 called from line 624 of file class_phpmailer.php in function SmtpConnect
3 called from line 520 of file class_phpmailer.php in function SmtpSend
4 called from line 412 of file class_phpmailer.php in function Send
5 called from line 150 of file functions_mail.php in function pgvMail
6 called from line 455 of file login_register.php
Notice: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Broken pipe in /var/www/html/phpgedview/includes/classes/class_smtp.php on line 210
Message was not sent.
Mailer error: SMTP Error: Could not connect to SMTP host.
ERROR 8: fputs() [function.fputs]: send of 16 bytes failed with errno=32 Broken pipe
0 Error occurred on in function fputs
1 called from line 557 of file class_smtp.php in function SendHello
2 called from line 544 of file class_smtp.php in function Hello
3 called from line 609 of file class_phpmailer.php in function SmtpConnect
4 called from line 520 of file class_phpmailer.php in function SmtpSend
5 called from line 412 of file class_phpmailer.php in function Send
6 called from line 150 of file functions_mail.php in function pgvMail
7 called from line 885 of file authentication.php in function addMessage
8 called from line 485 of file login_register.php
Notice: fputs() [function.fputs]: send of 16 bytes failed with errno=32 Broken pipe in /var/www/html/phpgedview/includes/classes/class_smtp.php on line 557
ERROR 8: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Broken pipe
0 Error occurred on in function fputs
1 called from line 210 of file class_smtp.php in function Authenticate
2 called from line 624 of file class_phpmailer.php in function SmtpConnect
3 called from line 520 of file class_phpmailer.php in function SmtpSend
4 called from line 412 of file class_phpmailer.php in function Send
5 called from line 150 of file functions_mail.php in function pgvMail
6 called from line 885 of file authentication.php in function addMessage
7 called from line 485 of file login_register.php
Notice: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Broken pipe in /var/www/html/phpgedview/includes/classes/class_smtp.php on line 210
Message was not sent.
Mailer error: SMTP Error: Could not connect to SMTP host.
any ideas? how do i make sure SMTP authentication is used ? for gmail..?
thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
alright thanks... it says openssl is enabled...
so, if im using ssl and i configure gmail as my smtp... what problems would i run into regarding the errors i most recently posted?
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Use SMTP to send external mails : Yes
Outgoing server (SMTP) name : smtp.gmail.com
Sending domain name : gmail.com
SMTP Port: 465
User name : my username
Password : and password
Sender name : Family site
And it is working fine
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
alright i will try this.... im learning how to update with svn :)
right now i have those settings you described... however i still get errors..
let me update and post back..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i checked out svn revision 5000 and put it in my pgv directory on my webserver... how can i make sure im not using a cached version or something like that... in pgv admin panel my version is 4.2.0...
where can i see if the browser has loaded the 5000 revision files...?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there, i recently installed pgv, when a user signs up they receive this error...
"Message was not sent.
Mailer error: Language string failed to load: connect_host
Message was not sent.
Mailer error: Language string failed to load: connect_host"
after this they get a welcome message... asking them to check their email to confirm the sign up....
maybe im missing something simple... any help would be great thanks!
Did you set up your mail in the configuration?
Did you establish a mail user in your server for the address you established in PGV?
-stephen
Did you set PGV up to use SMTP for mail, during the config process?
I recently changed my setup to use it as well, and have just had a user report the same problem.
Stephen, to answer your question fro my set up - yes, its the same mail server and mail user I use for all my family history contacts.
thanks for the reply.
yes the mail user in the pgv smtp config exsists on the mail server... yes i set up smtp in the config of pgv.
It's a PHP server mis-confiuration.
Do a google search for the phrase
"Language string failed to load"
(include the quotation marks -- that means "exactly this string").
The following hit seems to be most applicable:
http://www.phpbuilder.com/board/showthread.php?t=10355077
hey thanks for such a quick reply...
to me it looks like something that needs to be fixed... not something that i can solve?? or can i?
do i need to configure phpmailer.php in a text editor or does the pgv wizard do everything that needs to be done...?
by looking at /includes/classes/class_phpmailer.php (if this is the correct php file to inspect) there doesnt seem to be much configured... perhaps this is just a large oversight on my part... but i was assuming that if i configured smtp in the install wizard pgv would be able to send mail when i was done. am i wrong?
thanks!
The missing language variable says that: SMTP Error: Could not connect to SMTP host.
Probably you have wrong configuration or if you use gmail:
// example on using PHPMailer with GMAIL
include("class.phpmailer.php");
include("class.smtp.php"); // note, this is optional - gets called from main class if not already loaded
$mail = new PHPMailer();
$body = $mail->getFile('contents.html');
$body = eregi_replace("[\]",'',$body);
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the server
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port
$mail->Username = "yourname@gmail.com"; // GMAIL username
$mail->Password = "password"; // GMAIL password
$mail->From = "replyto@yourdomain.com";
$mail->FromName = "Webmaster";
$mail->Subject = "This is the subject";
$mail->AltBody = "This is the body when user views in plain text format"; //Text Body
$mail->WordWrap = 50; // set word wrap
$mail->MsgHTML($body);
$mail->AddReplyTo("replyto@yourdomain.com","Webmaster");
$mail->AddAttachment("/path/to/file.zip"); // attachment
$mail->AddAttachment("/path/to/image.jpg", "new.jpg"); // attachment
$mail->AddAddress("username@domain.com","First Last");
$mail->IsHTML(true); // send as HTML
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message has been sent";
}
line "$mail->SMTPSecure = "ssl"; // sets the prefix to the server" is missing in functions_mail.php file
Note: "ssl" must be enabled on the PGV server
hey thanks for such a quick reply...
to me it looks like something that needs to be fixed... not something that i can solve?? or can i?
do i need to configure phpmailer.php in a text editor or does the pgv wizard do everything that needs to be done...?
by looking at /includes/classes/class_phpmailer.php (if this is the correct php file to inspect) there doesnt seem to be much configured... perhaps this is just a large oversight on my part... but i was assuming that if i configured smtp in the install wizard pgv would be able to send mail when i was done. am i wrong?
thanks!
sorry for the double post...
i am really quite confused now... does pgv handle the implementation of phpmailer... or do i need to have a server with that already installed and setup..
where do i find a file with the sort of syntax shown in the last post...?
if i have an apache server with basic php5 and mysql setup, shouldnt pgv's smtp functionality work out of the box (assuming the mail server works)?
perhaps it does if phpmailer is setup?
kyle775,
I think that you use gmail.
try the latest SVN changes.
Please let me know if your messages are send or not.
i'm not sure what you mean by use gmail? i know what gmail is but im not sure if i understand how the smtp server can be used or when this would have been setup...
What is your SMTP configuration?
thanks for your help!!!
im not sure where to find this....
when i installed phpgedview i used an SMTP server from my ISP... and filled in the install wizard's form.
where is the smtp config info you asked for found in the installation???
in the PGV admin config panel i have this filled in.....
Use SMTP to send external mails : Yes
Outgoing server (SMTP) name smtphm.sympatico.ca (thats my isps server)
Sending domain name : symaptico.ca
SMTP Port: 25
User name : my smtp servers username and password
Password
Sender name : Kyle
thanks again!
Kyle: In the Install Wizard, the SMTP is on Page 4 tab 2. That's the one I raised issue about the "Next" button.
I know Sympatico is fussy being as is Rogers. Do you need authentication? Do you use Port 25 in your email application? Is PGV installed on your Sympatico Site?
I have mine on a web domain that's not associated with my Gmail account. So I have the SMTP for Gmail but Outgoing server as mydomain.com. And, used Port 587.
thanks for the reply (and isp understanding...)
...haha php and mysql on a customer webspace at sympatico.... not happening :) my PGV is on a server here at my home... i can access it from outside.
sympatico does use authentication for smtp.
so i should setup gmail as my smtp in the config panel in the admin panel..?
does anything else need to be setup on the PGV server for this to work?
thanks again...
i tried to configure gmail from the configuration screen of the admin panel
when a user account is requested i get this large set of errors...
ERROR 8: fputs() [function.fputs]: send of 16 bytes failed with errno=32 Broken pipe
0 Error occurred on in function fputs
1 called from line 557 of file class_smtp.php in function SendHello
2 called from line 544 of file class_smtp.php in function Hello
3 called from line 609 of file class_phpmailer.php in function SmtpConnect
4 called from line 520 of file class_phpmailer.php in function SmtpSend
5 called from line 412 of file class_phpmailer.php in function Send
6 called from line 150 of file functions_mail.php in function pgvMail
7 called from line 455 of file login_register.php
Notice: fputs() [function.fputs]: send of 16 bytes failed with errno=32 Broken pipe in /var/www/html/phpgedview/includes/classes/class_smtp.php on line 557
ERROR 8: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Broken pipe
0 Error occurred on in function fputs
1 called from line 210 of file class_smtp.php in function Authenticate
2 called from line 624 of file class_phpmailer.php in function SmtpConnect
3 called from line 520 of file class_phpmailer.php in function SmtpSend
4 called from line 412 of file class_phpmailer.php in function Send
5 called from line 150 of file functions_mail.php in function pgvMail
6 called from line 455 of file login_register.php
Notice: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Broken pipe in /var/www/html/phpgedview/includes/classes/class_smtp.php on line 210
Message was not sent.
Mailer error: SMTP Error: Could not connect to SMTP host.
ERROR 8: fputs() [function.fputs]: send of 16 bytes failed with errno=32 Broken pipe
0 Error occurred on in function fputs
1 called from line 557 of file class_smtp.php in function SendHello
2 called from line 544 of file class_smtp.php in function Hello
3 called from line 609 of file class_phpmailer.php in function SmtpConnect
4 called from line 520 of file class_phpmailer.php in function SmtpSend
5 called from line 412 of file class_phpmailer.php in function Send
6 called from line 150 of file functions_mail.php in function pgvMail
7 called from line 885 of file authentication.php in function addMessage
8 called from line 485 of file login_register.php
Notice: fputs() [function.fputs]: send of 16 bytes failed with errno=32 Broken pipe in /var/www/html/phpgedview/includes/classes/class_smtp.php on line 557
ERROR 8: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Broken pipe
0 Error occurred on in function fputs
1 called from line 210 of file class_smtp.php in function Authenticate
2 called from line 624 of file class_phpmailer.php in function SmtpConnect
3 called from line 520 of file class_phpmailer.php in function SmtpSend
4 called from line 412 of file class_phpmailer.php in function Send
5 called from line 150 of file functions_mail.php in function pgvMail
6 called from line 885 of file authentication.php in function addMessage
7 called from line 485 of file login_register.php
Notice: fputs() [function.fputs]: send of 12 bytes failed with errno=32 Broken pipe in /var/www/html/phpgedview/includes/classes/class_smtp.php on line 210
Message was not sent.
Mailer error: SMTP Error: Could not connect to SMTP host.
any ideas? how do i make sure SMTP authentication is used ? for gmail..?
thanks.
>Message was not sent.
>Mailer error: SMTP Error: Could not connect to SMTP host.
There is something wrong with your configuration.
NOTE: Sympatico support recommends using port 587 for SMTP with server smtphm.sympatico.ca if you are getting SSL errors using port 25
see: http://www.dslreports.com/faq/sympat/3.1_Email
thanks.. :)
i also get this error when i configure gmail as the smtp server?
leads me to believe something else maybe causing this....
How do i ensure that SSL is working on the server?
thanks again!
kyle
>How do i ensure that SSL is working on the server?
go to Administration->PHPInfo
alright thanks... it says openssl is enabled...
so, if im using ssl and i configure gmail as my smtp... what problems would i run into regarding the errors i most recently posted?
thanks!
For Gmail I use the following config:
Use SMTP to send external mails : Yes
Outgoing server (SMTP) name : smtp.gmail.com
Sending domain name : gmail.com
SMTP Port: 465
User name : my username
Password : and password
Sender name : Family site
And it is working fine
Kyle, you should use the latest svn if you want to use gmail
alright i will try this.... im learning how to update with svn :)
right now i have those settings you described... however i still get errors..
let me update and post back..
i checked out svn revision 5000 and put it in my pgv directory on my webserver... how can i make sure im not using a cached version or something like that... in pgv admin panel my version is 4.2.0...
where can i see if the browser has loaded the 5000 revision files...?