Re: [PHP] PHP Email Question

2010-10-01 Thread kranthi
I cant see why you are getting the letter 'z' (assuming $msgContent was referenced properly) . Complete code will be helpful to debug the problem. Also, Heredoc syntax will be more helpful in your situation. And usage of global keyword is strongly discouraged in favor of $GLOBALS superglobal array

Re: [PHP] PHP Email Question

2010-09-30 Thread J Ravi Menon
On Wed, Sep 29, 2010 at 1:37 PM, Joe Jackson wrote: > Hi > > I am trying the following snippet as Bostjan  suggested, and an email is > getting sent when I submit the form however in the body of the email I am > getting none of the form data in the body of the email.  All I am getting is > the let

Re: [PHP] PHP Email Question

2010-09-29 Thread Joe Jackson
Hi I am trying the following snippet as Bostjan suggested, and an email is getting sent when I submit the form however in the body of the email I am getting none of the form data in the body of the email. All I am getting is the letter 'z' ? Also in the from field of the email this is showing a

Re: [PHP] PHP Email Question

2010-09-21 Thread J Ravi Menon
Just on this topic, I found swiftmailer library to be really useful esp. in dealing with 'template' emails with custom variables per recipient: http://swiftmailer.org/ The e.g. on email template processing: http://swiftmailer.org/docs/decorator-plugin-howto There are batchSend() functionalities

Re: [PHP] PHP Email Question

2010-09-20 Thread chris h
> Ignore the other parameters unless you are very familiar with RFCs 2821, > 2822 and their associated RFCs > I would advise against ignoring the other parameters. Doing so will pretty much guarantee having your email end up in SPAM. Instead look up the examples in the docs, or better yet use s

Re: [PHP] PHP Email Question

2010-09-20 Thread Jim Lucas
Joe Jackson wrote: > Hi > > All I need is in the message body of the email is to include more data from > the form. At present it only displays the 'message' field value in the body > of the email. I need to add further information into the email from the > form such as 'address' 'name' and 'tel

Re: [PHP] PHP Email Question

2010-09-20 Thread TR Shaw
Example: $to = 'nob...@example.com'; $subject = 'the subject'; $message = "formdata=" . serialize($form_values); $headers = 'From: webmas...@example.com' . "\r\n" . 'Reply-To: webmas...@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); You c

Re: [PHP] PHP Email Question

2010-09-20 Thread Joe Jackson
Hi All I need is in the message body of the email is to include more data from the form. At present it only displays the 'message' field value in the body of the email. I need to add further information into the email from the form such as 'address' 'name' and 'telephone number' When I have trie

Re: [PHP] PHP Email Question

