I added "MIME-Version: 1.0\r\nContent-Type:text/html;
charset=iso-8859-1\r\n" as one of the parameters in the mail( )
function to replace the "Nobody" with a real From: email. That worked.
But if I attempt to add any other terms, such as the sender's name and
location, the MIME parameter above seems to ignore the "\n" line feeds
and put the these other terms ahead of the mail message.
Here's my code:
mail("$toaddress", "$subject", "$mailcontent", "MIME-Version:
1.0\r\nContent-Type:text/html; charset=iso-8859-1\r\nFrom: ".
$youremail
. "\r\n" . $yourname . "\r\n");
The value for $yourname appears ahead of the message [$mailcontent] on
the same line. What I would like it to do is display the message, go
to a new line, then display $yourname.
Thanks in advance. 2 3490
"bobkaku" <bo*****@yahoo.com> wrote: I added "MIME-Version: 1.0\r\nContent-Type:text/html; charset=iso-8859-1\r\n" as one of the parameters in the mail( ) function to replace the "Nobody" with a real From: email. That worked.
But if I attempt to add any other terms, such as the sender's name and location, the MIME parameter above seems to ignore the "\n" line feeds and put the these other terms ahead of the mail message.
Here's my code:
mail("$toaddress", "$subject", "$mailcontent", "MIME-Version: 1.0\r\nContent-Type:text/html; charset=iso-8859-1\r\nFrom: ". $youremail . "\r\n" . $yourname . "\r\n");
The value for $yourname appears ahead of the message [$mailcontent] on the same line. What I would like it to do is display the message, go to a new line, then display $yourname.
Well, then, you need to append $yourname to $mailcontent, and not to the
headers. What you have done makes $yourname the first line of the message,
since it's coming directly after the headers.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Thanks Tim. It worked.
I also discovered that in order to do line breaks effectively, I should
have been using the <br> line break HTML code instead of trying to use
the "\n" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: ME |
last post by:
can someone tell me how to make this first one work??, located here:
http://javascript.about.com/library/scripts/blshowdatetime.htm#examplesource
This second one, well, dreamweaver eats the code,...
|
by: Luigi |
last post by:
Imagine I have a small, static, personal site (I do, actually:
http://kirpi.it/).
And imagine that, just below the title of the page, I would like to
have a comment, or a news line, or a birthday...
|
by: pkinville |
last post by:
ok, this is gonna seem stupid, but it has been stumping me all
afternoon.
I have two fields on a HTML page. HTML looks like this...
<html>
<head>
<title>New Page 3</title>
</head>
<body>
|
by: Martin Herrman |
last post by:
Dear scripters,
I am working on a HTML form in which a date must be entered of the form
'dd-mm-yyyy'. Now I'm looking for a script that, when the user switches to
another form field, changes...
|
by: timjowers |
last post by:
Searched through sourceforge to no avail. Ideas?
Requirement:
1. Lists users from LDAP
2. Allows multiple selection as well as free text entry
3. Has To, CC, and BCC lists.
4. Message and...
|
by: Dave |
last post by:
I would like to create a table in HTML that represents a letter on a
standard size sheet of paper. But of course, smaller so the width fits on
the screen.
How do I code an HTML table to...
|
by: Andy Dingley |
last post by:
I'm using this at present:
<p title="Publication date" ></p>
Works fine on screen, but Fangs/Jaws just reads it as "left bracket
twenty-eight slash zero slash two thousand five fifteen colon...
|
by: siliconwafer |
last post by:
I want to create a text editor using C.
I want user to enter text freely without worring about what's gonig
inside.
I tried some combinations of fgets,fgetc with realloc and stdin as
poniter.Bute...
|
by: joelagnel |
last post by:
hi friends,
i've been having this confusion for about a year, i want to know the
exact difference between text and binary files.
using the fwrite function in c, i wrote 2 bytes of integers in...
|
by: Ant |
last post by:
Hi all,
My kids have a bunch of games that have to be run from CD (on Windows
XP). Now they're not very careful with them, and so I have a plan.
I've downloaded a utility (Daemon Tools) which...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |