[PHP] using mail
Hello, I am using the mail() function right now to send e-mails. Is there a way I can dynamically change where it says the e-mail is from? Thanks Brandon
[PHP] Using Mail Functions.
Dear all, I am a new user on php and I have read on the function of IMAP in the php.net but they made me confuse. In ture i am not understand what is the function and how to use them. Have there got any resource for me to reference? I think that if there got more example it can be more easy to understand. In case, I want to design program which can receive mail and save to mysql server. I have spend so much time on this... :( Can you give me some suggestion? my e-mail: [EMAIL PROTECTED] Best regards, Sidney -- 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]
RE: [PHP] using mail
the forst param to mail is the extra headers to send add in "Reply-To: [EMAIL PROTECTED]\r\n" and/or "From: [EMAIL PROTECTED]\r\n" ( I think this one's correct ) -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:41 AM To: PHP User Group Subject: [PHP] using mail Hello, I am using the mail() function right now to send e-mails. Is there a way I can dynamically change where it says the e-mail is from? Thanks Brandon
RE: [PHP] using mail
oops, "forst" is meant to be "forth" -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:44 AM To: 'Brandon Orther'; PHP User Group Subject: RE: [PHP] using mail the forst param to mail is the extra headers to send add in "Reply-To: [EMAIL PROTECTED]\r\n" and/or "From: [EMAIL PROTECTED]\r\n" ( I think this one's correct ) -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:41 AM To: PHP User Group Subject: [PHP] using mail Hello, I am using the mail() function right now to send e-mails. Is there a way I can dynamically change where it says the e-mail is from? Thanks Brandon
Re: [PHP] using mail
Did you RTFM? http://www.php.net/manual/en/function.mail.php Just create a variable and input it as an extra header. $from = "from: [EMAIL PROTECTED]\r\n" ; mail($to,$subject,$message,$from); On Monday 12 November 2001 02:41 pm, you wrote: > Hello, > > I am using the mail() function right now to send e-mails. Is there a > way I can dynamically change where it says the e-mail is from? > > Thanks > Brandon -- 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]
RE: [PHP] using mail
YES I DID READ THE F...in MANUAL -Original Message- From: Kurt Lieber [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 2:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] using mail Did you RTFM? http://www.php.net/manual/en/function.mail.php Just create a variable and input it as an extra header. $from = "from: [EMAIL PROTECTED]\r\n" ; mail($to,$subject,$message,$from); On Monday 12 November 2001 02:41 pm, you wrote: > Hello, > > I am using the mail() function right now to send e-mails. Is there a > way I can dynamically change where it says the e-mail is from? > > Thanks > Brandon -- 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]
RE: [PHP] using mail
Then why didn't you notice that in the additional headers you can specify the from header? mail("[EMAIL PROTECTED]", "Whee", "Whee! Mail Body", "From: Jason Murray <[EMAIL PROTECTED]>\n"); Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" > -Original Message- > From: Brandon Orther [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 9:52 AM > To: PHP User Group > Subject: RE: [PHP] using mail > > > YES I DID READ THE F...in MANUAL > > -Original Message- > From: Kurt Lieber [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 12, 2001 2:56 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] using mail > > Did you RTFM? > > http://www.php.net/manual/en/function.mail.php > > Just create a variable and input it as an extra header. > > $from = "from: [EMAIL PROTECTED]\r\n" ; > > mail($to,$subject,$message,$from); > > On Monday 12 November 2001 02:41 pm, you wrote: > > Hello, > > > > I am using the mail() function right now to send e-mails. > Is there a > > way I can dynamically change where it says the e-mail is from? > > > > Thanks > > Brandon > > -- > 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 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]
Re: [PHP] using mail
I COULD be wrong but wasn't Kurt the guy who posted frequent questions like this when he was starting off? :) Jeff - Original Message - From: "Kurt Lieber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 12, 2001 5:55 PM Subject: Re: [PHP] using mail > Did you RTFM? > > http://www.php.net/manual/en/function.mail.php > > Just create a variable and input it as an extra header. > > $from = "from: [EMAIL PROTECTED]\r\n" ; > > mail($to,$subject,$message,$from); > > On Monday 12 November 2001 02:41 pm, you wrote: > > Hello, > > > > I am using the mail() function right now to send e-mails. Is there a > > way I can dynamically change where it says the e-mail is from? > > > > Thanks > > Brandon > > -- > 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]
Re: [PHP] Using Mail Functions.
Never done this before but its look rather simple: first connect to the server| probobly with imap_open Read the messages into some Variable/ array what ever Upload to the MySQL server. Small Tip: Drom MySQL and use Postgresql -- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il -- - Original Message - From: "Sidney" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 24, 2002 12:32 PM Subject: [PHP] Using Mail Functions. > Dear all, > > I am a new user on php and I have read on the function of IMAP in the > php.net but they made me confuse. In ture i am not understand what is the > function and how to use them. > > Have there got any resource for me to reference? I think that if there got > more example it can be more easy to understand. > > In case, I want to design program which can receive mail and save to mysql > server. > > I have spend so much time on this... :( > > Can you give me some suggestion? > my e-mail: [EMAIL PROTECTED] > > Best regards, > Sidney > > > > -- > 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]