You are here: Re: Email is blank to a .net address works fine for .com « All PHP « IT news, forums, messages
Re: Email is blank to a .net address works fine for .com

Posted by Joe Joe on 05/10/06 17:28

"Martin Jay" <martin@spam-free.org.uk> wrote in message
news:AhL8cWJbyeYEFwIM@spam-free.org.uk...
> In message <I7mdnbt3up4W3fzZnZ2dnUVZ_u-dnZ2d@comcast.com>, Joe Joe
> <spamblocker@excite.com> 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@customersite.net\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);

}

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация