php-windows Digest 5 Apr 2011 03:01:22 -0000 Issue 3939

Topics (messages 30584 through 30601):

Re: Need Help with PHP Mails
        30584 by: Richard Quadling
        30585 by: Guru™
        30586 by: Richard Quadling
        30587 by: Guru™
        30588 by: Richard Quadling
        30589 by: Tac Tacelosky
        30590 by: Jacob Kruger

Re: [PHP-DB] Need Help with PHP Mails
        30591 by: Will Lunden
        30592 by: Guru™
        30593 by: Will Lunden

error message appears  "cannot find php_oci8.dll"
        30594 by: Fred Silsbee
        30595 by: Fred Silsbee
        30599 by: Fred Silsbee
        30600 by: Pierre Joye
        30601 by: Fred Silsbee

Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??
        30596 by: Logan L
        30597 by: Ferenc Kovacs
        30598 by: Pierre Joye

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
2011/4/4 Guru™ <nagendra802...@gmail.com>:
> Hi All,
>
> I have this HTML form
>
>
> <style type="text/css">
> <!--
> .style14 {font-size: 24px
> }
> .style14 {font-size: 12px}
> -->
> </style>
> <table width="788" border="0" align="center">
>  <tr>
>    <td width="1023"><form method="post" action="">
>      <table width="648" height="133" border="0" align="center"
> cellpadding="0" cellspacing="0" bordercolor="#000000">
>        <tr>
>          <td width="132" height="44" valign="middle"><div
> align="right"><strong>Your Name</strong></div></td>
>          <td width="491" valign="middle"><input name="party_name"
> type="text" size="50" /></td>
>        </tr>
>        <tr>
>          <td valign="middle"><div align="right"><strong>Contact
> Numbers</strong></div></td>
>          <td height="38" valign="middle"><p align="left">
>            <input name="contact_nos" type="text" size="50" />
>            <span class="style14">(please specify STD code)</span></p></td>
>        </tr>
>        <tr>
>          <td valign="middle"><div
> align="right"><strong>Email</strong><strong> </strong></div></td>
>          <td height="33" valign="middle"><input name="email" type="text"
> size="50" /></td>
>        </tr>
>      </table>
>      <p align="center">
>        <input type="submit" value="submit" name="submit">
>      </p>
>    </form></td>
>  </tr>
> </table>
>
>
>
> ____________________________________________________________________________
>
> What I want is when the user click on the submit button the data from this
> form should directly comes to my email. I tried mail function but not
> working for me. I just need these 3 fields in my mail. Please help me with
> this.
>
> --
> *Best,
> *
> *Guru™*
>

As this is a PHP for Windows mailing list, I assume you actually are
having a problem with PHP on Windows?

And not your HTML code.

As you are in a PHP for Windows mailing list, I assume you are on
Windows, which, as you are now experiencing, doesn't have a mail
server built in, nor an app you can run that provides the same
facility.

See http://uk.php.net/manual/en/book.mail.php for all the lovely
documentation, especially with the runtime configuration options.

Most likely, you've not set these appropriately.

But, in short, you are going to need to tell us what is NOT working
for any realistic help.

Personally, I use HTMLMimeMail5 (now called RMail) from phpguru.com.
PHPMailer is another tool that does a similar job. It may be better,
I've just never used it.

Regards,

Richard.

P.S. "Guru"? Really?
-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
Hi Richard,
I am using simple PHP mail function but, I am unable to send an email to
myself. What I want is when the user click on submit button I should get an
email with the form data.



2011/4/4 Richard Quadling <rquadl...@gmail.com>

> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
> > Hi All,
> >
> > I have this HTML form
> >
> >
> > <style type="text/css">
> > <!--
> > .style14 {font-size: 24px
> > }
> > .style14 {font-size: 12px}
> > -->
> > </style>
> > <table width="788" border="0" align="center">
> >  <tr>
> >    <td width="1023"><form method="post" action="">
> >      <table width="648" height="133" border="0" align="center"
> > cellpadding="0" cellspacing="0" bordercolor="#000000">
> >        <tr>
> >          <td width="132" height="44" valign="middle"><div
> > align="right"><strong>Your Name</strong></div></td>
> >          <td width="491" valign="middle"><input name="party_name"
> > type="text" size="50" /></td>
> >        </tr>
> >        <tr>
> >          <td valign="middle"><div align="right"><strong>Contact
> > Numbers</strong></div></td>
> >          <td height="38" valign="middle"><p align="left">
> >            <input name="contact_nos" type="text" size="50" />
> >            <span class="style14">(please specify STD
> code)</span></p></td>
> >        </tr>
> >        <tr>
> >          <td valign="middle"><div
> > align="right"><strong>Email</strong><strong> </strong></div></td>
> >          <td height="33" valign="middle"><input name="email" type="text"
> > size="50" /></td>
> >        </tr>
> >      </table>
> >      <p align="center">
> >        <input type="submit" value="submit" name="submit">
> >      </p>
> >    </form></td>
> >  </tr>
> > </table>
> >
> >
> >
> >
> ____________________________________________________________________________
> >
> > What I want is when the user click on the submit button the data from
> this
> > form should directly comes to my email. I tried mail function but not
> > working for me. I just need these 3 fields in my mail. Please help me
> with
> > this.
> >
> > --
> > *Best,
> > *
> > *Guru™*
> >
>
> As this is a PHP for Windows mailing list, I assume you actually are
> having a problem with PHP on Windows?
>
> And not your HTML code.
>
> As you are in a PHP for Windows mailing list, I assume you are on
> Windows, which, as you are now experiencing, doesn't have a mail
> server built in, nor an app you can run that provides the same
> facility.
>
> See http://uk.php.net/manual/en/book.mail.php for all the lovely
> documentation, especially with the runtime configuration options.
>
> Most likely, you've not set these appropriately.
>
> But, in short, you are going to need to tell us what is NOT working
> for any realistic help.
>
> Personally, I use HTMLMimeMail5 (now called RMail) from phpguru.com.
> PHPMailer is another tool that does a similar job. It may be better,
> I've just never used it.
>
> Regards,
>
> Richard.
>
> P.S. "Guru"? Really?
> --
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>



-- 
*Best,
*
*Guru™*

--- End Message ---
--- Begin Message ---
2011/4/4 Guru™ <nagendra802...@gmail.com>:
> Hi Richard,
> I am using simple PHP mail function but, I am unable to send an email to
> myself. What I want is when the user click on submit button I should get an
> email with the form data.
>
>
>
> 2011/4/4 Richard Quadling <rquadl...@gmail.com>
>>
>> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
>> > Hi All,
>> >
>> > I have this HTML form
>> >
>> >
>> > <style type="text/css">
>> > <!--
>> > .style14 {font-size: 24px
>> > }
>> > .style14 {font-size: 12px}
>> > -->
>> > </style>
>> > <table width="788" border="0" align="center">
>> >  <tr>
>> >    <td width="1023"><form method="post" action="">
>> >      <table width="648" height="133" border="0" align="center"
>> > cellpadding="0" cellspacing="0" bordercolor="#000000">
>> >        <tr>
>> >          <td width="132" height="44" valign="middle"><div
>> > align="right"><strong>Your Name</strong></div></td>
>> >          <td width="491" valign="middle"><input name="party_name"
>> > type="text" size="50" /></td>
>> >        </tr>
>> >        <tr>
>> >          <td valign="middle"><div align="right"><strong>Contact
>> > Numbers</strong></div></td>
>> >          <td height="38" valign="middle"><p align="left">
>> >            <input name="contact_nos" type="text" size="50" />
>> >            <span class="style14">(please specify STD
>> > code)</span></p></td>
>> >        </tr>
>> >        <tr>
>> >          <td valign="middle"><div
>> > align="right"><strong>Email</strong><strong> </strong></div></td>
>> >          <td height="33" valign="middle"><input name="email" type="text"
>> > size="50" /></td>
>> >        </tr>
>> >      </table>
>> >      <p align="center">
>> >        <input type="submit" value="submit" name="submit">
>> >      </p>
>> >    </form></td>
>> >  </tr>
>> > </table>
>> >
>> >
>> >
>> >
>> > ____________________________________________________________________________
>> >
>> > What I want is when the user click on the submit button the data from
>> > this
>> > form should directly comes to my email. I tried mail function but not
>> > working for me. I just need these 3 fields in my mail. Please help me
>> > with
>> > this.
>> >
>> > --
>> > *Best,
>> > *
>> > *Guru™*
>> >
>>
>> As this is a PHP for Windows mailing list, I assume you actually are
>> having a problem with PHP on Windows?
>>
>> And not your HTML code.
>>
>> As you are in a PHP for Windows mailing list, I assume you are on
>> Windows, which, as you are now experiencing, doesn't have a mail
>> server built in, nor an app you can run that provides the same
>> facility.
>>
>> See http://uk.php.net/manual/en/book.mail.php for all the lovely
>> documentation, especially with the runtime configuration options.
>>
>> Most likely, you've not set these appropriately.
>>
>> But, in short, you are going to need to tell us what is NOT working
>> for any realistic help.
>>
>> Personally, I use HTMLMimeMail5 (now called RMail) from phpguru.com.
>> PHPMailer is another tool that does a similar job. It may be better,
>> I've just never used it.
>>
>> Regards,
>>
>> Richard.
>>
>> P.S. "Guru"? Really?
>> --
>> Richard Quadling
>> Twitter : EE : Zend
>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>
>
>
> --
> Best,
> Guru™
>
>

So, just like I said, you haven't setup PHP's mail configuration
options and/or you don't have a local SMTP server.

Without these being correct, you won't get any email.




-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
Hi,

Here is the PHP script I am using to send email to myself.

<?php


$party_name = $HTTP_POST_VARS['party_name'];
$contact_no = $HTTP_POST_VARS['contact_no'];
$email = 'nagendra802...@gmail.com';


mail($email,$party_name,$contact_no);

?>



2011/4/4 Richard Quadling <rquadl...@gmail.com>

> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
> > Hi Richard,
> > I am using simple PHP mail function but, I am unable to send an email to
> > myself. What I want is when the user click on submit button I should get
> an
> > email with the form data.
> >
> >
> >
> > 2011/4/4 Richard Quadling <rquadl...@gmail.com>
> >>
> >> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
> >> > Hi All,
> >> >
> >> > I have this HTML form
> >> >
> >> >
> >> > <style type="text/css">
> >> > <!--
> >> > .style14 {font-size: 24px
> >> > }
> >> > .style14 {font-size: 12px}
> >> > -->
> >> > </style>
> >> > <table width="788" border="0" align="center">
> >> >  <tr>
> >> >    <td width="1023"><form method="post" action="">
> >> >      <table width="648" height="133" border="0" align="center"
> >> > cellpadding="0" cellspacing="0" bordercolor="#000000">
> >> >        <tr>
> >> >          <td width="132" height="44" valign="middle"><div
> >> > align="right"><strong>Your Name</strong></div></td>
> >> >          <td width="491" valign="middle"><input name="party_name"
> >> > type="text" size="50" /></td>
> >> >        </tr>
> >> >        <tr>
> >> >          <td valign="middle"><div align="right"><strong>Contact
> >> > Numbers</strong></div></td>
> >> >          <td height="38" valign="middle"><p align="left">
> >> >            <input name="contact_nos" type="text" size="50" />
> >> >            <span class="style14">(please specify STD
> >> > code)</span></p></td>
> >> >        </tr>
> >> >        <tr>
> >> >          <td valign="middle"><div
> >> > align="right"><strong>Email</strong><strong> </strong></div></td>
> >> >          <td height="33" valign="middle"><input name="email"
> type="text"
> >> > size="50" /></td>
> >> >        </tr>
> >> >      </table>
> >> >      <p align="center">
> >> >        <input type="submit" value="submit" name="submit">
> >> >      </p>
> >> >    </form></td>
> >> >  </tr>
> >> > </table>
> >> >
> >> >
> >> >
> >> >
> >> >
> ____________________________________________________________________________
> >> >
> >> > What I want is when the user click on the submit button the data from
> >> > this
> >> > form should directly comes to my email. I tried mail function but not
> >> > working for me. I just need these 3 fields in my mail. Please help me
> >> > with
> >> > this.
> >> >
> >> > --
> >> > *Best,
> >> > *
> >> > *Guru™*
> >> >
> >>
> >> As this is a PHP for Windows mailing list, I assume you actually are
> >> having a problem with PHP on Windows?
> >>
> >> And not your HTML code.
> >>
> >> As you are in a PHP for Windows mailing list, I assume you are on
> >> Windows, which, as you are now experiencing, doesn't have a mail
> >> server built in, nor an app you can run that provides the same
> >> facility.
> >>
> >> See http://uk.php.net/manual/en/book.mail.php for all the lovely
> >> documentation, especially with the runtime configuration options.
> >>
> >> Most likely, you've not set these appropriately.
> >>
> >> But, in short, you are going to need to tell us what is NOT working
> >> for any realistic help.
> >>
> >> Personally, I use HTMLMimeMail5 (now called RMail) from phpguru.com.
> >> PHPMailer is another tool that does a similar job. It may be better,
> >> I've just never used it.
> >>
> >> Regards,
> >>
> >> Richard.
> >>
> >> P.S. "Guru"? Really?
> >> --
> >> Richard Quadling
> >> Twitter : EE : Zend
> >> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
> >
> >
> >
> > --
> > Best,
> > Guru™
> >
> >
>
> So, just like I said, you haven't setup PHP's mail configuration
> options and/or you don't have a local SMTP server.
>
> Without these being correct, you won't get any email.
>
>
>
>
> --
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>



-- 
*Best,
*
*Guru™*

