Hi there, I'm using phpmailer - to send allmy emails out...

(my other scripts save text-files to the server & this one (mailer)
script, extracts information from the file & sends the message &
deletes the file...)

MOST of my messages - are fine (well, theyre all fine :)  )

However - I want to re-format one of the messages to be NOT in HTML,
but - in a table form...

EG - All the characters are fixed-width sizes - & not variable widths.....

Does anyone know the phpmailer command to do that....

Eg - So I can format my message in a table layout, & the end user
reads it in a table form... (plain text)...

Did that make sense ?

- Once I know the line, or lines to insert - I can turn it on/off -
based on the subject line... - Leaving the other messages the same as
its currently being processed....

- Heres the code...

PS - I dont know why I made the 'quoted printable'  a comment - But
its been going fine like this - for ages....

G

===============================
require("class.phpmailer.php");

$mail = new PHPMailer();
#$mail->$Encoding  = "quoted-printable";
$mail->IsSMTP();                                   // send via SMTP
$mail->Host     = "mail.kwister.com"; // SMTP servers
$mail->SMTPAuth = true;     // turn on SMTP authentication
$mail->Username = "kwisterlist";  // SMTP username
$mail->Password = "kilopa"; // SMTP password

$mail->From     = $from;
$mail->FromName = "$from";
$mail->AddAddress("$to");
$mail->AddReplyTo("$from");

$mail->WordWrap = 70;                              // set word wrap
#$mail->AddAttachment("/var/tmp/file.tar.gz");      // attachment
#$mail->AddAttachment("/tmp/image.jpg", "new.jpg");
$mail->IsHTML(false);                               // send as HTML

$mail->Subject  =  $subject;

#$mymsg = imap_qprint($text);
#$text=$mymsg;

$mail->Body     =  $text;
#$mail->AltBody  =  $text;

if(!$mail->Send())
{
   echo "Message was not sent <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
echo "\nSELECTED FILE - FILE1 = '$file1'\n";
echo "SELECTED3 - '$file'\n";
if (file_exists($file1)) {
unlink($file1);
echo "DELETED $file1\n";
}
   exit;
}


-- 
G Stewart
http://e-services.kwister.com/
NZ community groups - [EMAIL PROTECTED]


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to