
zfred09
Members-
Posts
68 -
Joined
-
Last visited
Never
Everything posted by zfred09
-
It is possible to write html to the file, check out the ob_start(output buffering) function on php.net. As far as writing PHP to the file I have no clue.
-
Language string failed to load: recipients_failed
zfred09 replied to zfred09's topic in PHP Coding Help
Bump, does anyone know how to fix this? -
Language string failed to load: recipients_failed
zfred09 replied to zfred09's topic in PHP Coding Help
Ok I just took out the ini_set function and put this in [code]require("class.phpmailer.php"); require("class.smtp.php"); require("phpmailer.lang-en.php");[/code] About 75% of the time the email sends but ever so often I get the [color=red]Language string failed to load: recipients_failed[/color] error message. -
Language string failed to load: recipients_failed
zfred09 replied to zfred09's topic in PHP Coding Help
I have it extracted onto my desktop and then I uploaded the class.phpmailer.php and class.smtp.php and the language file to my remote server with ftp. Heres the object code, [code]class PHPMailer { ///////////////////////////////////////////////// // PUBLIC VARIABLES ///////////////////////////////////////////////// /** * Email priority (1 = High, 3 = Normal, 5 = low). * @var int */ var $Priority = 3; /** * Sets the CharSet of the message. * @var string */ var $CharSet = "iso-8859-1"; /** * Sets the Content-type of the message. * @var string */ var $ContentType = "text/plain"; /** * Sets the Encoding of the message. Options for this are "8bit", * "7bit", "binary", "base64", and "quoted-printable". * @var string */ var $Encoding = "8bit"; /** * Holds the most recent mailer error message. * @var string */ var $ErrorInfo = ""; /** * Sets the From email address for the message. * @var string */ var $From = "[email protected]"; /** * Sets the From name of the message. * @var string */ var $FromName = "Support"; /** * Sets the Sender email (Return-Path) of the message. If not empty, * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode. * @var string */ var $Sender = ""; /** * Sets the Subject of the message. * @var string */ var $Subject = ""; /** * Sets the Body of the message. This can be either an HTML or text body. * If HTML then run IsHTML(true). * @var string */ var $Body = ""; /** * Sets the text-only body of the message. This automatically sets the * email to multipart/alternative. This body can be read by mail * clients that do not have HTML email capability such as mutt. Clients * that can read HTML will view the normal Body. * @var string */ var $AltBody = ""; /** * Sets word wrapping on the body of the message to a given number of * characters. * @var int */ var $WordWrap = 0; /** * Method to send mail: ("mail", "sendmail", or "smtp"). * @var string */ var $Mailer = "mail"; /** * Sets the path of the sendmail program. * @var string */ var $Sendmail = "/usr/sbin/sendmail"; /** * Path to PHPMailer plugins. This is now only useful if the SMTP class * is in a different directory than the PHP include path. * @var string */ var $PluginDir = ""; /** * Holds PHPMailer version. * @var string */ var $Version = "1.73"; /** * Sets the email address that a reading confirmation will be sent. * @var string */ var $ConfirmReadingTo = ""; /** * Sets the hostname to use in Message-Id and Received headers * and as default HELO string. If empty, the value returned * by SERVER_NAME is used or 'localhost.localdomain'. * @var string */ var $Hostname = "";[/code] -
Language string failed to load: recipients_failed
zfred09 replied to zfred09's topic in PHP Coding Help
That gave me the error message [color=red]Fatal error: Cannot instantiate non-existent class: phpmailer in /blah.php on line 22[/color] -
I get this error when sending email, I'm using phpmailer, windows os, and my smtp server is remote. How do I fix this error? [code] ini_set("include_path", ".:/path/to/phpmailer/dir"); ini_set("include_path", ".:/path/to/smtp/dir"); ini_set("include_path", ".:/path/to/phpmailer.lang-en/dir"); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "smtp.mydomain.com"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "username"; // SMTP username $mail->Password = "pass"; // SMTP password $mail->From = "[email protected]"; $mail->AddAddress("[email protected]"); $mail->Subject = "Blah"; $mail->Body = " Email text"; [/code]
-
I posted this once in third-party scripts, but no one seems to look at those threads so I reposted here. Anyways when using phpmailer through a smtp I get this error message: [color=red]Mailer Error: Language string failed to load: recipients_failed[/color] I have searched for at least a couple hours for the solution to this problem, have tried many different fixes and still no result. How do I fix this problem? [code] ini_set("include_path", ".:/path/to/phpmailer/dir"); ini_set("include_path", ".:/path/to/smtp/dir"); ini_set("include_path", ".:/path/to/phpmailer.lang-en/dir"); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "smtp.mydomain.com"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "username"; // SMTP username $mail->Password = "pass"; // SMTP password $mail->From = "[email protected]"; $mail->AddAddress("[email protected]"); $mail->Subject = "Blah"; $mail->Body = " Email text"; [/code]
-
When using phpmailer through a smtp I get this error message: [color=red]Mailer Error: Language string failed to load: recipients_failed[/color] I have searched for at least a couple hours for the solution to this problem, have tried many different fixes and still no result. How do I fix this problem? [code] ini_set("include_path", ".:/path/to/phpmailer/dir"); ini_set("include_path", ".:/path/to/smtp/dir"); ini_set("include_path", ".:/path/to/phpmailer.lang-en/dir"); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "smtp.mydomain.com"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "username"; // SMTP username $mail->Password = "pass"; // SMTP password $mail->From = "[email protected]"; $mail->AddAddress("[email protected]"); $mail->Subject = "Blah"; $mail->Body = " Email text"; [/code]
-
Hi all, first off I don't have a problem sending mail via a php script, but rather the problem is that when sent it shows up as spam in my inbox. Suggestions?
-
[SOLVED] Keeping Form Values After Error Message
zfred09 replied to zfred09's topic in PHP Coding Help
Alright thanks for the tip. -
[SOLVED] Keeping Form Values After Error Message
zfred09 replied to zfred09's topic in PHP Coding Help
How do you go about doing that? And injecting it into where, the form inputs? -
[SOLVED] Keeping Form Values After Error Message
zfred09 replied to zfred09's topic in PHP Coding Help
What does sanitizing mean? -
[SOLVED] Keeping Form Values After Error Message
zfred09 replied to zfred09's topic in PHP Coding Help
Ah I get it, ya all my validation is done with php. -
[SOLVED] Keeping Form Values After Error Message
zfred09 replied to zfred09's topic in PHP Coding Help
What does validating server side mean? -
[SOLVED] Keeping Form Values After Error Message
zfred09 replied to zfred09's topic in PHP Coding Help
Thanks for the help so far, I will try to use it to figure something out and will post again if I have problems. -
Ok I have multiple forms (for registration) and if someone were to fill out all the information but have an error in what they entered, how do I keep the form values they entered in the form after they get an error message? Basically so they don't have to re-type all their information after one little error. The script goes from the registration page to a process page, and if there is an error it sends the user back to the registration page with the error message.
-
Problem Solved thanks, one thing tho I had to change it to header("Location: page.php") putting the quotes in front of location instead of after.
-
Ok if I have this if($blah==true){goto(page.php);} what is the function for automatically forwarding you to a page if the condition is true? Thanks.