Mail() To Outlook, No Carriage Returns
I'm sending normal text email, but in Outlook all the carriage returns
are ignored. The text comes from MySQL database, and I've tried
str_replace("
", "
", $dr['email_template']);
I also tried sending header Content-type: text/plain but still no luck,
still the email comes through as one big line.
I'm sure this must be a common thing but I can't immediately find an
answer through Google.
View Complete Forum Thread with Replies
Related Forum Messages:
Carriage Returns
I've written a small questionnaire in PHP. Several questions are to be completed in a text box. All data enters ok, but when I retrive the results with the following: $query = 'SELECT * INTO OUTFILE "C:inetpubintranet esults'.$qnamed.''.$filenamedate.'.csv" fields terminated by "," lines terminated by " " FROM '.$qnamed.'' I encounter a problem. If the user completing the questionnaire has started a new line in the text box, then the file starts a new line every time a user did. Since I want to put this straight into excel (hence the .csv) it completly destroys the structure. I have tried to adding $question1 = trim($question1); when they are completing the questionnaire but it hasn't helped.
View Replies !
Replacing Carriage Returns?
i'm trying to remove all carriage returns in the input i get from GET, and am trying to replace them with three dots... however, this never seems to work... i'm still getting carriage returns... here's my script... any ideas as to what's wrong?: <?php $asdf = str_replace("%0D%0A","...",$_GET['text']); print $asdf; ?> <form method="GET" action="atest02.php"> <textarea rows="7" name="text" cols="29"></textarea> <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form><p>
View Replies !
Carriage Returns Not Displayed
I get the input from the user using a <textarea> and then save it to MySQL. When I retrieve the data and echo it I do not get any carriage returns. What am I missing? Example Input: Line #1 entered. Line #2 entered. Example Output: Line #1 entered.Line #2 entered.
View Replies !
Carriage Returns On Html Code
I'm rather new to PHP, though not to web developing. I'm developing a dynamic site with PHP and I have a problem with the HTML output. It looks like PHP is adding an extra carriage return for every line of code it outputs, which makes the layout to break down. An example:
View Replies !
Carriage Returns In Strstr And Str_replace
I need to replace carriage returns with <br> in a string. The problem is that I don't know how to refer to the hex for carriage return within strstr or str_replace. What do I include in the code? while ($myrow = mysql_fetch_array($result)){ if (strstr($myrow["text"],"?????")){ $myrow["text"] = str_replace("?????",'<br>',$myrow["text"]);
View Replies !
Eliminate The Carriage Returns Between The P Tags
Have some text like so: <P> adsfasdfasdfasdfasdffsd asdfasdf dsafsdfasdfasdfasdfasdf asdfasdfasdf </P> asdfasdf fasfdasd aasdfasdf I am trying to eliminate the carriage returns between the P tags (only). I have tried just about everything I can think of and am at a loss.
View Replies !
How To Feed Out The Text With Carriage Returns In A <textarea>?
I get input from a <textarea>. If my visitor adds carriage returns, the script changes them into <br>'s before reading the input into a text file. But when I read the text file back into the <textarea> (so that my visitor can make revisions to the original without having to type the whole thing over), it's one long line--no carriage returns. Anybody know how to feed out the text with carriage returns in a <textarea>? What do I change the <br>'s back into? n doesn't work. rn doesn't work. ?
View Replies !
Strip Tags - Keep The Carriage Returns/newlines
I am trying to take external content (text description) that could either be raw text, or HTML content - and assign it to a field that will be displayed on my website. Since I want to present the data on my website, I want to strip the majaority of HTML tags, that control is font, colour, size, underlines etc. I know that PHP provides strip_tags for this purpose. The thing is, I want it to keep the carriage returns/newlines, and if possible bullet points - does anyone know how I can achieve this?
View Replies !
How To Remove (replace) Carriage Returns In Output Code..
Let's say I have a line of code in a MySQL table as following: This is some text in a database table with a carriage return in the middle of it! Now, if I grab that code and echo it, the text will show up in the browser with no line break, which is fine. HOWEVER, if you look at the page source for that code, there is still the carriage return in the middle of the line. My question is, how can I remove that carriage return from the text in the source code.
View Replies !
Sending HTML Mail To Outlook Express With Mail()
I'm sending out an HTML mailer using the mail() function in PHP. I'm appending all of the headers to the message. This message displays correctly in Hotmail, Outlook 2000, and even Mac's OSX mail client. But, for some reason, Outlook Expess (on Win XP & OSX) displays the HTML code and doesn't render it. If, however, the recipient copies the HTML code and composes a new HTML message in Outlook Express, it gets sent correctly. This particular user is also getting other HTML mailers that display correctly, so I know that the client is capable of accepting HTML mail. I'm led to believe that PHP's mail() headers are not being interpreted correctly. In fact, they appear as the first 3 lines in the body of the message when viewed in Outlook Express. OK, here are some samples to tie this all together: First, the mail() code I'm using: PHP Code:
View Replies !
Mail(), Html & Outlook
I see that a while ago people had the same problems as me (http://www.phpbuilder.com/board/show...eadid=10240258), but I see no answers anywhere, so here goes: I am sending E-Mail from a form on my website using the php mail(). The problem is that when I send it as html, outlook has problems. Here are the headers I'm using: $headers = "From: $name <$email>"; $headers .= "Reply-To: $email "; $headers .= "MIME-Version: 1.0"; $headers .= "Content-type: text/html;"; When I do this, the E-Mail looks fine in squirrelmail (a webmail program www.squirrelmail.org), but in outlook...instead of getting a nicely formatted html message, I get a message that starts with "Content-type: text/html;" then continues on in plaintext, showing me all the html tags, etc. I tried switching some of the headers around, and if I switch the mime & content-type headers, I see html in BOTH E-Mail programs, but outlook starts the message off with "MIME-Version: 1.0" which I suppose is the lesser of 2 evils, but there is no reason that I should have to see that. Does anyone have a solution?
View Replies !
Mail() Seen As Junk In Outlook
I am trying to set up a system that automatically sends out emails to subscribers. I am testing it on my system using my own email address as the recipient address. For some reason it gets put into my junk folder by outlook express. Any way of stopping this? It will eventually be used to send to people who use all sorts of different email clients. Are there any easy ways to avoid these being filtered into the junk mail? Code:
View Replies !
Mail & Outlook Express
I'm sending an html email to members subscribed to a mailing list. However, the email isn't showing up as intended. This only occures in Outlook Express, Hotmail displays the email correctly. Code:
View Replies !
Send Mail From Outlook Web Access
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to use PHP to get inside an OWA (Microsoft Outlook Web Access) website to send email that way? The reason I ask is because my corporate office is going to do away with our rogue SMTP server access and force everything through Exchange Server. This makes it hard for our batch scripts on the Linux server to relay to internal email accounts that a job has failed or other errors.
View Replies !
Sending Mail From Php And Correct MS Outlook Receive
In my MS Outlook I use global address book to handling contacts. When I send email from Outlook to myself and double click on sender I get information about me from my global address book. When I use php mail() function to sending messages and then double click on sender I get specificity message email window only. How do I have to prepare header at mail() function (for example: FROM: ?) that after send and double click on sender in Outlook I get information about sender from Outlook global address book ?
View Replies !
SMTP Mail Problem (but Works OK In Outlook)
I'm finding when a mail is sent from a script, I get: Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.ntlworld.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:Documents and Settings However, when using Outlook and setting the SMTP agent in that to smtp.ntlworld.com, on the same PC, mail is sent fine (using Outlook) without any problems.
View Replies !
Make A Mail System Like Outlook Express
i need to make a mail system like outlook express that mean i run my system on client system it connect to server download mail on client system and after this i work with these mail exectly like outlook express. Firstly i am confuse how to download mails from web to client system?
View Replies !
Mail Ends Up In Outlook Junk Folder?
I have a mail PHP mail script set up to send email to me when a user completes a from on my web site. The problem I'm having is that if the mail is sent to an address on my domain it ends up in Outlook's "Junk-mail" folder. However if I send it to another adress not on my domain it works fine. Code:
View Replies !
Outlook Chopping Href Tags In Html Mail
I have been trying to send a multipart text and html message through the mail() funciton. It works beautifully with Hotmail. However, when it is received by the IceWarp web-based mail server or by Outlook, some of the HTML is hacked out. Specifically, on href tags, look like this when viewing the source: <a href=ttp://.... It also chops off the last character of the url and the quote before the end ">" on the tag. I can't figure out what is happening ....
View Replies !
Mail() Returns False But Mail Is Sent
I'm doing a bit of work for a guy and on his system the mail() function always returns false, but the mail is sent. Anyone come across this? Any ideas what is causing it and how to fix it? -- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine.
View Replies !
Images Shown In Outlook Express But Not In Outlook 2003
I'm writing a php code to send email in mime format. All seams ok if I read the email with outlook express, or Thunderbird, or any webmail, but if I open the email with Outlook 2003, I can't see the images, I just see a small box (I send 1 image) with inside the path of the image. The image is embedded in the message, it's not a link. <?php $header = "From: Sender <sen...@domain.org>"; $header .= "CC: Altro Ricevente <blabla...@domain.net>"; $header .= "X-Mailer: Our Php"; $boundary = "==String_Boundary_x" .md5(time()). "x"; $boundary2 = "==String_Boundary2_y" .md5(time()). "y"; $header .= "MIME-Version: 1.0"; $header .= "Content-Type: multipart/related;"; $header .= " type="multipart/alternative";"; $header .= " boundary="$boundary";"; $messaggio = "If you read this, your email client doesn't support MIME"; $message .= "--$boundary"; $messag .= "Content-Type: multipart/alternative;"; $message .= " boundary="$boundary2";"; $message .= "--$boundary2"; $message .= "Content-Type: text/plain; charset="iso-8859-1""; $message .= "Content-Transfer-Encoding: 7bit"; $message .= "Alternative message in plain text format."; $message .= "--$boundary2"; $message .= "Content-Type: text/html; charset="iso-8859-1""; $message .= "Content-Transfer-Encoding: 7bit";.....
View Replies !
Combination Of Outlook And Php - Create Stationery For MS Outlook Using PHP Engine
Some of my clients asked me to create "fancy emails" for them (aka html formatted emails). I know how to make a nice html document, but I had trouble creating a simple way to provide the document to my clients so that they could use it to. I know most of them use Outlook XP or Outlook 2003, so what I created was a page that creates a Visual Basic script that, when saved to the desktop and clicked (run), opens a message in outlook using the html provided.
View Replies !
Mail() Returns FALSE, No Err Msg
Sometimes my mail() function returns FALSE, but there is no error message. Error reporting is set to E_ALL. It seems to be a problem of the bcc: line. I use: $headers .= "Bcc: aaaa@aaa.aa,bbbb@bbb.bb,cccc@ccc.cc "; I currently have approx. 30 addresses in the line. Are there any limits? And how can I get an error message?
View Replies !
Mail() Function Returns FALSE
I'm having trouble getting sendmail to behave with the php mail() function. The function is returning FALSE. Today it doesn't seem to want to allow mail entered via unix "mail" command either although that worked yesterday (the mail took about an hour to show up!) I suspect it is to do with permissioning. Please can someone show me what permissions to check? sendmail is running as root, httpd as user www. OS is OpenBSD3.3. phpinfo() shows sendmail_from to have no value. Does that matter?
View Replies !
Carriage Return In Php
I have a querry that returns a number of values the following code cats them together: while ($obj = $result->fetch_object()) { $desc = $desc.$obj->pdesc.chr(13); } unfortunatly the chr(13) does not produces a line break between values as I expected. So........ how can this bit of code be changed to include a line break??
View Replies !
Carriage Return
I have this below $ip = $_SERVER['REMOTE_ADDR']; Now i want to add this ' ' at the end of the string above, how should i go about this?like this: $ip = $_SERVER['REMOTE_ADDR'] . ' ';
View Replies !
Php Won't Recognize A Carriage Return
php 4.3.6 windows xp i need to read a file and match a regular expressions with this pattern: " title" preg_match($title_reg, $line, $resB); $find_reg=" $resB[0]"; if (ereg($find_reg, $line2)) echo $resb[0]; now if i put this pattern in powergrep 2.3.2 it recognizes it. however if i try to use this pattern in my php script i get bupkis nada nothing zero. i've tried putting the carriage return in () and in [] but i get nothing still. when i print the pattern to my browser i see a space in front of my title showing me that php is recognizing something but it does not print the so i'm pretty sure that is why i'm not getting a match.now i know these are not printable characters but they are in a string so they should print to the screen. So my assumption is that php is erasing or translating /r/n into something so that it does not match my pattern.
View Replies !
Detecting A Carriage Return
I'm having another problem with my flat file blog that I hope you can help me with. I'm trying to set it so that whenever a user submits a comment, the script will automatically detect when the user has used a line break. At the moment, the script seems to just ignore this when displaying the comments and posts one large paragraph.
View Replies !
Carriage Return - Imported Into Excel
I am trying to write information to a file which will be then used to be imported into Excel. I noticed that some of the values that I am retrieving from a database have some sort of carriage return in them so after I have dumped the results to a database with a delimiter, some of the fields break the import because excel thinks its a new line. I've tried to replace chr(13) chr(10), , etc and I am not sure which one it is. The data that goes into the database is from simple textarea in an HTML form where the user can type whatever they want into it and use the enter key for w newline. Since nl2br() works with the database fields, I am assuming it reads the chr() value but which one is it I should be looking at to replace? Chr(10), Chr(13) combination of the two?
View Replies !
How Do I Carriage Return And Line Feed This?
I have a texts contents inside a file, which look like this below, Quote203.87.194.210 203.87.194.210 203.87.194.210 203.87.194.210 203.87.194.210 what i want from this texts contents from a file is to print it on a web page just like what you see above. I tried to use file_get_contents(); but the result is like this below, Quote203.87.194.210203.87.194.210203.87.194.210203.87.194.210203.87.194.210 what i really want to figure out is how to put CR/LF so that it will show the same format or original format on the page.
View Replies !
Str_replace :: Carriage Return To New Line
I have a text area where large amounts of text can be added but when ever a carriage return occurs the new line isn't echoed properly. txt file. <?php if ($_POST['Submit12'] == "Submit") { $file_name = "home.txt"; $open_file = fopen($file_name, "a+"); $file_contents= $_POST['title'] . '|' . $_POST['news'] .""; $replace = str_replace("", "<br />", $file_contents); fwrite($open_file, $file_contents); fclose($open_file); echo "<meta http-equiv="refresh" content="0;URL=homepagetry.php">"; echo "Form data successfully written to file"; } ?>
View Replies !
How To Convert Carriage Return In Mysql To Excel Format?
I have a varchar field in MySQL table that has carriage returns. I am trying to display this field in an Excel document. When I display this using (php_writeexcel class ) Excel I get small squares due to Excel converting the carriage returns. Is there a way to convert these carriage returns to display properly. I have already tried str_replace("","",$value) and does not work. Any regular expressions?
View Replies !
RegExp - Removing Newline/carriage Return In Data Entry/form Field
I have a database generated calendar (written in php) which puts the contents of one of the fields in a javascript mouseover popup ( Carriage Driving World and select "Calendar" from top menu) which is populated by event organizers entering data via a form. Some people are putting line feeds in their EventDesc (field used for javascript mouseover popup) which screws up the javascript, where linefeeds/newlines aren't allowed. The best solution I can think of is to either remove the linefeeds before the data gets stuffed into the database or when the data is presented to the javascript coding. Here's where I need help. What RegExp string do I use to pull linefeeds/returns? Some of teh entries have more than one which needs removed.
View Replies !
Php, Outlook 2k3
I have a php script that grabs user information from a form and sends me an email when an order has been placed. how do I make the default 'reply-to' address the email address of the customer? I'm hoping to click 'reply' within outlook 2003 and not have to type in each user's email for every order.
View Replies !
PHP And Outlook
I have an application part of which sends an email with attachment. I have implemented this in php, BUT now the customer wants it to appear in his Outlook email application (so he can amend defaults etc.) I cannot find a way to get outlook to accept the attachment using the mailto: Is there another way? Can it be done, or is it inhibited by Outlook?
View Replies !
Outlook And PHP
Does anyone know how to update Microsoft Outlook dynamically? i.e. when their calendar is updated on a website, the next time they look at Outlook it will update with the new events... If you don't know the complete solution or have any clues as to how to accomplish this, please let me know. Any and all information (hints) is desired as I am pretty stumped with this one.
View Replies !
Outlook
Need help making Outlook using existing MySQL DB as its source for address book. Application was created to manage MySQL based phone directory using PHP. Now management is inclined to use Outlook Address book. I would need to find some way to make Outlook to use existing MySQL DB as its source.
View Replies !
Including Outlook
IN MS outlook we have a thing set up so people can sceaduale the use of rooms/equiment is there a way to access this information from an intranet page? or at least have something that would open the persons outlook up into that area of outlook. It's just everyone seems to find it to complicated to hit the clock button then find "#*$!x" in the menu. You can tell them over and over agaibn this is how you request for this piece of equipment but they just don't get it. Bad thing is they don't use it then come back an hour before they need it and expect it to be there and waiting for them regrdless of someone else needing it.
View Replies !
Email For Outlook
I have gathered a list of emails and concatenated them into a string, for the purpose of using them to send emails out. I don't want to use the mail(), because I just want MS Outlook to open and put the list of emails stored in a var in the CC box. This way the user can put whatever information they need into the email and click send and it will send it. Is it possible to put it into the CC box or is it just better for the user to use the mailto code in HTML.
View Replies !
Getting Data From Outlook
retriveing data (appointments) from Outlook and to show it on my php-webpage. I found a link on the net (look below), but I don't got the right settings in registry on my pc, missing the "Mapi.session" line. Is there some application I have to install to get this up and working? Or are there other ways to get data from Outlook?
View Replies !
PHP To Microsoft Outlook
Is it possible to send meeting notifications to microsoft outlook through php? I guess it would be sort of an e-mail sent to an individual telling them they have been invited to attend an event and the event info is automatically added to thier outlook calender or something?
View Replies !
Outlook Download
I have a event scheduler on-line. All is fine, but want to add the ability to download the event the person just signed up for right into outlook or any calendar, but outlook will be far and away the most popular. Not sure how to go about this? Looked for some classes at phpClasses. BUt nothing seemed to worked. Tried iCalCreator, but am getting too many errors on the Windows server we are sitting on?
View Replies !
Appointment In Outlook
I have a calendar application written in php for in-house use that I'm trying to extend so that when people book a holiday, day-off, training etc they automatically get an email configured as an appointment so they only have to click on 'accept' and it gets inserted into their outlook calendar. I've sucessfully used the php mail() function within the application to create emails and that works ok but I can't find anything which tells me if its possible to do this. I've tried adding extra fields to the header (Location: When but to no avail.
View Replies !
|