php mail functioni have set up a feedback form that emails the results. my web host says
it will not work if the email is coming from nobody. this is their
answer "you are just going to have to learn to tell your scripts to
generate th emails as someone@yourdmain - not just as nobody."
does anyone know how to make this happen?
Quinonez wrote:
> i have set up a feedback form that emails the results. my web host
> says it will not work if the email is coming from nobody. this is
> their answer "you are just going to have to learn to tell your
> scripts to generate th emails as someon...
PHP Training Institute In Delhi, Live Projects on PHP. Short Term PHP Courses, PHP Scripts, PHP Training with Live Projects.Vserve Global offers short term PHP: Hypertext Preprocessor Training
Course, which is a widely used, general-purpose scripting language
that was originally designed for web development, to produce dynamic
web pages. It can be embedded into HTML and generally runs on a web
server, which needs to be configured to process PHP code and create
web page content from it. It can be deployed on most web servers and
on almost every operating system and platform free of charge.PHP is
installed on over 20 million websites and 1 million web servers.
TOPICS:-
>> Core PHP Language
>> HTML, Cascad...
PHP mail() function problemHi all,
I want to send mails using php mail() function, my web server is
apache on linux i just add this line to my code
ini_set('sendmail_from', 'users@must.edu.eg');
i'm sending emails to users at the same domain ....@must.edu.eg but it
didn't send mail also it don't give any errors
but i'm sure that mail server is working coz when i'm trying to send
mails to the same domain through outlook it works well.
i tried to send to hotmail it sends just one mail but when i tried
again the same happened no mails sent with no error.
where do u think the problem????
noha khalifa wrote:
> Hi all,
>
> I want to send mails using php mail() function, my web server is
> apache on linux i just add this line to my code
> ini_set('sendmail_from', 'users@must.edu.eg');
>
> i'm sending emails to users at the same domain ....@must.edu.eg but it
> didn't send mail also it don't give any errors
>
> but i'm sure that mail server is working coz when i'm trying to send
> mails to the same domain through outlook it works well.
>
> i tried to send to hotmail it sends just one mail but when i tried
> again the same happened no mails sent with no error.
>
> where do u think the problem????
You didn't show your code, so it's impossible to tell.
You shouldn't be using ini_set for 'sendmail_from' - that's just a
default value. Rather, you should be ...
php to php objHi All,
Is there any tool to convert the .php files into its object files in
deploying the files to other's server like java classes are deployed?
Thanks in advance
--AR
John7481 <arjohn7481@hotmail.com> wrote or quoted:
> Is there any tool to convert the .php files into its object files in
> deploying the files to other's server like java classes are deployed?
To what end?
Do you want a PHP obfuscator? They tend not to be needed - since the code
remains on the server.
Do you want a PHP squeezer? Again - since PHP remains on the server
that is of reduced importance.
PHP obfuscators and squeezers are out there - but what exactly
are you looking for?
--
__________
|im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.
With total disregard for any kind of safety measures Tim Tyler
<tim@tt1lock.org> leapt forth and uttered:
> John7481 <arjohn7481@hotmail.com> wrote or quoted:
>
>> Is there any tool to convert the .php files into its object
>> files in deploying the files to other's server like java
>> classes are deployed?
>
> To what end?
>
> Do you want a PHP obfuscator? They tend not to be needed -
> since the code remains on the server.
>
> Do you want a PHP squeezer? Again - since PHP remains on the
> server that is of reduced importance.
>
> PHP obfuscators and squeezers are out there - but what exactly
> are you looking for?
I think he'...
PHP mail () function configurationhi every body,
i have a problem which is when i was checking my mail() form it work
fine but the problem is that the form configuration is not set
correctly, in details:
the from var is not working and the from is set to be my host provider
email is the sender, so they told me to configure the php.ini file and
i dont know what is this file and how to configure it.
thanks in advance
shror
www.s7els7.com
www.beachtoursegypt.com
www.mobidp.com
On Feb 22, 2:32 am, "shror" <shahi...@gmail.com> wrote:
> hi every body,
>
> i have a problem which is when i was checking my...
PHP within PHP...I took over the support of a website that is set up something like
this inside one of the pages:
include_once("header.php");
<?php
//to get the content of the page they do this:
$content = mysql_query("select content etc...);
echo $content;
?>
include_once("footer.php");
I am having problems evaluating any php that is used in the mysql
content. Is there a way to get the mysql withing the mysql to run?
Thank you for your time,
Mandragon
On Sep 17, 12:56 pm, Mandrago...@gmail.com wrote:
> I took over the support of a website that is set up something like
> this inside one of the pages:
>
> include_once("header.php");
>
> <?php
> //to get the content of the page they do this:
> $content = mysql_query("select content etc...);
>
> echo $content;
> ?>
>
> include_once("footer.php");
>
> I am having problems evaluating any php that is used in the mysql
> content. Is there a way to get the mysql withing the mysql to run?
>
> Thank you for your time,
>
> Mandragon
Sorry, The question should read:
"Is there a way to get the php withing the echo $htmlcontent to run?"
Of course you are, $content is a resource. The MySQL Query resource.
try this:
$content = mysql_query('bla bla bla');
while ($row = mysql_fetch_assoc($content)) {
$result[] = $row;
}
$content = $result;
Now you can use $content ;).
In answer to your edit...
eval($co...
php outside php (?)Sounds weird, i know.
What i want/wonder is the following:
PHP can do the next:
<?php
if($foo == 'bar')
{
?>
Ow yeah, foo is bar!
<?php
};
?>
But how can i do the following:
<?php
$foo=
?>
this is what foo looks like.
<?php
};
?>
This way i could edit the content of $foo in DW's design-view.
I hope it's clear enough for you all to understand...
Greetings frizzle.
frizzle wrote:
> But how can i do the following:
>
> <?php
>
> $foo=
>
> ?>
> this is what foo looks like.
> <?php
>
> };
>
> ?>
>
> This way i could edit the content of $foo in DW's design-view.
> I hope it's clear enough for you all to understand...
<?php
ob_start();
?>
this is what foo looks like.
<?php
$foo=ob_get_clean();
?>
--
Justin Koivisto - justin@koivi.com
http://koivi.com
Wow, little late on the reply,
but i still wanted to thank you for your help.
This is exactly what i meant, and it works great! :D
Thanks again.
...
PHP mail function is spammer?I don't understand why any message sent with mail functions is
automatically stored in the spam by Gmail.
Sillaba
While the city slept, Sillaba atona (NOSPAM@tin.it) feverishly typed...
> I don't understand why any message sent with mail functions is
> automatically stored in the spam by Gmail.
>
There could be many and varied reasons...
Are you setting a return path? And is that the same as the address the mail
"comes" from?
Does the mail you are sending have a "from" address that corresponds to the
server you are sending from?
Does the mail you are sending have anything in it that could be construed as
spam? eg, html email with much graphics, little text, etc
Is the server you are running off on any spam lists?
There are more issues to consider, but I can't think of any right now (just
come back from the pub ;-) )
Theoretically, if you are sending a few emails out from the mail function,
you shouldn't suffer too much, unless some of, or all, or more than, the
above are an issue.
Hope that helps,
Nige
--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"
On 2007-08-01, nice.guy.nige <nigel_moss@deadspam.com> wrote:
> Are you setting a return path? And is that the same as the address the mail
> "comes" from?
> Does the mail you are sending have a "from" address th...
PHP mail function #2Hello, can any one help me with the following issue:
I use PHP mail function to send emails, when I receive these
emails I find some exclamation marks (!) added in the text, this is
weird. Can any one help me.
Hello,
on 02/13/2008 05:39 PM Ahmad said the following:
> Hello, can any one help me with the following issue:
>
> I use PHP mail function to send emails, when I receive these
> emails I find some exclamation marks (!) added in the text, this is
> weird. Can any one help me.
It seems you have lines in your messages that need to be encoded
properly with quoted-printable encoding.
You may want to try this MIME message compose and sending class that can
do that for you without having to learn too much about message encoding
standards:
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
...
Problem with Mail()In my PHP 5.0 at home, I'm using the following code to successfully
write to a database and also send out an email. For some reason, when
I take this code to work, it still writes to the database but doesn't
send mail so we're (me and the I.T. guy) trying to find out whether
it's the difference between PHP 4 or something else with email
security.
Does anyone here have experience with mail() in PHP 4 to know whether
PHP 4 had issues with mail() that were fixed with PHP 5 ???? We've
been chasing this from the mail server side at work when perhaps its
some nuance between versions of PHP.
Appreciate any help...
Chris
/* > $to = stripslashes($to); */
$to = stripslashes($to)."\r\n";
$subject = stripslashes($subject);
$text = stripslashes($text);
/* > mail('$to',$subject, $text); */
mail($to, $subject, $text, "From: admin@localhosthome.com");
cover wrote:
> $to = stripslashes($to)."\r\n";
>
Might or might not be the cause, but you should remove the trailing CRLF
here.
JW
On Mon, 27 Feb 2006 22:33:57 +0100, "Janwillem Borleffs"
<jw@jwscripts.com> wrote:
>cover wrote:
>> $to = stripslashes($to)."\r\n";
>>
>
>Might or might not be the cause, but you should remove the trailing CRLF
>here.
Thanks for the reply. I tried it after reading your post and no
change... Thanks again,
cover wrote:
> In my PHP 5.0 at home, I'm using the following co...
when receiving the mail(php mail function), the variable's last value is getting converted to $ or # replacing the digitBelow is my code:
But when I receive the mail, I don't get the last two digits in the $post_url.
I tried displaying the same message on the page and it displayes $post_url properly.
But when I receive the mail, I get the value of $post_url as www.32minutesforum.com/post_clicked.php?id$.
where as I should get www.32minutesforum.com/post_clicked.php?id<some number>.
i.e. www.32minutesforum.com/post_clicked.php?id15
Please help!
File:
<?php
include 'connect.php';
include 'header.php';
echo '<div class="holder_content">';
echo '<section class="group_text">';
echo 'Posted successfully. Check your post <a href="'.$_SESSION['reply_post_id'].'">HERE</a>';
$post_url = $_SESSION['reply_post_id'];
$to= $_SESSION['post_email'];
$subject="You just got a reply for your post in 32minutesforum.com";
$message='
<html>
<head>
<title>32 Minutes Forum</title>
</head>
<body>
<p>You got a reply for your post title: '. $_SESSION['post_title'].'.</p>
<p>Check your post in:<br/>www.32minutesforum.com/'.$post_url.'.</p>
<p>Thanks for using 32minutesforum.com.<br/>
Thank you,<br/>
32minutesforum.com Team.</p>
</body>
</html>';
...
does PHP mail() function depend on sendmail?We're installing a new server at the office and this will be the first
server we set up from which we host our website. We got tired of
dealing with Interland and decided to bring our hosting in-house. The
guy doing most of the work struggled with sendmail for awhile and then
gave up. Now he's installing Postit, or Postfix, or whatever it's
called.
Does the PHP mail function depend on sendmail, or can it use any mta
software?
Hi,
lawrence wrote:
> We're installing a new server at the office and this will be the first
> server we set up from which we host our website. W...
Anyone here follows the mailing list php-general@lists.php.net?I tried posting to it (I am subscribed and have posted to it
successfully before, but this time I got this error message:
>> This message was created automatically by mail delivery software.
>>
>> A message that you sent could not be delivered to one or more of its
>> recipients. This is a permanent error. The following address(es) >>
failed:
>>
>> php-general@lists.php.net
>> SMTP error from remote mail server after end of data:
>> host pair1.php.net [76.75.200.58]: 550 we're manly enough already
WTH...
How to embed youtube player in php mail functioni want to send youtube player through php mail function .
Thanks in advance
ajay escribi�:
> i want to send youtube player through php mail function .
>
> Thanks in advance
I don't think so. But perhaps you want to send a mail message in HTML
format with code to embed a YouTube video, e.g.:
<object width="560" height="340"><param name="movie"
value="http://www.youtube.com/v/0gW25PZZHns&hl=es&fs=1&"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube.com/v/0gW25PZZHns&hl=es&fs=1&"
type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true" width="560" height="340"></embed></object>
I wouldn't even bother. No e-mail client I'm aware of allows to execute
code from a mail message, either JavaScript or browser plugins. Security
is a huge concern nowadays.
As for sending HTML, I'd recommend you use a third-party library like
PHPMailer or SwiftMailer.
--
-- http://alvaro.es - �lvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programaci�n web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
ajay wrote:
> i want to send y...
Best PHP Training | PHP Development Training | PHP Training InstituteTops Technologies provides php and mysql certification courses in
ahmedabad, baroda, surat, Rajkot, Udaipur, Gujarat, india.PHP Training
with MySQL is an introductory course in the PHP and MySQL technology.
Mysql and php training course, php for beginners, sql training
courses, PHP Training courses, php courses, mysql training courses,
php mysql course.
For More Details :- http://www.tops-int.com
...
Upgrade to PHP 5.1 makes trashes to the PHP Functions [EXPERT&isset]Hi All !
Upgrading from PHP 4 something to PHP 5.1 leads to a master piece of
problem.
Our website was working perfectly with coding under PHP 4 or before :
"Our manager did a stupid attempt to upgrade the PHP code to PHP
5.1" ... as a result, many of our pages are not working anymore.
.... if I have a old F150 and replace it with a new F150 : that's still
the same gas so far !!!
Functions that seem not to work anymore are ISSET functions, and may
be more functions ...
Did you have in your previous experiences the problem to upgrade PHP ?
if(isset($_POST[...
Is Php built in function ' imagecreate()' compatible in Php version 5.2.2 ?Hi All,
I have the php version 5.2.2 . When I am using
" $im = imagecreate(......); " I am getting the following message
"Fatal error: Call to undefined function imagecreate() in C:\Program
Files\Apache Software Foundation\Apache2.2\htdocs\server.php on line
32"
I want to know whether "imagecreate()" is compatible in PHP version
5.2.2.?
saikiran.iitkgp@gmail.com wrote:
> Hi All,
>
> I have the php version 5.2.2 . When I am using
>
>
> " $im = imagecreate(......); " I am getting the following message
>
>
> "Fatal error: Call to undefined function imagecreate() in C:\Program
> Files\Apache Software Foundation\Apache2.2\htdocs\server.php on line
> 32"
>
>
> I want to know whether "imagecreate()" is compatible in PHP version
> 5.2.2.?
>
It looks like you're missing the gd extension.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
edit php.ini
;extension=php_gd2.dll to extension=php_gd2.dll
...
php's mail() function // permission problemsHi all.
I'm trying to get php's mail() function working. When I use it at the
moment, I get:
/var/log/messages:
Jul 14 13:23:27 mail sendmail[22171]: NOQUEUE: Milter (mimedefang): to
error state
/usr/local/apache2/logs/error_log:
Program mode requires special privileges, e.g., root or TrustedUser.
I have checked in the PHP newsgroups, and they assure me it is a problem
with my sendmail setup...
I have installed sendmail (8.12.8) as per included instructions and read
the SECURITY file. The following permissions set:
-r-xr-sr-x 1 root smmsp 611974 Mar 5 21:37 /usr/...
PHP 4.3.9 function mail and safe_modeHello,
My PHP 4.3.9 works in safe mode.
can I force change header "return-path:" using mail function?
I try, but it doesn't works.
I change header "From: " successfully, but not "Return-path"
Also I try add 5th parameter "-f my@address" in mail function but it
not working in safe_mode.
Please help me.
Regards,
Peter.
...
SuSE 9.1This one has me stumped.
How did SuSE disable the mail() function in their RPM'd version of PHP?
( This is their install-version of PHP with RPMs not what you download
from PHP.net )
I have an application that emails people a message, and now having installed
my PHP application on my customer's machine it doesn't work, giving an error
message that the mail() function is not defined.
I'd like to know if it's something in the config on the machine that I can
simply turn it on, or do I need to simply recompile PHP? I'd like to not
have to recompile PHP as SuSE have alr...
PHP does not parse .PHP filesI have this problem with PHP that someone might be able to help.
With CLI, I am able to execute my .php files. For example, if I type
"php phpinfo.php" , this works fine on my system.
If I put the phpinfo.php file is in /var/www/html and I try to access
it through the browser, I get the content of the file and not the
execution of the file. Instead of display the info of PHP, I got the
text of the file as:
<?php
phpinfo();
?>
Why?
Thanks
Phong Ho wrote:
>I have this problem with PHP that someone might be able to help.
>
>With CLI, I am able to execute my ....
Php constants in php.iniI am trying to set user_agent = PHP_VERSION in php.ini. In my php.ini
the instructions say that you can use constants in the php.ini file.
The only constants I can get to work, though, are the error level
constants like E_ALL, E_ERROR, E_WARNING, etc., ...
Is anyone aware of some sort of trick to getting others to work?
(I was thinking it would be nice to have the user agent string used by
my Php scripts to use PHP_VERSION in the string.)
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****...
PHP with Indian PHP DevelopersDear all,
If you want to make a PHP web application, or need to <a href="http://
www.virtueinfo.com/php-developers/hire-php-programmers-developers-india.htm">Hire
PHP Developer</a>contact a leading <a href="http://www.virtueinfo.com/
php-developers/php-web-development.htm"> PHP Web Development Compnay</
a>
<a href="http://www.virtueinfo.com/php-developers/php-web-programming-
php-developers-india.htm">Offshore PHP web development India</a>
On Thu, 25 Feb 2010 01:37:02 -0800 (PST), Virtue Info wrote:
> Dear all,
>
>
> If you want to make a PHP web application, or need to <a href="http://
> www.example.com/php-developers/hire-php-programmers-developers-india.htm">Hire
> PHP Developer</a>contact a leading <a href="http://www.example.com/
> php-developers/php-web-development.htm"> PHP Web Development Compnay</
> a>
>
>
><a href="http://www.example.com/php-developers/php-web-programming-
> php-developers-india.htm">Offshore PHP web development India</a>
>
Third time's the charm? Not exactly a ringing endorsement of the skills
you've got available or your testing method reliablity...
--
12. One of my advisors will be an average five-year-old child. Any
flaws in my plan that he is able to spot will be corrected before
implementation.
--Peter Anspach's list of things to do as an ...
Does PHP need the .php extension ?Hi guys,
When I use PHP I give my file the .php extension. I always wondered if it
could be an .htm page with a <script> block that the PHP resides in, the
same way you would do JavaScript. If you can do it that way are there any
benifits to that method ?
Take care,
Cyrus
"Cyrus D." <satan@invalid.org> writes:
> Hi guys,
>
> When I use PHP I give my file the .php extension. I always wondered if it
> could be an .htm page with a <script> block that the PHP resides in, the
> same way you would do JavaScript. If you can do it that way are the...