Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 !
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() 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 !
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 Replies !
Send Mail By Connect PHP To Ms Outlook?
how can we send mail by connect PHP to ms outlook?

View Replies !
HTML Email - MS Outlook
I coded what I thought would send html email from a website. The code actually works in Apple's mail program, Yahoo mail and gmail, but not in MS Outlook. In Outlook all the html tags are printed in the email. In the other email all the html tags are handled properly. Is it my code or is it another instance of MS doing its own thing?

MY CODE:
$headers = "MIME-Version: 1.0";#html hdr
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: $email";#from .....

View Replies !
Send Mail To Outlook From Http://localhost
Does anyone know how to set up a script to send mails from http://localhost to your local mail client (Outlook, to be exact).

View Replies !
Read E-mail Addresses From Outlook Express
how to read email addresses from outlook express (from local hard disk) It will be great if you help me to read e-mail addresses from and folders (of outlook Express) like Send, input, output etc).

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 !
Php->HTML Email: Outlook Cache?
I'm sending out a newsletter via PHP that sends HTML code. Within that code I have a tracking image that reports if the email was opened. (fairly common reporting)

Anyway, if you open the HTML email once, it counts it as opened. If you open it twice, it does not count that. I've tried adding NO CACHE type options to the HTML email itself with no luck. Is it something maybe on the PHP side?

I'd think everytime outlook opened that email it would reload the tracking image, but maybe not. Has anyone else run into this? Is there a workaround either client or server-side?

View Replies !
Outlook Cache/html Pages?
I'm sending out a newsletter via PHP that sends a HTML code. Within that code I have a tracking image that reports if the email was opened. (fairly common reporting)

Anyway, if you open the HTML email once, it counts it as opened. If you open it twice, it does not count that. I've tried adding NO CACHE type options to the HTML email itself with no luck. Is it something maybe on the PHP side?

I'd think everytime outlook opened that email it would reload the tracking image, but maybe not. Has anyone else run into this? Is there a workaround?

Please keep in mind, this isn't for spam and i'm not a spammer, this is for a client who wants to send newsletters to it's subscribers.

View Replies !
Submitting HTML Form From Email Message (MS Outlook)
We are getting problem with submitting HTML form from email message (MS Outlook) over HTTPS to PHP page. 5 times out of 10 it does not work. We are printing $_POST array and it appears blank.

Also, there is no problem with submitting form from browser. PHP 5.1.2 installed on Win2003 Server (IIS6). Is it known issue?

View Replies !
Mime Types - Outlook Shows HTML Code
I'm having a spot of bother with mime-types.

The problem I am having is that when I send out a newsletter and I then view it using Outlook it shows HTML code. Now I've used the same code on another newsletter, and that works okay.

The code below is what I use in the $header variable. Now I'm not quite if its my code, or its something to do with mail server settings, if thats the case then I will have to contact my host. Code:

View Replies !
Problem Of The Php Mail Function Not Formatting Emails Properly For Outlook Express On A Mac
anyone found a fix ever for the problem of the php mail function not formatting emails properly for outlook express on a mac, they always appear blank, something to do with the mime headers apparently......

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 Function :: Send Form In HTML Mail
I am trying to use the PHP mail function to repopulate the information that has been filled out on a form and send the form out in an html email the same way that it looked when the individual filled it out. The problem I am having is with the Radio buttons and repopulating them. Code:

View Replies !
HTML Mail With Mail(). (Bad Formatting It Says)
I'm trying to send a HTML-mail with mail(), and I'm using the function can be seen here:

http://www.webmasterworld.com/forum88/3288-1-10.htm

The script is working on some clients but not on everyone. The fault I get from the headers in the sent mails is:

"X-Mail-Format-Warning: Bad RFC2822 header formatting "

I'm kinda new to this stuff with multipart-MIME emails, and would appreciate some help.

View Replies !
HTML E-mail Using Mail()
This could be a bit of a newbie question: I need to send an e-mail in HTML format (including images) using the PHP mail function. I have tried placing HTML tags like <br> etc. How does one write this kind of e-mail so that the recipient's Outlook Express or whatever recognises and interprets the HTML format?

View Replies !
Mail () HTML
I'm having trouble with the mail function. When the mail is sent from my web mail server, to MS outlook...it looks formated correctly, the HTML works as coded, etc. But when I try to retrieve it using my web based email application by HORDE, the HTML doesn't parse properly. I know the problem reside in this mail() function, because when I send an email from my desktop MS Outlook to the web based email, I can open the email and the HTML is just fine (i.e. a double return, translates to an empty space in between sentences), but if the same is sent from my php mail server, instead of a blank line in between, I get <BR> written litterly. PHP Code:

View Replies !
Html E-mail
I have a php e-mail script that can send a html e-mail. The problem is I can't figure out how to include a graphic in the html. I mean I know you can put the <img> tag in the file, but how do you get php to send the actual graphic? Here is my code:

View Replies !
Html In Mail()
how do i allow html to work in the mail messages?

View Replies !
HTML Mail()
I've looked at a few tutorials on sending HTML email. All the tags show up in the email, and none of the HTML formatting is being applied.

$email = "stinkbomb@yourhouse.com";
$content = "<p style='color:blue'This text should be blue</p>";
$header = "From: My Store <info@mystore.com>";
$header .= "Reply-To: info@mystore.com";
$header .= "Return-Path: info@mystore.com";
$headers  .= 'MIME-Version: 1.0' . "";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "";
mail ("$email","Look at my HTML email","$content","$header");

What am I doing wrong here?

View Replies !
PHP & HTML E-mail
I can't find any examples/tutorials on how you would send an e-mail with HTML. I know it doesn't work quite right if you just embed the HTML so what do I need to put in the headers?

View Replies !
Html Mail
i m looking for the possibility to send over php an html mail with an picture in the head of the mail and an hyperlink in the text which is under the picture.

the problem is i reach it with the picture in the head and without an active link or the link is in the mail but not the picture.

View Replies !
Non-HTML E-Mail
PHP Code:

$headers  = "MIME-Version: 1.0
";
//$headers .= "Content-type: text/html; charset=iso-8859-1
";
$headers .= "From: $from_email
";
$headers .= "Reply-To: $from_email
" ;
mail($_POST['friend_emails'], $_POST['your_name']." has sent you a message!", $content, $headers, "-f".$from_email);

The problem is if I comment out the HTML line it just shows the headers within the e-mail. I take it out and it 's HTML again obviously. I just need a basic e-mail with 3 new lines and the "from" field to show correctly without HTML. Messing around I either got from my server or blank.

View Replies !
Automated HTML E-mail
Is it possible to send a HTML e-mail automatically using PHP.

View Replies !
Sending Html Via Mail
I want to send mail that is formatted as nicely as possible.
For this, I plan to send raw html code URL...but the mail prints out the html also...how do i make the html formatting show ?? I guess I'll have to add some specific header...is it true ??

View Replies !
Sending Html Mail?
I made a .html file taht I want to send by mail, but not as a attatchment. I want it to be sendt as a html mail.

I could use microsoft word and send it trough there, but word will change some of the html code.

View Replies !
Sending HTML Mail Using PHP
I know how to send plain text e-mail using PHP's mail() function, but how to send HTML e-mails using mail() function.

View Replies !
Sending Html Mail
A client wants to send out a mail in html including graphics. The idea
is that it looks like a personalised coupon that they can print off.
I've had a look at http://phpmailer.sourceforge.net/ and the html
example seems pretty straightforward but it doesn't give much
information on the graphics. Should the images be sent as attachments
and simply referenced in the html or am I completely off track here?
--

View Replies !
Html Mail Sending
I tried to send emails in html format in this line : PHP Code:

View Replies !
Php Mail With HTML Tags
I have written a php code to send the mail,Iam able to receive the mail but the mail is coming with all html Tags included like Code:

View Replies !
Get The Html To Show In The E-mail
I'm trying to get the html to show in the e-mail (so 'here' is highlighted and they can click on it) but instead it just shows the link. I've tried a couple of things but am getting errors. How do I go about doing this? Code:

View Replies !
Html/PHP Mail Attachment
I've managed to put bit's and pieces of code together to create an online email form with attachment.

When I click on send the email gets sent and my email client doesn't tagg it as a spam, which is good, BUT the attached file size is 0.0 Kb. The name of the attached file is correct and the format, but it's empty. Code:

