Re: Email is blank to a .net address works fine for .com



"Martin Jay" <martin@xxxxxxxxxxxxxxxx> wrote in message
news:AhL8cWJbyeYEFwIM@xxxxxxxxxxxxxxxxxxx
In message <I7mdnbt3up4W3fzZnZ2dnUVZ_u-dnZ2d@xxxxxxxxxxx>, Joe Joe
<spamblocker@xxxxxxxxxx> writes
I have a sign up process in place to view restricted documents. When a
user
signs up for the first time they are sent an Email to verify they are
using
a legitimate Email address. Click the link, return to the site to, Email
is
verified, given access to restricted area. Plain text Email, not html.

But it does appear to be an HMTL email. Perhaps the email client only
displays emails that are in plain text?

/*
$subject = "".$title;
$message = ' <html> <head> <title></title> </head>
<body>'.$emailmessage.'</body></html> ';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "To: <".$email.">\r\n"; $headers .= "From: ".$from.">\r\n";
mail($to, $subject, $message, $headers);
echo $from.' '.$email,' '.$title.' '.$message;
*/

I would check the contents of the variables before mail(), and look at the
'raw' content of the email received.
--
Martin Jay

Here's more of the code still not working. I am using Outlook 2003 set to
read html and plain text. Email is formatted as plain text. I have a .com
and .net Email address, same host, same server for both accounts, same Email
client, same settings, they go to same inbox, both Netsol domains??? The
..net is blank the .com is perfect.

<? error_reporting(0); ?>
<?php
include 'connectiondata.php';


function sendemail($from, $email, $title, $emailmessage)
{
/*
$subject = "".$title;
$message = ' <html> <head> <title></title> </head>
<body>'.$emailmessage.'</body></html> ';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "To: <".$email.">\r\n"; $headers .= "From: ".$from.">\r\n";
mail($to, $subject, $message, $headers);
echo $from.' '.$email,' '.$title.' '.$message;
*/


$msg = $emailmessage;



$recipient = $email;

$subject = $title;



$mailheaders = "From: webmaster@xxxxxxxxxxxxxxxx\n";
$mailheaders .= "Content-type: text; charset=iso-8859-1\r\n";
$mailheaders .= "Reply-To:". $email."\n\n";
$mailheader.="MIME-Version: 1.0\r\n";



mail($recipient, $subject, $msg, $mailheaders);

}


.



Relevant Pages

  • Re: Plain text versus HTML email
    ... I don't think what you want can be done, in the HTML item you'd probably have something like an reference for the URL plus a text rendering for it as part of the link tags. ... In plain text that's used to form the plain text link. ... When it is read by a non-HTML email client it doesn't display the image but does display the clickable-link URL. ...
    (microsoft.public.outlook.program_addins)
  • Re: Plain text email?
    ... >avoid the convertion to HTML by the email client or Gmail, ... * do you create alternative text and HTML parts for the body? ... I have never managed to send plain text email and receive it as HTML. ... Subject: test email ...
    (comp.lang.python)
  • Re: current/modern email netiquette
    ... Does any Windows email client output clean and efficient HTML by default? ... Almost all the HTML I see in email is hideously bloated and has atrocious style. ... From experience writing simple Web pages, I know that HTML can look nice while taking hardly more bandwidth than plain text. ... I had to beware of the email client quietly "improving" my work. ...
    (comp.mail.misc)
  • Re: Simple Question
    ... pane, then yes it is dangerous to you, especially if your system is ... So if I use a different email client such as Thunderbird, ... but help yourself and select to *view* received email in Plain ... HTML is for web pages, ...
    (alt.comp.anti-virus)
  • Re: New Imformation: Also Kellys Line 227 Left: Set IE Fonts
    ... that is different than posting html. ... included via plain text and are on rare occasions here. ... 2004 Windows MVP "Winny" Award ... > *what notepad is or where I can find it*--it was introduced in Windows 95 ...
    (microsoft.public.windowsxp.general)