
jazzman1
Staff Alumni-
Content Count
2,713 -
Joined
-
Last visited
-
Days Won
12
jazzman1 last won the day on September 24 2014
jazzman1 had the most liked content!
Community Reputation
91 ExcellentAbout jazzman1

-
Rank
Prolific Member
- Birthday 03/06/1972
Profile Information
-
Gender
Male
-
Location
Mississauga, Canada
-
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
Yep, david is right, since you have a ssh access to this account, login into your terminal and try to call sendmail directly from the shell. Try, again to send me an email with a message od current date/time. The command is: echo `date` | /usr/sbin/sendmail tuparov86@gmail.com // or echo `date` | sendmail tuparov86@gmail.com -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
yes...that's just fine....so I don't see anything wrong and I don't have any idea why you're running into a false result. Try those two solutions if they don't work maybe someone else would help you on this. 1. <?php $email_to = 'tuparov86@gmail.com'; $email_from = $_SERVER['HTTP_HOST']; $email_subject = 'Mail subject'; $email_message = 'Mail message......'; // create email headers $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n"; $headers .= "From: <$email_from>\r\n"; $headers .= "Reply-To: <$email_from> -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
And the name of your domain is "MYDOMAIN.com" or something else....your real domain name? -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
I amended my script above. when you do a 'view source' in the browser, do you see the hostname? I mean the value of $email_from variable? -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
Run the following script and let me see the output of echo command. You are doing something wrong. <?php $email_to = 'customer@email.com'; $email_from = $_SERVER['HTTP_HOST']; $email_subject = 'Mail subject'; $email_message = 'Mail message......'; // create email headers $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n"; $headers .= "From: Sending Name $email_from\r\n"; $headers .= "Reply-To: The Reply To Name $email_from\r\n"; $headers .= "X-Mailer: PHP/" . phpversion()."\r\n"; // call mail function //if(mail($email_to, -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
Try the following script and give me a feedback <?php $email_to = 'customer_address@example.com'; $email_from = $_SERVER['HTTP_HOST']; $email_subject = 'Mail subject'; $email_message = 'Mail message......'; // create email headers $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n"; $headers .= "From: Sending Name <$email_from>\r\n"; $headers .= "Reply-To: The Reply To Name <$email_from>\r\n"; $headers .= "X-Mailer: PHP/" . phpversion()."\r\n"; // call mail function if(mail($email_to, $email_subject, $email_messag -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
No, i want to change all headers string and the mail function as shown below. // create email headers $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n"; $headers .= "From: Sending Name <$email_from>\r\n"; $headers .= "Reply-To: The Reply To Name <$email_from>\r\n"; $headers .= "X-Mailer: PHP/" . phpversion()."\r\n"; // call mail function if(mail($email_to, $email_subject, $email_message, $headers)) echo "MAIL - OK"; else echo "MAIL FAILED"; Make sure that $email_to is the customer mail address and $email_from is t -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
Ops.....sorry it was a typo....the period (.) should be in front of (=) sign, like in others lines exept first one! <?php ini_set('display_startup_errors',1); ini_set('display_errors',1); error_reporting(-1); if(isset($_POST['email'])) { .......... Maybe you have a lot of emails at contact@mydomain.com, check inside this mail box. -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
Change the headers variable in your script with mine and try again. $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n"; $headers=. "From: Sending Name <$email_from>\r\n"; $headers.= "Reply-To: The Reply To Name <$email_from>\r\n"; $headers.= "X-Mailer: PHP/" . phpversion()."\r\n"; Also, rid off in front of the php mail function this suppress (@) error operator and put the following error_reporting functions at top of the mail script you call. @mail($email_to, $email_subject, $email_message, $headers); // to if(mail( -
PHP email form stopped working, please help me fix it !
jazzman1 replied to elena94's topic in PHP Coding Help
Replace this line - @mail($email_to, $email_subject, $email_message, $headers); with - echo ($email_to.','.$email_subject.','.$email_message.','.$headers); and let me see the output. -
How do you debug php? Which debugger do you use?
jazzman1 replied to renatov's topic in Editor Help (Dreamweaver, Zend, etc)
B/s the main purpose of using XDebug is to brake down your script into small pieces and fragments of data making it much more easy to debuging. By using OO design patterns, that's guarantee (in most cases) that, that data it's encapsulating within a set of functions designed to ensure that the scripts are used appropriately and in a human readable format. -
How do you debug php? Which debugger do you use?
jazzman1 replied to renatov's topic in Editor Help (Dreamweaver, Zend, etc)
I find XDebug as not very efficient for myself when I follow object oriented design patterns in my code. It could be very powerful and useful if you're coding in procedural way with bad coding design. I am on Netbeans IDE which is absolutely enough for what I want to do and Vi/VIM as command line interface code editor. -
I'm not sure whether you would be able to achive that in case this VM is a part of the same windows instalation. What's the problem with the bootable linux cd? Another good alternative is Hirens.BootCD.
-
Download any linux life cd distro, boot Linux from the CD, mount the NTFS windows partion, find the directory and delete the file or delete all windows if you prefer
-
He-he, Tony thank you for sharing the link to Silex I've installed Silex few days ago by Composer and i was very impressed how easy and fast I've done everything on my RedHat server I've noticed that Silex is not a real MVC framework like CakePHP, Symfony,Zend, etc...but....for small projects that is very useful, b/s we don't need to use a full functionality of MVC. It gives me only the C (controller) of the MVC pattern for V (view) I can use a "twig" or a flat php and for M (model) I could use a doctrine ORM, if I want it.