Page 1 of 1

mime mail

Posted: Tue Mar 16, 2004 10:00 am
by ol4pr0
Following is my problem.

upload with the mime mail.

Code: Select all

// echo $file_name does return the file name.

// this part however doesnt add the 
// the $file_name attachement to the mail

@copy($file, "$absolute_path/$file_name");
include('Mail.php');
include('Mail/mime.php');
$text = 'Prueba';
$html = '<html><body>Prueba</body></html>';
$file = $file_name; // Doesnt Get the $file_name
Did try $_GET and $_REQUEST['file_name']

Didnt work however, Any other ideas?

Re: mime mail

Posted: Tue Mar 16, 2004 10:32 am
by TheBentinel.com
ol4pr0 wrote:Following is my problem.

upload with the mime mail.

Code: Select all

// echo $file_name does return the file name.

// this part however doesnt add the 
// the $file_name attachement to the mail

@copy($file, "$absolute_path/$file_name");
include('Mail.php');
include('Mail/mime.php');
$text = 'Prueba';
$html = '<html><body>Prueba</body></html>';
$file = $file_name; // Doesnt Get the $file_name
Did try $_GET and $_REQUEST['file_name']

Didnt work however, Any other ideas?
What is $file used for? Does that get passed to something? If you echo $file right after that assignment, what does it say? If $file_name is set, then you assign $file = $file_name and $file is blank, then it looks like something is resetting the value of $file_name (possible one of the includes?)

Posted: Tue Mar 16, 2004 10:41 am
by ol4pr0
Thanks , got it fixed. Does get weird trought the pop3 tho..

example.txt will be send as php6yPSHr ;-) guess i have to fix some in the java deamon hehe..