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

Re: [PHP] PHP Email Question

2010-09-30 Thread J Ravi Menon
On Wed, Sep 29, 2010 at 1:37 PM, Joe Jackson priory...@googlemail.com 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

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

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()

[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 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 00:00,

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',