mime mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

mime mail

Post 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?
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Re: mime mail

Post 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?)
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post 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..
Post Reply