Re: Need Help with PHP Mails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/4/4 Guruâ <nagendra802000@xxxxxxxxx>:
> 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 <rquadling@xxxxxxxxx>
>>
>> 2011/4/4 Guruâ <nagendra802000@xxxxxxxxx>:
>> > 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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux