FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to include ALL of text in email notifications to those subscribed to a topic?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to include ALL of text in email notifications to those subscribed to a topic? [message #33401 is a reply to message #31787] Wed, 30 August 2006 14:40 Go to previous messageGo to previous message
ky@smi is currently offline  ky@smi   Denmark
Messages: 27
Registered: June 2006
Karma:
Junior Member
Hi Ilia,
Well, I'm really, really frustrated right now. I can't seem to get the multipart mime to work. The mail() sends messages, but they get scrambled into base64 encoding on the way out. What's really frustrating is that I saved the $to, $subj, $headers, $body to a text file, and if I run a small test code outside EGW and fudforum:

<?php
$to=file_get_contents("to.txt");
$subj=file_get_contents("subj.txt");
$header=file_get_contents("header.txt");
$body=file_get_contents("body.txt");

mail($to,$subj,$body,$header);
?>

It works. $to, $subj, $header, $body are not altered by the file_put_contents()...as far as I can tell, looking at its content in a hexeditor. Moreover, if I do

file_put_contents("to.txt",$to);
$to1=file_get_contents("to.txt");

and so on and mail($to1,$subj1,$body1,$header1) within the send_notification() or send_email() routine, the email is once again scrambled. Finally, taking a small piece of code that generates multipart MIME emails properly, and pasting it inside either send_notification() or send_email(), so it executes when I post a message in fudforum, it generates a scrambled email. It is as if there are two different mail() functions being called. One within EGW-fudforum, and another when called from outside.

It's all very mysterious....and I'm getting very close to abandoning multipart MIME emails, and going it with only plain text.
[Message index]
 
Read Message icon5.gif
Read Message
Read Message icon5.gif
Read Message
Read Message icon5.gif
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Signature doesn't show up when i post through mail
Next Topic: Posting and reading by email
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 08 18:32:33 GMT 2024

Total time taken to generate the page: 0.04007 seconds