2010-09-19 Thread TR Shaw
On Sep 19, 2010, at 6:00 PM, Joe Jackson wrote: > Hi > > Sorry for the simple question but I am trying to get my head around PHP. I > have a sample PHP script that I am trying to use to send a php powered email > message. The snippet of code is shown below > >mail('em...@address.com',

Re: [PHP] PHP Email Question

2010-09-19 Thread Bostjan Skufca
You should format the email message content first, like this: $msgContent = "Name: ". $values['name'] ."\n"; $msgContent .= "Address: ". $values['address'] ."\n"; Then you should send a this content, like this: mail('em...@address.com', 'Subject', $msgContent, "From...); b. On 20 September 2010

[PHP] PHP Email Question

2010-09-19 Thread Joe Jackson
Hi Sorry for the simple question but I am trying to get my head around PHP. I have a sample PHP script that I am trying to use to send a php powered email message. The snippet of code is shown below mail('em...@address.com', 'Subject', $values['message'], "From: \"{$values['name']}\" <{

Re: [PHP] PHP Email Setup problem

2009-05-14 Thread Shawn McKenzie
Moses wrote: > Hi Everyone > > I have tried to configure my php.in file so as allow me to send email in PHP > from local server. > I added the lines in php.ini file > sendmail_path = /usr/sbin/sendmail -t > sendmail_from = n...@localhost > > Therafter restarted my apache by: > > sudo /etc/in

[PHP] PHP Email Setup problem

2009-05-14 Thread Moses
Hi Everyone I have tried to configure my php.in file so as allow me to send email in PHP from local server. I added the lines in php.ini file sendmail_path = /usr/sbin/sendmail -t sendmail_from = n...@localhost Therafter restarted my apache by: sudo /etc/init.d/apache2 restart However, I ge

Re: [PHP] PHP email

2008-07-31 Thread Daniel Brown
On Thu, Jul 31, 2008 at 7:46 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Hi, > > Can someone tell me what the address is to change my @php.net redirect? > Thanks. It's on the Master system. I'll send you the direct link to edit your profile in a Google chat. -- Better prices on dedicat

[PHP] PHP email

2008-07-31 Thread Richard Heyes
Hi, Can someone tell me what the address is to change my @php.net redirect? Thanks. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP / Email / ActionScript

2004-07-07 Thread raditha dissanayake
Josh Eastgate wrote: Hi, I have made a shopping kart for a web site, in flash...and I have it so when the shopping kart is submitted...all the order details (variables) are sent to a PHP file that sends the order to the businesses email. My main problem is with the PHP file. I dont know how to use

[PHP] PHP / Email / ActionScript

2004-07-07 Thread Josh Eastgate
Hi, I have made a shopping kart for a web site, in flash...and I have it so when the shopping kart is submitted...all the order details (variables) are sent to a PHP file that sends the order to the businesses email. My main problem is with the PHP file. I dont know how to use IF THEN ELSE statem

Re: [PHP] php email functionality

2004-04-02 Thread Burhan Khalid
Shawn Beard wrote: I just upgraded to PHP 4.3.5 and now my email functionality does not work. I do have the SMTP setting in the php.ini set up and did restart Apache. We are running a Windows 2000 server and Apache 2.0.49. Any ideas? A few ideas/suggestions : Does your smtp server require authe

Re: [PHP] php email functionality

2004-04-02 Thread Jason Wong
On Saturday 03 April 2004 00:59, Shawn Beard wrote: > I just tried downgrading to version 4.3.4 and it still does not work. And presumably it had worked before you did the upgrade? The tone of your original post suggested that the upgrade broke the mail functionality? Again: > Are you positive

Re: [PHP] php email functionality

2004-04-02 Thread Shawn Beard
I just tried downgrading to version 4.3.4 and it still does not work. Shawn Beard Web Administrator Iowa Foundation for Medical Care Information Systems [EMAIL PROTECTED] Office: 515-440-8581 Pager: 515-208-5907 >>> Jason Wong <[EMAIL PROTECTED]> 04/02/04 10:35AM >>> On Saturday 03 April 2004 00

Re: [PHP] php email functionality

2004-04-02 Thread Shawn Beard
I havent tried downgrading yet but yes the SMTP settings in the php.ini are identical to what they were before. I even tried deleting the php folder and starting from scratch rather than using the upgrade path. Still the same problem. Shawn Beard Web Administrator Iowa Foundation for Medical

Re: [PHP] php email functionality

2004-04-02 Thread Jason Wong
On Saturday 03 April 2004 00:30, Shawn Beard wrote: > There are no errors generated in the log. It just flat out doesnt work > anymore. Are the smtp settings in php.ini identical to the previous version? Are you positive you have made no other changes to your setup whilst upgrading php? If so

RE: [PHP] php email functionality

2004-04-02 Thread Shawn Beard
4 10:14AM >>> What sorts of errors are you seeing in your log? --Sam -Original Message- From: Shawn Beard [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: [PHP] php email functionality I just upgraded to PHP 4.3.5 and now my email

RE: [PHP] php email functionality

2004-04-02 Thread Sam Masiello
What sorts of errors are you seeing in your log? --Sam -Original Message- From: Shawn Beard [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: [PHP] php email functionality I just upgraded to PHP 4.3.5 and now my email functionality does

[PHP] php email functionality

2004-04-02 Thread Shawn Beard
I just upgraded to PHP 4.3.5 and now my email functionality does not work. I do have the SMTP setting in the php.ini set up and did restart Apache. We are running a Windows 2000 server and Apache 2.0.49. Any ideas? Shawn Beard Web Administrator Iowa Foundation for Medical Care Information S

Re: [PHP] PHP email message composing

2003-09-24 Thread Dan Anderson
Instead of putting your message in your code like that, why not just put it in a seperate text file and do: $message = implode(" ", file("./message")); ? This will make your code look cleaner. So you could create something like: $message = implode(" ", file("./message1")); if (isset($checkbox[0

Re: [PHP] PHP email message composing

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 03:48, Cesar Aracena wrote: [snip] > And after a while, I have to know which are the options the visitor has > selected. The options might vary depending on two different selections, > which are "guided" using arrays. What I've done so far, and doesn't work > is: > >

[PHP] PHP email message composing

2003-09-24 Thread Cesar Aracena
Hi all, I am trying to create an automatic email composing script, but I have one big problem here. The message composing method I'm using is the following: /* message */ $message = ' Solicitud de Presupuesto

Re: [PHP] PHP Email use alternate SMTP

2003-07-26 Thread Marek Kilimajer
www.phpclasses.org/mimemessage it contains a class that can send directly to SMTP server Tom Vogel wrote: Hi, i'm trying to set up an email form on my website. When I originally ran the server from windows I could simply set SMTP = mailhost.ucalgary.ca and it would work. After moving the server t

[PHP] PHP Email use alternate SMTP

2003-07-25 Thread Tom Vogel
Hi, i'm trying to set up an email form on my website. When I originally ran the server from windows I could simply set SMTP = mailhost.ucalgary.ca and it would work. After moving the server to Mac OS X, I can't get it to work. I've read a bunch of FAQ's but they all seem to insist that I set up my

Re: [PHP] PHP Email....

2003-06-12 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > Working kind of :) > > > > Get one line from it > > Kinda... I get it to return one line... > > The code: > > define('STDIN',fopen("php://stdin","r")); > $str = fgets(STDIN); > mail("[EMAIL PROTECTED]","Test","Test Test...\n\nOr

RE: [PHP] PHP Email....

2003-06-12 Thread Ford, Mike [LSS]
> -Original Message- > From: Brian McGarvie [mailto:[EMAIL PROTECTED] > Sent: 12 June 2003 11:42 > > Kinda... I get it to return one line... > > The code: > > define('STDIN',fopen("php://stdin","r")); > $str = fgets(STDIN); > mail("[EMAIL PROTECTED]","Test","Test > Test...\n\nOriginal

Re: [PHP] PHP Email....

2003-06-12 Thread Brian McGarvie
> Working kind of :) > > Get one line from it Kinda... I get it to return one line... The code: Emails me: Test Test... Original Email: >From [EMAIL PROTECTED] Thu Jun 12 11:41:39 2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] PHP Email....

2003-06-12 Thread Brian McGarvie
> Assuming that your sendmail alias was setup properly then the whole email will > be available in STDIN, see manual > Using PHP from the command line for > details. Working kind of :) Get one line from it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] PHP Email....

2003-06-12 Thread Brian McGarvie
> Assuming that your sendmail alias was setup properly then the whole email will > be available in STDIN, see manual > Using PHP from the command line for > details. Cheers! Works a treat now to parse the bugger :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] PHP Email....

2003-06-12 Thread Jason Wong
On Thursday 12 June 2003 18:12, Brian McGarvie wrote: > I have a question about automated email: > > In my sendmail configuration i have: > > Alias: Testit > Feeds to Program /usr/local/bin/php > /usr/local/apache/sites/xxx.com/tasks/automail/test.php > > testit is set up to an address, so if i sen

[PHP] PHP Email....

2003-06-12 Thread Brian McGarvie
I have a question about automated email: In my sendmail configuration i have: Alias: Testit Feeds to Program /usr/local/bin/php /usr/local/apache/sites/xxx.com/tasks/automail/test.php testit is set up to an address, so if i send to [EMAIL PROTECTED] the above is indeed ran, my question is how in

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Jason Wong
On Saturday 05 April 2003 00:41, Michael Arena wrote: > After reading the file_upload section on PHP.net i got the following script > working on the server..it sends an attachment from a form now but it's > just of size 0 and always a txt file. I know it must be some little thing > wrong then this

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Burhan Khalid
Michael Arena wrote: When I put change the line you suggested to " Line25 $fileatt = "/home/sites/webserver.agraservices.net/web/mike/$_POST['fileatt']"; $fileatt_type = $_FILES['fileatt']['type'];// Type of file being sent $fileatt_name = $_FILE

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
sage - From: "Burhan Khalid" <[EMAIL PROTECTED]> Newsgroups: php.general To: "Michael Arena" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, April 04, 2003 1:21 PM Subject: Re: [PHP] PHP Email Attachment problem > Michael Arena wrote: > > d

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Burhan Khalid
Michael Arena wrote: did that...still sends only a file called ".txt" size zero ? try replacing $fileatt with $_POST['fileatt'] -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
t; Sent: Friday, April 04, 2003 11:48 AM Subject: Re: [PHP] PHP Email Attachment problem > Michael Arena wrote: > > After reading the file_upload section on PHP.net i got the following script > > working on the server..it sends an attachment from a form now but it's just >

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Burhan Khalid
Michael Arena wrote: After reading the file_upload section on PHP.net i got the following script working on the server..it sends an attachment from a form now but it's just of size 0 and always a txt file. I know it must be some little thing wrong then this will work, maybe you can eye it for me a

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; } mail($to, $subject, $message, $headers); echo "Thanks for sending mail"; ?> -end upload.php code thanks again for your help, Mike - Origin

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
p.general To: <[EMAIL PROTECTED]> Sent: Friday, April 04, 2003 1:36 AM Subject: Re: [PHP] PHP Email Attachment problem > On Friday 04 April 2003 06:10, Michael Arena wrote: > > Made some progress today. Found an attachment script in the archives. I > > was able to send an

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Jason Wong
On Friday 04 April 2003 06:10, Michael Arena wrote: > Made some progress today. Found an attachment script in the archives. I > was able to send an email attachment if it was already on the server. now i > just need the file to come from a form instead of already being on the > server but that's n

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Michael Arena
$data . "\n\n" . "--{$mime_boundary}--\n"; } mail($to, $subject, $message, $headers); echo "Thanks for sending mail"; ?> ---end upload.php code- any suggestions on how to get this form going thanks a million, you

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Jason Wong
On Thursday 03 April 2003 22:30, Michael Arena wrote: > I just checked the directory that I specified for temporary uploads > (/tmpuploads) and there is nothing there which leads me to believe the file > isn't getting uploaded. I'm not sure *how* you're checking that there's nothing there but pl

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Michael Arena
PHP.ini file if you want to check that out as well because I didn't see anything in there called file_upload. Thanks, Mike - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Thursday, April 03,

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Chris Edwards
> To: <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 8:00 AM Subject: RE: [PHP] PHP Email Attachment problem > I also had a similar problem and it was simply because the directory > holding the attachment didn't have permission to send the attachment, so > check the perm

RE: [PHP] PHP Email Attachment problem

2003-04-03 Thread Steve Jackson
s.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: 3. huhtikuuta 2003 8:23 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP Email Attachment problem > > > On Wednesday 02 April 2003 04:19,

Re: [PHP] PHP Email Attachment problem

2003-04-02 Thread Jason Wong
On Wednesday 02 April 2003 04:19, Michael Arena wrote: > the only difference in the server setup is on my remote server it's a RAQ > and locally i'm using Xitami with PHP. I don't understand why it won't > send. I get the email over the RAQ but no attachment... Have you checked that the file actua

Re: [PHP] PHP Email Attachment problem

2003-04-01 Thread Michael Arena
in the php.ini file? Thanks, Mike - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 2:49 PM Subject: Re: [PHP] PHP Email Attachment problem > On Wednesday 02 April 2003 03:

Re: [PHP] PHP Email Attachment problem

2003-04-01 Thread Jason Wong
On Wednesday 02 April 2003 03:33, Mike wrote: > I want to send an email attachment using PHP and the below code works > locally but when i upload to my RAQ Cobalt server it doesn't send the > attachment and i can't figure out why. If you can offer me any guidance as > to why this is happening it i

[PHP] PHP Email Attachment problem

2003-04-01 Thread Mike
Hello, I want to send an email attachment using PHP and the below code works locally but when i upload to my RAQ Cobalt server it doesn't send the attachment and i can't figure out why. If you can offer me any guidance as to why this is happening it is greatly appreciated. **The sendmail is a custo

[PHP] PHP Email Form

2002-04-09 Thread Declan Kenny
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]"; ma

RE: [PHP] PHP Email Handler

2001-09-19 Thread Niklas Lampen
A very good point. Niklas -Original Message- From: Anton Stroganov [mailto:[EMAIL PROTECTED]] Sent: 19. syyskuuta 2001 21:00 To: Wee Chua Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Email Handler My friend. I'm not quite sure I understand you correctly. Are you asking _us_

Re: [PHP] PHP Email Handler

2001-09-19 Thread Anton Stroganov
cific question, feel free to ask :) a. - Original Message - From: Wee Chua <[EMAIL PROTECTED]> To: PHP (E-mail) <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 11:03 Subject: [PHP] PHP Email Handler > Hi all, > Can anyone please show me how to write a simp

[PHP] PHP Email Handler

2001-09-19 Thread Wee Chua
Hi all, Can anyone please show me how to write a simple email handler for company website? Basically, it is for customer to submit information throught the website without using client email software. Thank you. Calvin Chua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-