/    Sign up×
Community /Pin to ProfileBookmark

clean base_64

Hello, I am trying to send html email, which is working fine, but to include an image i need the clean base_64 output.

What am i doing wrong?

I’m using this…

[code=php]
<?php

//header(‘Content-type: image/jpeg’);
echo(file_get_contents(“http://inboxdesign.co.nz/images/imagerboxsmall.jpg”));

?>
[/code]

and getting this

[url]http://inboxdesign.co.nz/development/htmlmail/[/url]

but want more like this

[url]http://inboxdesign.co.nz/development/htmlmail/base64.txt[/url]

Any help would be greatly appreciated!

Sheldon

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NightShift58Dec 29.2006 — Have you looked at http://www.php.net/manual/en/function.base64-encode.php?

You can also take a look at http://phpmailer.sourceforge.net. This mailer class will take care of such things, among others...
Copy linkTweet thisAlerts:
@bokehDec 29.2006 — [code=php]$_I_want_it_more_like_this = chunk_split(base64_encode(file_get_contents("http://inboxdesign.co.nz/images/imagerboxsmall.jpg")));[/code]
Copy linkTweet thisAlerts:
@SheldonauthorDec 30.2006 — Thank you to you both.

Bokeh, as always - perfect!
×

Success!

Help @Sheldon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...