--- End Message ---
--- Begin Message ---
2011/4/4 Guru™ <nagendra802...@gmail.com>:
> Hi,
>
> Here is the PHP script I am using to send email to myself.
>
> <?php
>
>
> $party_name = $HTTP_POST_VARS['party_name'];
> $contact_no = $HTTP_POST_VARS['contact_no'];
> $email = 'nagendra802...@gmail.com';
>
>
> mail($email,$party_name,$contact_no);
>
> ?>
>
>
>
> 2011/4/4 Richard Quadling <rquadl...@gmail.com>
>>
>> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
>> > Hi Richard,
>> > I am using simple PHP mail function but, I am unable to send an email to
>> > myself. What I want is when the user click on submit button I should get
>> > an
>> > email with the form data.
>> >
>> >
>> >
>> > 2011/4/4 Richard Quadling <rquadl...@gmail.com>
>> >>
>> >> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
>> >> > Hi All,
>> >> >
>> >> > I have this HTML form
>> >> >
>> >> >
>> >> > <style type="text/css">
>> >> > <!--
>> >> > .style14 {font-size: 24px
>> >> > }
>> >> > .style14 {font-size: 12px}
>> >> > -->
>> >> > </style>
>> >> > <table width="788" border="0" align="center">
>> >> >  <tr>
>> >> >    <td width="1023"><form method="post" action="">
>> >> >      <table width="648" height="133" border="0" align="center"
>> >> > cellpadding="0" cellspacing="0" bordercolor="#000000">
>> >> >        <tr>
>> >> >          <td width="132" height="44" valign="middle"><div
>> >> > align="right"><strong>Your Name</strong></div></td>
>> >> >          <td width="491" valign="middle"><input name="party_name"
>> >> > type="text" size="50" /></td>
>> >> >        </tr>
>> >> >        <tr>
>> >> >          <td valign="middle"><div align="right"><strong>Contact
>> >> > Numbers</strong></div></td>
>> >> >          <td height="38" valign="middle"><p align="left">
>> >> >            <input name="contact_nos" type="text" size="50" />
>> >> >            <span class="style14">(please specify STD
>> >> > code)</span></p></td>
>> >> >        </tr>
>> >> >        <tr>
>> >> >          <td valign="middle"><div
>> >> > align="right"><strong>Email</strong><strong> </strong></div></td>
>> >> >          <td height="33" valign="middle"><input name="email"
>> >> > type="text"
>> >> > size="50" /></td>
>> >> >        </tr>
>> >> >      </table>
>> >> >      <p align="center">
>> >> >        <input type="submit" value="submit" name="submit">
>> >> >      </p>
>> >> >    </form></td>
>> >> >  </tr>
>> >> > </table>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > ____________________________________________________________________________
>> >> >
>> >> > What I want is when the user click on the submit button the data from
>> >> > this
>> >> > form should directly comes to my email. I tried mail function but not
>> >> > working for me. I just need these 3 fields in my mail. Please help me
>> >> > with
>> >> > this.
>> >> >
>> >> > --
>> >> > *Best,
>> >> > *
>> >> > *Guru™*
>> >> >
>> >>
>> >> As this is a PHP for Windows mailing list, I assume you actually are
>> >> having a problem with PHP on Windows?
>> >>
>> >> And not your HTML code.
>> >>
>> >> As you are in a PHP for Windows mailing list, I assume you are on
>> >> Windows, which, as you are now experiencing, doesn't have a mail
>> >> server built in, nor an app you can run that provides the same
>> >> facility.
>> >>
>> >> See http://uk.php.net/manual/en/book.mail.php for all the lovely
>> >> documentation, especially with the runtime configuration options.
>> >>
>> >> Most likely, you've not set these appropriately.
>> >>
>> >> But, in short, you are going to need to tell us what is NOT working
>> >> for any realistic help.
>> >>
>> >> Personally, I use HTMLMimeMail5 (now called RMail) from phpguru.com.
>> >> PHPMailer is another tool that does a similar job. It may be better,
>> >> I've just never used it.
>> >>
>> >> Regards,
>> >>
>> >> Richard.
>> >>
>> >> P.S. "Guru"? Really?
>> >> --
>> >> Richard Quadling
>> >> Twitter : EE : Zend
>> >> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>> >
>> >
>> >
>> > --
>> > Best,
>> > Guru™
>> >
>> >
>>
>> So, just like I said, you haven't setup PHP's mail configuration
>> options and/or you don't have a local SMTP server.
>>
>> Without these being correct, you won't get any email.
>>
>>
>>
>>
>> --
>> Richard Quadling
>> Twitter : EE : Zend
>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>
>
>
> --
> Best,
> Guru™
>
>

That's all well and good.

But ... and this is pretty much me repeating myself, what about your
mail configuration.

Please read http://uk.php.net/manual/en/mail.configuration.php and
tell us what you've got set.



-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
Use PHPMailer, it is MUCH, MUCH, MUCH better than the native mail()
function built into PHP.

If you have a google account, you can set it up to use that as your
mail server, saving you all sorts of headaches involved with sending
mail from Windows, especially from a home machine with a dynamic IP
address and ISP's that block port 25.

Tac

