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
[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
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] 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] Re: Sending Attachements through php email form
Edit this to what you need: http://www.evilwalrus.com/viewcode.php?codeEx=546 Regards, "Heidi Belal" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > I was wondering if anybody could tell me the best way and how to code sending an attachement with an email form. I want the user to be able to browse and select the file he wants to attach, and i want the reciepent to be able to see the file that has been attached with the email. > > Thanks, > > > > Heidi Belal > Web Developer > www.code-corner.com > > A bus stops at a bus station; > a train stops at a train station; > and on my desk i have a work station ... > > > > > > - > Yahoo! - We Remember > 9-11: A tribute to the more than 3,000 lives lost -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Sending Attachements through php email form
Hello, On 09/10/2002 11:07 AM, Heidi Belal wrote: > Hi, > > I was wondering if anybody could tell me the best way and how to code sending an >attachement with an email form. I want the user to be able to browse and select the >file he wants to attach, and i want the reciepent to be able to see the file that has >been attached with the email. You may want to try this class that lets you do what you want: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending Attachements through php email form
Hi, I'm not aware of any existing code/samples for this, but the individual components you need to break it down into are pretty straight forward: 1. Learn about forms, validation of user input, and in particular file uploads (which there is a perfect library of working code in the manual: http://www.php.net/manual/en/features.file-upload.php) 2. Then learn about the filesystem functions, in particular, how to read the contents of the uploaded file into a string, then later about deleting files, etc etc. from the manual http://php.net/fread: 3. Then learn a bit about mail() (http://php.net/mail), but really what you need to do from there is to go over to phpclasses.org, and look at manual lemos' mime-mail class (unsure of the exact name), which deals with HTML mail, multi part email, attachments to emails, and everything else you could possibly need to send an email with an attachment. Justin on 11/09/02 12:07 AM, Heidi Belal ([EMAIL PROTECTED]) wrote: > > Hi, > > I was wondering if anybody could tell me the best way and how to code sending > an attachement with an email form. I want the user to be able to browse and > select the file he wants to attach, and i want the reciepent to be able to see > the file that has been attached with the email. > > Thanks, > > > > Heidi Belal > Web Developer > www.code-corner.com > > A bus stops at a bus station; > a train stops at a train station; > and on my desk i have a work station ... > > > > > > - > Yahoo! - We Remember > 9-11: A tribute to the more than 3,000 lives lost -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sending Attachements through php email form
Hi, I was wondering if anybody could tell me the best way and how to code sending an attachement with an email form. I want the user to be able to browse and select the file he wants to attach, and i want the reciepent to be able to see the file that has been attached with the email. Thanks, Heidi Belal Web Developer www.code-corner.com A bus stops at a bus station; a train stops at a train station; and on my desk i have a work station ... - Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost
Re: [PHP] .vcf files and PHP Email Form(Newbie)
I don't have much experiance with MIME. where could I find a tutorial or ready made class? - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, May 12, 2002 4:41 PM Subject: Re: [PHP] .vcf files and PHP Email Form(Newbie) > Use any of about 10 billion available MIME mail classes/functions (or > write your own; there's really nothing to it) and attach the vcard as > content-type: text/x-vcard. > > miguel > > On Sun, 12 May 2002 [EMAIL PROTECTED] wrote: > > I want to create an e-mail form that writes a (person's name).vcf(vCard) > > file and attaches it to the message. This would allow me to eaisly add > > people to my address book. > > > > The source of a sample .vcf(vCard) file is shown below: > > BEGIN:VCARD > > VERSION:2.1 > > N:Harrison;JJ > > FN:Harrison, JJ > > ORG:TecEco Pty. Ltd.;IT > > TITLE:Webmaster > > ADR;WORK:;;497 main road Glenorchy;Hobart;Tasmania;7010;Australia > > LABEL;WORK;ENCODING=QUOTED-PRINTABLE:497 main road Glenorchy=0D=0AHobart, > > Tasmania 7010=0D=0AAustralia > > ADR;HOME:;;12 Harbinger Lane Austin's Ferry;Hobart;Tasmania;7011;Australia > > LABEL;HOME;ENCODING=QUOTED-PRINTABLE:12 Harbinger Lane Austin's > > Ferry=0D=0AHobart, Tasmania 7011=0D=0AAustralia > > X-WAB-GENDER:2 > > URL;WORK:http://www.tececo.com > > EMAIL;PREF;INTERNET:[EMAIL PROTECTED] > > REV:20020512T063717Z > > END:VCARD > > > > Does anyone have any ideas or know of a pre-built script to do this? > > > > Thanks, > > > > JJ Harrison > > [EMAIL PROTECTED] > > www.tececo.com > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] .vcf files and PHP Email Form(Newbie)
Use any of about 10 billion available MIME mail classes/functions (or write your own; there's really nothing to it) and attach the vcard as content-type: text/x-vcard. miguel On Sun, 12 May 2002 [EMAIL PROTECTED] wrote: > I want to create an e-mail form that writes a (person's name).vcf(vCard) > file and attaches it to the message. This would allow me to eaisly add > people to my address book. > > The source of a sample .vcf(vCard) file is shown below: > BEGIN:VCARD > VERSION:2.1 > N:Harrison;JJ > FN:Harrison, JJ > ORG:TecEco Pty. Ltd.;IT > TITLE:Webmaster > ADR;WORK:;;497 main road Glenorchy;Hobart;Tasmania;7010;Australia > LABEL;WORK;ENCODING=QUOTED-PRINTABLE:497 main road Glenorchy=0D=0AHobart, > Tasmania 7010=0D=0AAustralia > ADR;HOME:;;12 Harbinger Lane Austin's Ferry;Hobart;Tasmania;7011;Australia > LABEL;HOME;ENCODING=QUOTED-PRINTABLE:12 Harbinger Lane Austin's > Ferry=0D=0AHobart, Tasmania 7011=0D=0AAustralia > X-WAB-GENDER:2 > URL;WORK:http://www.tececo.com > EMAIL;PREF;INTERNET:[EMAIL PROTECTED] > REV:20020512T063717Z > END:VCARD > > Does anyone have any ideas or know of a pre-built script to do this? > > Thanks, > > JJ Harrison > [EMAIL PROTECTED] > www.tececo.com > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] .vcf files and PHP Email Form(Newbie)
I want to create an e-mail form that writes a (person's name).vcf(vCard) file and attaches it to the message. This would allow me to eaisly add people to my address book. The source of a sample .vcf(vCard) file is shown below: BEGIN:VCARD VERSION:2.1 N:Harrison;JJ FN:Harrison, JJ ORG:TecEco Pty. Ltd.;IT TITLE:Webmaster ADR;WORK:;;497 main road Glenorchy;Hobart;Tasmania;7010;Australia LABEL;WORK;ENCODING=QUOTED-PRINTABLE:497 main road Glenorchy=0D=0AHobart, Tasmania 7010=0D=0AAustralia ADR;HOME:;;12 Harbinger Lane Austin's Ferry;Hobart;Tasmania;7011;Australia LABEL;HOME;ENCODING=QUOTED-PRINTABLE:12 Harbinger Lane Austin's Ferry=0D=0AHobart, Tasmania 7011=0D=0AAustralia X-WAB-GENDER:2 URL;WORK:http://www.tececo.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20020512T063717Z END:VCARD Does anyone have any ideas or know of a pre-built script to do this? Thanks, JJ Harrison [EMAIL PROTECTED] www.tececo.com -- 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
[PHP] PHP Email Form
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? -- 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]
[PHP] Email form
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]