View Replies !
Mail Form With HTML
I have been successfully using the following code to process my forms (email addresses removed) Code:

View Replies !
Table In Html Mail
What I wonna do is send a email in html format. I have created some variables and just want to add them within a table. I make use of the mail() function. My basic idea is to create the body of the mail, e.g. PHP Code:

$message = '
<html>
<head>
  <title>TITLE</title>
</head>
<body>
  <p>The message body!</p>
  <table>
    <tr>
      <th>Col1</th><th>Col2</th><th>Col3</th><th>Col4</th>
    </tr>
    <tr>
..............................

View Replies !
Sent HTML With The Mail Function
I want to sent HTML with the mail function, shouldnt this be the way to do that?

<?php
$headers .= "FROM: ".$settings['sitename']."";
$headers .= "Content-type: text/html";

mail($email, $sub, $msg, $headers);
?>

View Replies !
Sending HTML Mail()'s
I have a problem when sending HTML mail (using css). The mails just incluse all the HTML tags... So can you send both text and HTML so that the server receiving can use the text mail if HTML mail is not supported?

Or is it always best only to use plain text as I understand is advised? - it is the first time Ill use the mail() function.

View Replies !
Html Mail() Problem
I'm using php and mysql to read from a table and mail() html content to my subscribers. Problem is that it looks ok when it arrives at some addresses (eg Hotmail) but doesn't for others (eg btconnect.com) where it loses links etc.

The content body of my messages include html tags but I don't wrap the whole thing within <html>, <head> and <body> tags - is this the problem?Anyone know of a 'bullet-proof' way of ensuring content gets through intact? This is the relevant part of the script. Code:

View Replies !
How Do You Allow Html Tags In The Mail?
I know how to send a regular email with only text using the mail function, but how do you allow html tags in the mail? I've tried using tags such as <b>, etc. but they dont work.

View Replies !
Send HTML Mail
I'm trying to send a html email. My message headers are as follows: PHP Code:

$header = "From: someone@yourwebsite.com";
$header .= $messageBody."";
$header .= "--$boundary" .
"Content-Type: text/html; charset=ISO-8859-1" .
"Content-Transfer-Encoding: base64";
$header .= chunk_split(base64_encode);
$header .= "MIME-Version: 1.0";

View Replies !
Mail() Text/html
I am creating a script that sends emails. You write a HTML version and a TEXT version. I have been told if you send to sets of ' headers ' and to ' body's ' the mail client will pick which one it needs. I have done my research and cannot find a way to send two body's and two sets of headers.

View Replies !
Mail() & HTML Email With Images
I've been busy with sending email by using the PHP mail() command. I tried to send a mail with HTML layout but somehow the images didn't work..

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<?php

$adress = 'mymail@internet.com'
$subject = 'MyMail'
$message = "<body bgcolor=#0088ff><img src="www.mydomain.com/printer.gif"><font face=arial color=white>This is <b>a</b> test</font>";
$extra = "From: "MySelf" me_and_myself@internet.comnReply-to: me_and_myself@internet.com";
//$extra .= "nReturn-Path: <me_and_myself@internet.com>";

$extra .= "nContent-Type: text/html;";

if ( ! mail ($adress,$subject,$message,$extra)) { // [, string additional_headers])
print( "Blieb! Error!" );
}

?>

Can anyone tell me what I'm doing wrong or what I'm forgetting? I know it's possible because I receive a lot of mailings with images in them (is very frustrating)

View Replies !
Sending HTML Email With Mail();
i have set up this script from other scripts but sometime it does not send any email and other times it does
with this im not shure why,i have edited other mail scripts and finaly come up with this which when it works works well.
there are two identicle mail functions there the first sends a email to the user saying thanks for registering the second sends a email to 4 admins telling them about the new user.

can you pick out why it,s not working?

View Replies !
Mail () Display All Html Codes
i'm using the mail() to send mail to customer once they confirmed their orders.

my problem is, i wnat to display my mails with tables but when i received the email, it display out all the html codes.

View Replies !
Mail Html String Longer Than 255
I've got this script that I found on the Internet with which I want to send an email with HTML in it. So I make a string in which I put all my HTML, but that is longer than 255.

Is there a blob or something else that I can use ?
I need it really bad.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved