28, May 2012

mail with attachement - webmaster forum

 
Webdigity webmaster forums
[ 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 4011 times)
Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« on: Sep 19, 2006, 08: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, 09:46:42 am by olaf »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 19, 2006, 09:48:03 am »

Try to change this setting:

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


Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #2 on: Sep 19, 2006, 09:54:59 am »

thanks Olaf this works

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


It's time to use PHP5!


« Reply #3 on: Sep 19, 2006, 10: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...

Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #4 on: Sep 19, 2006, 10: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Sep 19, 2006, 10:33:55 am »

yes of course just skip this code(s)

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

Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #6 on: Sep 19, 2006, 10: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Sep 19, 2006, 10: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)

Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #8 on: Sep 19, 2006, 10:54:46 am »

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


It's time to use PHP5!


« Reply #9 on: Sep 19, 2006, 11:04:01 am »

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

Kill the googlebot
*
Posts: 6
40 credits
Members referred : 0


« Reply #10 on: Sep 19, 2006, 11:27:39 am »

just put this:

<?php

unlink($full_path);

?>

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


It's time to use PHP5!


« Reply #11 on: Sep 19, 2006, 12:47:58 pm »

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

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

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?
May 28, 2012, 02:23:48 pm





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!






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