RE: [PHP] Email Form
Lucky for me I have my own server :) Thanks for the info, I will try it and report if I see any difference. Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP code examples : http://www.weberdev.com PHP Web Logs : http://www.weberblogs.com/ PHP & MySQL Forums : http://www.weberforums.com/ Learn PHP Playing Trivia http://www.webertrivia.com Web Development Index http://www.weberindex.com Web Templates http://www.webertemplates.com Search for PHP Code from your browser http://toolbar.weberdev.com -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 11:21 PM To: Weber Sites LTD Cc: 'Igal Rubinstein'; 'Thomas Bonham'; php-general@lists.php.net Subject: RE: [PHP] Email Form On Fri, January 20, 2006 9:02 am, Weber Sites LTD wrote: > I'm trying to understand why this is good from a SPAM point of view. > I'm guessing that anyone can just add this when sending his own spam > no? Hey, I'm not claiming that the spam criteria are rational, nor that any halfway intelligent spammer could not "beat them" I'm just telling you what *IS* happening today. :-) Note, however, that many ISPs will not allow you to use that fifth argument, or, more accurately, will configure sendmail to choke if you try to use it with "-f" to set the Return-path: because you are not a "trusted user" -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Email Form
On Fri, January 20, 2006 9:02 am, Weber Sites LTD wrote: > I'm trying to understand why this is good from a SPAM point of view. > I'm guessing that anyone can just add this when sending his own spam > no? Hey, I'm not claiming that the spam criteria are rational, nor that any halfway intelligent spammer could not "beat them" I'm just telling you what *IS* happening today. :-) Note, however, that many ISPs will not allow you to use that fifth argument, or, more accurately, will configure sendmail to choke if you try to use it with "-f" to set the Return-path: because you are not a "trusted user" -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Email Form
Hi Richard, I'm trying to understand why this is good from a SPAM point of view. I'm guessing that anyone can just add this when sending his own spam no? berber -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:37 PM To: Weber Sites LTD Cc: 'Thomas Bonham'; php-general@lists.php.net Subject: RE: [PHP] Email Form On Thu, January 19, 2006 3:25 pm, Weber Sites LTD wrote: > Check out : > > http://www.weberdev.com/get_example-336.html > > http://www.weberdev.com/get_example-1557.html > > In general you need to add the From header : > > Mail($To,$subject,$body,"From:[EMAIL PROTECTED]"); In the ideal world, you also will want to upgrade and use the FIFTH (optional) argument to http://php.net/mail and provide a Return-path: header that matches your From: line with "[EMAIL PROTECTED]" Otherwise, you lose points in spam filters, and some recipients will probably not ever see the email. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Email Form
i have en experience of getting blocked by yahoo when i didn't use the extra headers On 1/20/06, Weber Sites LTD <[EMAIL PROTECTED]> wrote: > Hi Richard, > > I'm trying to understand why this is good from a SPAM point of view. > I'm guessing that anyone can just add this when sending his own spam no? > > berber > > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 11:37 PM > To: Weber Sites LTD > Cc: 'Thomas Bonham'; php-general@lists.php.net > Subject: RE: [PHP] Email Form > > On Thu, January 19, 2006 3:25 pm, Weber Sites LTD wrote: > > Check out : > > > > http://www.weberdev.com/get_example-336.html > > > > http://www.weberdev.com/get_example-1557.html > > > > In general you need to add the From header : > > > > Mail($To,$subject,$body,"From:[EMAIL PROTECTED]"); > > In the ideal world, you also will want to upgrade and use the FIFTH > (optional) argument to http://php.net/mail and provide a Return-path: > header that matches your From: line with "[EMAIL PROTECTED]" > > Otherwise, you lose points in spam filters, and some recipients will > probably not ever see the email. > > -- > Like Music? > http://l-i-e.com/artists.htm > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Email Form
- Original Message - From: "Thomas Bonham" <[EMAIL PROTECTED]> To: Sent: Thursday, January 19, 2006 12:40 PM Subject: [PHP] Email Form Hello All, I don't remember how to do email with php. I have all of it done, except for I can't get it to show the senders email address. All I get it from [EMAIL PROTECTED] If some one has a example that they can post that would be great. Thank You Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hello, http://us2.php.net/manual/en/function.mail.php Example 2. Sending mail with extra headers. The addition of basic headers, telling the MUA the From and Reply-To addresses: Best regards, Andras Kende http://www.kende.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Email Form
On Thu, January 19, 2006 3:25 pm, Weber Sites LTD wrote: > Check out : > > http://www.weberdev.com/get_example-336.html > > http://www.weberdev.com/get_example-1557.html > > In general you need to add the From header : > > Mail($To,$subject,$body,"From:[EMAIL PROTECTED]"); In the ideal world, you also will want to upgrade and use the FIFTH (optional) argument to http://php.net/mail and provide a Return-path: header that matches your From: line with "[EMAIL PROTECTED]" Otherwise, you lose points in spam filters, and some recipients will probably not ever see the email. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Email Form
Check out : http://www.weberdev.com/get_example-336.html http://www.weberdev.com/get_example-1557.html In general you need to add the From header : Mail($To,$subject,$body,"From:[EMAIL PROTECTED]"); Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP code examples : http://www.weberdev.com PHP Web Logs : http://www.weberblog.com/ PHP & MySQL Forums : http://www.weberforums.com/ Learn PHP Playing Trivia http://www.webertrivia.com Web Development Index http://www.weberindex.com Web Templates http://www.webertemplates.com Search for PHP Code from your browser http://toolbar.weberdev.com -Original Message- From: Thomas Bonham [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 10:41 PM To: php-general@lists.php.net Subject: [PHP] Email Form Hello All, I don't remember how to do email with php. I have all of it done, except for I can't get it to show the senders email address. All I get it from [EMAIL PROTECTED] If some one has a example that they can post that would be great. Thank You Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] email form results
Ken Bolton wrote: > Is there a simple way to send the results of a form to an email address? I > have created a form with multiple categories of radio boxes and I have > created a response PHP file that will give the user a confirmation. I'm > just > not sure how to send the results through email. I've checked the > documentation with no luck. Thanks. http://php.net/mail should do the trick. If that's not enabled on your server, and can't be, but you have access to an SMTP server somewhere, http://phpclasses.org/ has several fine PHP mailing objects. Oh, and you may want to read the PHP FAQ, especially the part about using $_POST to snatch all the POST data in a few lines of code. Very handy. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] email form results
Assemble all of your data into the message body (see $message below) and mail it to yourself. How you trigger this processing and the call to the mail() function depends on how you've constructed your logic. $message .= $name ."\n"; $message .= $phone . "\n"; $message .= $email; mail( "[EMAIL PROTECTED]", "Free Trial Request", $message, "From: $email" ); One logic construct is for the form's ACTION to call itself, like so: IF $email is NOT set display the form and to record the information ELSEIF test for critical fields being empty displaying a message if they are and a reload button ELSE to the code above display Thanks & we'll be in touch, or whatever. Regards - Miles Thompson At 02:10 PM 12/21/2004, Ken Bolton wrote: Is there a simple way to send the results of a form to an email address? I have created a form with multiple categories of radio boxes and I have created a response PHP file that will give the user a confirmation. I'm just not sure how to send the results through email. I've checked the documentation with no luck. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] email form results
http://www.php.net/mail -phpninja -Original Message- From: Ken Bolton [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 21, 2004 10:11 AM To: [EMAIL PROTECTED] Subject: [PHP] email form results Is there a simple way to send the results of a form to an email address? I have created a form with multiple categories of radio boxes and I have created a response PHP file that will give the user a confirmation. I'm just not sure how to send the results through email. I've checked the documentation with no luck. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Email Form
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi I have an online email form but I can't get the text layout the same as > the layout someone types in the text Area, here is the final bit of code: > > $message = stripslashes($message); > $message = htmlentities($message); > $message = nl2br($message); > $from="From: $email"; > $to= "[EMAIL PROTECTED]"; > mail($to,$subject,$message,$from); > > Basicly the problem is if someone puts a new line in the text area this > appears as . example: > Hi, > this is a test > > would end up > Hi, > > this is a test. > > > Any help please? Take out the nl2br - that's only for html -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Email form
Check: http://www.php.net/mail <[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've been out of the loop for so long. > > I make a normal form, but the action is something.. > > I don't want it to send from the uers email, but use the server. Some > people don't have an email client configured. Can yah help? > > Thanks, > Owen > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]