2011/4/4 Richard Quadling <rquadl...@gmail.com>:
> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
>> Hi,
>>
>> Here is the PHP script I am using to send email to myself.
>>
>> <?php
>>
>>
>> $party_name = $HTTP_POST_VARS['party_name'];
>> $contact_no = $HTTP_POST_VARS['contact_no'];
>> $email = 'nagendra802...@gmail.com';
>>
>>
>> mail($email,$party_name,$contact_no);
>>
>> ?>
>>
>>
>>
>> 2011/4/4 Richard Quadling <rquadl...@gmail.com>
>>>
>>> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
>>> > Hi Richard,
>>> > I am using simple PHP mail function but, I am unable to send an email to
>>> > myself. What I want is when the user click on submit button I should get
>>> > an
>>> > email with the form data.
>>> >
>>> >
>>> >
>>> > 2011/4/4 Richard Quadling <rquadl...@gmail.com>
>>> >>
>>> >> 2011/4/4 Guru™ <nagendra802...@gmail.com>:
>>> >> > Hi All,
>>> >> >
>>> >> > I have this HTML form
>>> >> >
>>> >> >
>>> >> > <style type="text/css">
>>> >> > <!--
>>> >> > .style14 {font-size: 24px
>>> >> > }
>>> >> > .style14 {font-size: 12px}
>>> >> > -->
>>> >> > </style>
>>> >> > <table width="788" border="0" align="center">
>>> >> >  <tr>
>>> >> >    <td width="1023"><form method="post" action="">
>>> >> >      <table width="648" height="133" border="0" align="center"
>>> >> > cellpadding="0" cellspacing="0" bordercolor="#000000">
>>> >> >        <tr>
>>> >> >          <td width="132" height="44" valign="middle"><div
>>> >> > align="right"><strong>Your Name</strong></div></td>
>>> >> >          <td width="491" valign="middle"><input name="party_name"
>>> >> > type="text" size="50" /></td>
>>> >> >        </tr>
>>> >> >        <tr>
>>> >> >          <td valign="middle"><div align="right"><strong>Contact
>>> >> > Numbers</strong></div></td>
>>> >> >          <td height="38" valign="middle"><p align="left">
>>> >> >            <input name="contact_nos" type="text" size="50" />
>>> >> >            <span class="style14">(please specify STD
>>> >> > code)</span></p></td>
>>> >> >        </tr>
>>> >> >        <tr>
>>> >> >          <td valign="middle"><div
>>> >> > align="right"><strong>Email</strong><strong> </strong></div></td>
>>> >> >          <td height="33" valign="middle"><input name="email"
>>> >> > type="text"
>>> >> > size="50" /></td>
>>> >> >        </tr>
>>> >> >      </table>
>>> >> >      <p align="center">
>>> >> >        <input type="submit" value="submit" name="submit">
>>> >> >      </p>
>>> >> >    </form></td>
>>> >> >  </tr>
>>> >> > </table>
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > ____________________________________________________________________________
>>> >> >
>>> >> > What I want is when the user click on the submit button the data from
>>> >> > this
>>> >> > form should directly comes to my email. I tried mail function but not
>>> >> > working for me. I just need these 3 fields in my mail. Please help me
>>> >> > with
>>> >> > this.
>>> >> >
>>> >> > --
>>> >> > *Best,
>>> >> > *
>>> >> > *Guru™*
>>> >> >
>>> >>
>>> >> As this is a PHP for Windows mailing list, I assume you actually are
>>> >> having a problem with PHP on Windows?
>>> >>
>>> >> And not your HTML code.
>>> >>
>>> >> As you are in a PHP for Windows mailing list, I assume you are on
>>> >> Windows, which, as you are now experiencing, doesn't have a mail
>>> >> server built in, nor an app you can run that provides the same
>>> >> facility.
>>> >>
>>> >> See http://uk.php.net/manual/en/book.mail.php for all the lovely
>>> >> documentation, especially with the runtime configuration options.
>>> >>
>>> >> Most likely, you've not set these appropriately.
>>> >>
>>> >> But, in short, you are going to need to tell us what is NOT working
>>> >> for any realistic help.
>>> >>
>>> >> Personally, I use HTMLMimeMail5 (now called RMail) from phpguru.com.
>>> >> PHPMailer is another tool that does a similar job. It may be better,
>>> >> I've just never used it.
>>> >>
>>> >> Regards,
>>> >>
>>> >> Richard.
>>> >>
>>> >> P.S. "Guru"? Really?
>>> >> --
>>> >> Richard Quadling
>>> >> Twitter : EE : Zend
>>> >> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>>> >
>>> >
>>> >
>>> > --
>>> > Best,
>>> > Guru™
>>> >
>>> >
>>>
>>> So, just like I said, you haven't setup PHP's mail configuration
>>> options and/or you don't have a local SMTP server.
>>>
>>> Without these being correct, you won't get any email.
>>>
>>>
>>>
>>>
>>> --
>>> Richard Quadling
>>> Twitter : EE : Zend
>>> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>>
>>
>>
>> --
>> Best,
>> Guru™
>>
>>
>
> That's all well and good.
>
> But ... and this is pretty much me repeating myself, what about your
> mail configuration.
>
> Please read http://uk.php.net/manual/en/mail.configuration.php and
> tell us what you've got set.
>
>
>
> --
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
<form action="mailto: addr...@host.com" ...

Some browsers will moan/complain about the webpage rendering an email address, but that's the simplest way to do it.

Aside from that, here's a link to the w3schools.com page on PHP mail sending:
http://www.w3schools.com/PHP/php_mail.asp

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Guru™" <nagendra802...@gmail.com> To: <phpexpe...@yahoogroups.com>; "PHP DB" <php...@lists.php.net>; "php mysql" <php_mysql_usergr...@yahoogroups.com>; <php-wind...@lists.php.net>
Sent: Monday, April 04, 2011 2:21 PM
Subject: [PHP-WIN] Need Help with PHP Mails


Hi All,

I have this HTML form


<style type="text/css">
<!--
.style14 {font-size: 24px
}
.style14 {font-size: 12px}
-->
</style>
<table width="788" border="0" align="center">
 <tr>
   <td width="1023"><form method="post" action="">
     <table width="648" height="133" border="0" align="center"
cellpadding="0" cellspacing="0" bordercolor="#000000">
       <tr>
         <td width="132" height="44" valign="middle"><div
align="right"><strong>Your Name</strong></div></td>
         <td width="491" valign="middle"><input name="party_name"
type="text" size="50" /></td>
       </tr>
       <tr>
         <td valign="middle"><div align="right"><strong>Contact
Numbers</strong></div></td>
         <td height="38" valign="middle"><p align="left">
           <input name="contact_nos" type="text" size="50" />
           <span class="style14">(please specify STD code)</span></p></td>
       </tr>
       <tr>
         <td valign="middle"><div
align="right"><strong>Email</strong><strong> </strong></div></td>
         <td height="33" valign="middle"><input name="email" type="text"
size="50" /></td>
       </tr>
     </table>
     <p align="center">
       <input type="submit" value="submit" name="submit">
     </p>
   </form></td>
 </tr>
</table>



____________________________________________________________________________

What I want is when the user click on the submit button the data from this
form should directly comes to my email. I tried mail function but not
working for me. I just need these 3 fields in my mail. Please help me with
this.

--
*Best,
*
*Guru™*


--- End Message ---
--- Begin Message ---
Hi Guru,

Have you already made the php script that includes the "mail" function? If
there is an error in your php that is preventing the mail function from
working properly, I or someone else may be able to help you correct it if
you were to send the php you have written so far.

-Will
2011/4/4 Guru™ <nagendra802...@gmail.com>

> Hi All,
>
> I have this HTML form
>
>
> <style type="text/css">
> <!--
> .style14 {font-size: 24px
> }
> .style14 {font-size: 12px}
> -->
> </style>
> <table width="788" border="0" align="center">
>  <tr>
>    <td width="1023"><form method="post" action="">
>      <table width="648" height="133" border="0" align="center"
> cellpadding="0" cellspacing="0" bordercolor="#000000">
>        <tr>
>          <td width="132" height="44" valign="middle"><div
> align="right"><strong>Your Name</strong></div></td>
>          <td width="491" valign="middle"><input name="party_name"
> type="text" size="50" /></td>
>        </tr>
>        <tr>
>          <td valign="middle"><div align="right"><strong>Contact
> Numbers</strong></div></td>
>          <td height="38" valign="middle"><p align="left">
>            <input name="contact_nos" type="text" size="50" />
>            <span class="style14">(please specify STD code)</span></p></td>
>        </tr>
>        <tr>
>          <td valign="middle"><div
> align="right"><strong>Email</strong><strong> </strong></div></td>
>          <td height="33" valign="middle"><input name="email" type="text"
> size="50" /></td>
>        </tr>
>      </table>
>      <p align="center">
>        <input type="submit" value="submit" name="submit">
>      </p>
>    </form></td>
>  </tr>
> </table>
>
>
>
>
> ____________________________________________________________________________
>
> What I want is when the user click on the submit button the data from this
> form should directly comes to my email. I tried mail function but not
> working for me. I just need these 3 fields in my mail. Please help me with
> this.
>
> --
> *Best,
> *
> *Guru™*
>

--- End Message ---
--- Begin Message ---
Hi Will,

Below is my final PHP code, and its working now. However this is just a
small piece of the form that I have created. In my original form I have more
then 50 fields and variables. Now I am not sure how to expand this code
having all 50 fields. Can the mail function will take that much fields?

<?php

