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
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
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
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
> 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
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
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
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
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',
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
10 matches
Mail list logo