Page 1 of 1
mail..
Posted: Sun Aug 01, 2004 12:44 am
by ol4pr0
Oke i search around a bit.. however i am confused on what determents what is considerd spam and what not!
And how to avoid mail getting in junkmail..
Asking this since Grrr.. ms hotmail considers words like Software and Applicaciones spam?!
Posted: Sun Aug 01, 2004 12:55 am
by ol4pr0
Anybody got an nice example of a mail code that can send mail fetching adresses from db, and send it to each mail adress indifidual(?) without it getting into the spam junkmail box ?
Oke sending indifidual(?) mail solved with a while fetch array, just the spam i have yet to figure out.
Posted: Sun Aug 01, 2004 5:31 am
by fresh
are you including a subject??
Posted: Sun Aug 01, 2004 1:08 pm
by ol4pr0
yes i am ( also mailed it from a personal account and that didnt end up in junk mail, so its not in the text or subject.. )
Posted: Sun Aug 01, 2004 1:16 pm
by feyd
then look at the differences in the headers you are sending...
Posted: Sun Aug 01, 2004 3:57 pm
by ol4pr0
Seems it got something to do with the image i am including in the mail..
is there anyway to avoid this.. i am sending a html mail <html><body><img src="image.gif"> ect...
Posted: Sun Aug 01, 2004 4:01 pm
by feyd
you either have to use a full url link or encode the image into the email. I don't remember how that's done, but it enlarges the mail by, well, the size of the email, so it's generally avoided..
Posted: Sun Aug 01, 2004 4:10 pm
by ol4pr0
link i have tried, that didnt go well.. let me look into the encode image thing..
Edit: Hmm weird when using
http://localhost ( its getting mailed and not ending up in the junk mail. when using the website
http://www.host.com/ it is ending up into the junk mail.
Posted: Sun Aug 01, 2004 4:17 pm
by feyd
it's quite possible that the domain name you are using (host.com) is a known spammer-haus to them.. it could also be the image filename..
Posted: Sun Aug 01, 2004 4:27 pm
by ol4pr0
Nope it has never been used.. ( its a dummy domain for testing only.. )
image filename - image.gif What can be wrong there..
Posted: Sun Aug 01, 2004 4:37 pm
by ol4pr0
i think this is what you mean with encoding
Email
However that example gets rejected completely.. ( rejected cuase it contains a virus.. according to ms hotmail )
Posted: Sun Aug 01, 2004 8:08 pm
by ol4pr0
Oke this doesnt echo the image.. but will mail the code that is within the image.txt
Code: Select all
#encode, ofcourse not working..
$html = header("Content-type: image/gif");
$image = "image.txt";
$fp = fopen ($image, "r");
$contents = fread ($fp, filesize ($image));
$html .= '<html><body>';
$html .= base64_decode($contents);
Posted: Sun Aug 01, 2004 9:20 pm
by feyd
images need to be encoded seperately from other data types, and your header call, is to the browser generating the script, not to the email..
Posted: Sun Aug 01, 2004 11:52 pm
by ol4pr0
could you give an example on that ?
Posted: Mon Aug 02, 2004 1:18 am
by fresh
open up outlook and insert your image, then save it as an .eml file then open it in notepad and copy everything below the date line and then paste it into your code, walla... instant base 64 code...
