21, November 2008

mail with attachement - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Miscellaneous scripts or snippets (Moderator: Olaf)
Topic: mail with attachement
« previous next »
Pages: [1] Print

Author Topic: mail with attachement  (Read 2303 times)
Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« on: Sep 19, 2006, 09:44:51 AM »

Hey

i am trying the mail with attachement class, everything works fine except when i get it in my mailbox thats how it looks, is it the mime type or something else?

can anyone help me out? thanks

This is a multi-part message in MIME format.



--_3c55c82a823ba5c4a0022e3815477935
Content-type:text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit


hopelijk komt dit toe

--_3c55c82a823ba5c4a0022e3815477935
Content-type:image/jpeg;
         name="072.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;        filename="072.jpg"


<snipped>
« Last Edit: Sep 19, 2006, 10:46:42 AM by olaf »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6435
39434 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 19, 2006, 10:48:03 AM »

Try to change this setting:

Code:
<?php
define
("LIBR""\r\n"); // use a "\n" if you have problems



Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #2 on: Sep 19, 2006, 10:54:59 AM »

thanks Olaf this works

Pieter
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6435
39434 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Sep 19, 2006, 11:13:20 AM »

thanks Olaf this works

Pieter

you're welcome, stay in touch with this forum I developed a mail class with support of html and will release the class soon...


Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #4 on: Sep 19, 2006, 11:14:57 AM »

ok i will do so

another question, when i want to send an mail without attachement, how can i do this with the same code?

P
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6435
39434 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Sep 19, 2006, 11:33:55 AM »

yes of course just skip this code(s)

$test->create_attachment_part("image.gif");


Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #6 on: Sep 19, 2006, 11:46:55 AM »

ok that works fine tx

but this doesnt work

$my_mail->del_temp_file($full_path);
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6435
39434 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Sep 19, 2006, 11:53:55 AM »



$my_mail->del_temp_file($full_path);

possible, that depends on you server configuration (ask you provider which linux command you may use)


Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #8 on: Sep 19, 2006, 11:54:46 AM »

it is on OS X server
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6435
39434 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Sep 19, 2006, 12:04:01 PM »

it is on OS X server
then you have to check the net for "php unlink osx" or somthing (no idea about the mac)


Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #10 on: Sep 19, 2006, 12:27:39 PM »

just put this:

<?php

unlink($full_path);

?>

works great
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6435
39434 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: Sep 19, 2006, 01:47:58 PM »

I think you did something wrong with your code the delete function form the upload class is trying sevelal delete functions


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4153
Tags : html forums linux email Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Miscellaneous scripts or snippets (Moderator: Olaf)
Topic: mail with attachement
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 21, 2008, 08:04:27 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.715
Total Topics: 7.647
Total Members: 4.390
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: panetolikos

34 Guests, 4 Users online :

20 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.