/    Sign up×
Community /Pin to ProfileBookmark

sending html email with images

Hi
I want to send images via html email. but the image is not displayed. i am using the entire url for the image .

the header i am sending is this:
Content-Type: text/html; charset=iso-8859-1n

there is any mime type i have to use?

i am using this command:
mail(“$mail”,”$title”,”$message”,”$headers”);

and trying to send a little logo using:
[url]http://server.com/images/logo.gif[/url]

this is the code:

$headers = “Content-Type: text/html; charset=iso-8859-1n”;
$headers.=”From: $whosentn”;
$result=mysql_query(“SELECT * FROM news”) or die(“Fail”);

while ($line=mysql_fetch_array($result)) {
$mail=$line[‘EMAIL’];
mail(“$mail”,”$subject”,”$message”,”$headers”);
}

But the logo is not sent how can i workaround this problem?
the header i am sending is correct for this type of email? do i have to specify a mime? or <base img>? any extra tag?

Thank´s in advance

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@sciguyryanAug 19.2004 — As far as I know, as long as the reciever has HTML E-mails enabled then that will work just great ?



RyanJ
Copy linkTweet thisAlerts:
@iamlucky13Aug 19.2004 — The link you posted for the logo said it was outdated or moved. I think the header looks good. I assume the email is being sent properly?
Copy linkTweet thisAlerts:
@amrigoauthorAug 19.2004 — i try to remove the " but yes it said it is was outdated or moved.
×

Success!

Help @amrigo 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.19,
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,
)...