if(isset($_POST['submit'])) // submit button clicked
   {

$party_name = isset($_POST['party_name'])? $_POST['party_name']:null;
$contact_no = isset($_POST['contact_no'])? $_POST['contact_no']:null;
$pemail = isset($_POST['pemail'])? $_POST['pemail']:null;


$mymail = "nagendra802...@gmail.com";


 if(mail($mymail, "New contact info submitted!","Party: {$party_name}
Contact:  {$contact_no}    Email: {$pemail}"))
      {


 echo 'Mail sent!<br />';
      }
  }





?>

--- End Message ---
--- Begin Message ---

Hi Guru,

Glad to hear it's working! Yes the mail function will be able to handle all the fields, it should be as simple as repeating what you've already done for all of the remaining fields

- Will

On Apr 4, 2011, at 1:09 PM, Guru™ <nagendra802...@gmail.com> wrote:

Hi Will,

Below is my final PHP code, and its working now. However this is just a small piece of the form that I have created. In my original form I have more then 50 fields and variables. Now I am not sure how to expand this code having all 50 fields. Can the mail function will take that much fields?

<?php

if(isset($_POST['submit'])) // submit button clicked
   {

$party_name = isset($_POST['party_name'])? $_POST['party_name']:null;
$contact_no = isset($_POST['contact_no'])? $_POST['contact_no']:null;
$pemail = isset($_POST['pemail'])? $_POST['pemail']:null;


$mymail = "nagendra802...@gmail.com";


if(mail($mymail, "New contact info submitted!","Party: {$party_name} Contact: {$contact_no} Email: {$pemail}"))
      {


 echo 'Mail sent!<br />';
      }
  }





?>



--- End Message ---
--- Begin Message ---
error message appears  "cannot find php_oci8.dll"

appears just after fresh use of browser for a php file.

Occurs only once after boot under Win XP Prof SP3

It did not help to put the file nearly everywhere

C:\
C:\php
C:\php\ext
C:\windows
C:\windows\system32

PHP 5.2.6 using MySQL 5






      

--- End Message ---
--- Begin Message ---
error message appears  "cannot find php_oci8.dll"

appears just after fresh use of browser for a php file.

Occurs only once after boot under Win XP Prof SP3

It did not help to put the file nearly everywhere

________________________________________
forgot to mention that this message does not deter the opening of the web site

short delay and then continuation
message disappears



      

--- End Message ---
--- Begin Message ---
thanks! recently had to rebuild XP Prof and Fedora 14

as I remember, the php_oci8.dll is NOT used by Oracle.

There is NO working,complete set of directions to install php on windows.

I could find NO directions as to what to put on the line isapi in the IIS 5.1 
properties.
get, head, post, debug

--- On Mon, 4/4/11, Justin Dearing <zippy1...@gmail.com> wrote:

From: Justin Dearing <zippy1...@gmail.com>
Subject: Re: [PHP-WIN] error message appears "cannot find php_oci8.dll"
To: "Fred Silsbee" <fredsils...@yahoo.com>
Date: Monday, April 4, 2011, 8:16 PM

Edit your PHP.ini to remove the php_oci8 module. Aldo that DLL belongs in the 
ext subfolder of wherever PHP is.
Finally, if you are using PHP+IIS on windows install 
this: http://phpmanager.codeplex.com/. It will make your life much easier, and 
one of the things it does is let you add and remove modules.


On Mon, Apr 4, 2011 at 3:59 PM, Fred Silsbee <fredsils...@yahoo.com> wrote:

error message appears  "cannot find php_oci8.dll"



appears just after fresh use of browser for a php file.



Occurs only once after boot under Win XP Prof SP3



It did not help to put the file nearly everywhere



________________________________________

forgot to mention that this message does not deter the opening of the web site



short delay and then continuation

message disappears







      




      

--- End Message ---
--- Begin Message ---
I'm not sure where you looked but the manual is full of complete
solution to install php on windows.

Cheers,

On Tue, Apr 5, 2011 at 1:54 AM, Fred Silsbee <fredsils...@yahoo.com> wrote:
> thanks! recently had to rebuild XP Prof and Fedora 14
>
> as I remember, the php_oci8.dll is NOT used by Oracle.
>
> There is NO working,complete set of directions to install php on windows.
>
> I could find NO directions as to what to put on the line isapi in the IIS 5.1 
> properties.
> get, head, post, debug
>
> --- On Mon, 4/4/11, Justin Dearing <zippy1...@gmail.com> wrote:
>
> From: Justin Dearing <zippy1...@gmail.com>
> Subject: Re: [PHP-WIN] error message appears "cannot find php_oci8.dll"
> To: "Fred Silsbee" <fredsils...@yahoo.com>
> Date: Monday, April 4, 2011, 8:16 PM
>
> Edit your PHP.ini to remove the php_oci8 module. Aldo that DLL belongs in the 
> ext subfolder of wherever PHP is.
> Finally, if you are using PHP+IIS on windows install 
> this: http://phpmanager.codeplex.com/. It will make your life much easier, 
> and one of the things it does is let you add and remove modules.
>
>
> On Mon, Apr 4, 2011 at 3:59 PM, Fred Silsbee <fredsils...@yahoo.com> wrote:
>
> error message appears  "cannot find php_oci8.dll"
>
>
>
> appears just after fresh use of browser for a php file.
>
>
>
> Occurs only once after boot under Win XP Prof SP3
>
>
>
> It did not help to put the file nearly everywhere
>
>
>
> ________________________________________
>
> forgot to mention that this message does not deter the opening of the web site
>
>
>
> short delay and then continuation
>
> message disappears
>
>
>
>
>
>
>
>
>
>
>
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--- End Message ---
--- Begin Message ---
I'm not sure where you looked but the manual is full of complete
solution to install php on windows.    NOT
______________________________
this PHP manager is for IIS 7 and that requires windows server 2008

I have Win XP Prof SP3

--- On Tue, 4/5/11, Pierre Joye <pierre....@gmail.com> wrote:

From: Pierre Joye <pierre....@gmail.com>
Subject: Re: [PHP-WIN] error message appears "cannot find php_oci8.dll"
To: "Fred Silsbee" <fredsils...@yahoo.com>
Cc: "Justin Dearing" <zippy1...@gmail.com>, php-wind...@lists.php.net
Date: Tuesday, April 5, 2011, 12:02 AM

I'm not sure where you looked but the manual is full of complete
solution to install php on windows.

Cheers,

On Tue, Apr 5, 2011 at 1:54 AM, Fred Silsbee <fredsils...@yahoo.com> wrote:
> thanks! recently had to rebuild XP Prof and Fedora 14
>
> as I remember, the php_oci8.dll is NOT used by Oracle.
>
> There is NO working,complete set of directions to install php on windows.
>
> I could find NO directions as to what to put on the line isapi in the IIS 5.1 
> properties.
> get, head, post, debug
>
> --- On Mon, 4/4/11, Justin Dearing <zippy1...@gmail.com> wrote:
>
> From: Justin Dearing <zippy1...@gmail.com>
> Subject: Re: [PHP-WIN] error message appears "cannot find php_oci8.dll"
> To: "Fred Silsbee" <fredsils...@yahoo.com>
> Date: Monday, April 4, 2011, 8:16 PM
>
> Edit your PHP.ini to remove the php_oci8 module. Aldo that DLL belongs in the 
> ext subfolder of wherever PHP is.
> Finally, if you are using PHP+IIS on windows install 
> this: http://phpmanager.codeplex.com/. It will make your life much easier, 
> and one of the things it does is let you add and remove modules.
>
>
> On Mon, Apr 4, 2011 at 3:59 PM, Fred Silsbee <fredsils...@yahoo.com> wrote:
>
> error message appears  "cannot find php_oci8.dll"
>
>
>
> appears just after fresh use of browser for a php file.
>
>
>
> Occurs only once after boot under Win XP Prof SP3
>
>
>
> It did not help to put the file nearly everywhere
>
>
>
> ________________________________________
>
> forgot to mention that this message does not deter the opening of the web site
>
>
>
> short delay and then continuation
>
> message disappears
>
>
>
>
>
>
>
>
>
>
>
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org



      

--- End Message ---
--- Begin Message ---
Using PHP via FastCGI is how you use PHP with IIS. I haven't seen it used
much with Apache via this method. I wonder what the benefits and drawbacks
are. Will have to google on this subject.

Also I would like to 'ask the audience' on the difficulty of building your
own Apache binaries. It is not something that I have done before. At work we
have Visual Studio 2008 and 2010.  It is my understanding that the VC9
binaries must be built with 2008.

>From a security perspective, using the ApacheLounge binaries is not an
option for us. It is too dependent on one person whom is not directly
associated with the ASF.

The only other possible option that I thought of was to use Zend Server.
Although I am not totally sure about this, I need to follow up with the
technical lead for that project.

-Logan

On Mon, Mar 28, 2011 at 11:29 AM, Ferenc Kovacs <i...@tyrael.hu> wrote:

> On Mon, Mar 28, 2011 at 6:13 PM, Curtis Tammany <curtis.tamm...@urs.com
> >wrote:
>
> > Extensions in the php.ini file? It was using the ini file that came with
> > PHP
> > 5.3.6.
> >
> > Can anyone get PHP 5.3.6 (from windows.php.net/download) to work with
> > Apache??? The PHP site says it will only work with the VC9 version found
> at
> > apachelounge.com...
> >
> >
> Sure.
> you can do either of the followings:
> - build the VC9 apache binary from source.
> - use the apache binaries provided by apachelounge
> - use the php through cgi or fastcgi, this way you can use the VC9 php
> binary with the VC6 apache binary.
>
> Tyrael
>

--- End Message ---
--- Begin Message ---
On Mon, Apr 4, 2011 at 10:10 PM, Logan L <li...@llbbl.com> wrote:

> Using PHP via FastCGI is how you use PHP with IIS. I haven't seen it used
> much with Apache via this method. I wonder what the benefits and drawbacks
> are. Will have to google on this subject.
>
> Also I would like to 'ask the audience' on the difficulty of building your
> own Apache binaries. It is not something that I have done before. At work
> we
> have Visual Studio 2008 and 2010.  It is my understanding that the VC9
> binaries must be built with 2008.
>
> From a security perspective, using the ApacheLounge binaries is not an
> option for us. It is too dependent on one person whom is not directly
> associated with the ASF.
>
> The only other possible option that I thought of was to use Zend Server.
> Although I am not totally sure about this, I need to follow up with the
> technical lead for that project.
>
> -Logan
>
>
Using fastcgi with apache isn't rocket science either:
with fastcgi you can run your workers under a given user account, you can
use per vhost php.ini, and so fort, general fastcgi/php rules apply.

for the VC9 build howto see http://wiki.apache.org/httpd/Win32VC9Build (I'm
not 100% sure, that it's up-to-date)

some info from the ASF guys on the topic:
http://marc.info/?t=129646489200002&r=1&w=2
http://marc.info/?t=130045840600002&r=1&w=2

William A. Rowe Jr builds the official windows apache binaries, and he is
fine/endorses the apachelounge builds:
https://twitter.com/#!/wrowe/statuses/32125486473678849
https://twitter.com/#!/wrowe/statuses/32141366133788672
https://twitter.com/#!/wrowe/statuses/32141531892682752

btw. Tom Donovan is part of both of the ASF (
http://people.apache.org/list_D.html) and the apacheloung (
http://www.apachelounge.com/profile.php?mode=viewprofile&u=233) so I think
that it is as close to the official builds as you can get.
it would be a good thing if the soon coming up apache 2.4 would come with a
greater variety of windows builds, but it seems that it will skip VC9(if
Rowe won't drop the windows builds entirely), so I think the official
windows build would be incompatible with the php project on the short/mid
term.
:(

fortunately I'm fine with the apachelounge builds.

Tyrael

--- End Message ---
--- Begin Message ---
On Mon, Apr 4, 2011 at 10:10 PM, Logan L <li...@llbbl.com> wrote:

> From a security perspective, using the ApacheLounge binaries is not an
> option for us. It is too dependent on one person whom is not directly
> associated with the ASF.

Many other projects are moving to VC9 builds as well. For example
easyphp moved to VC9 already. Other will follow shortly. If you expect
the ASF to do any move any time soon, then you will be disappointed.


Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--- End Message ---

Reply via email to