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
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']}\" <{
Couldn't you just use the wordwrap function? Something like this:
$my_text = "This is a story all about how my life got flipped turned upside
down. I'd like to take a minute just sit right there, I'll tell you how I
became the Prince of a town called Belaire."
$my_wrapped_text = wordwrap($my_text
On 10/31/07, Jake <[EMAIL PROTECTED]> wrote:
> What is a =20 at the end of a line in an email?
It is a space character when the message is encoded using
quoted-printable encoding.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What is a =20 at the end of a line in an email? Is it some kind of whitespace
line return or something? it only seems to appear when there is whitespace that
is linewrapping. I have googled and googled for it, but havn't found anything
yet. here's my function...
buffer is a complete correctly f
Terry,
> I am trying to set up a MIME email that would include an HTML and Plain
> Text version of content, such that if the recipient's email client did
> not understand html or have html disabled, that the content would come
> through as plain text, but if html were accepted, the plain text wo
Terry: I forwarded this to php-general list. Perhaps they can answer your
question
-Original Message-
From: Terry Romine [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:01 AM
To:
Subject: php email question
I am trying to set up a MIME email that would include an HTML and
16 matches
Mail list logo