/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] googlemail showing my mail up as an 0 block att?

doing some testing on a user html email “thx for ur business” etc..

i can see it ok from thundebrird client but when i pick up with googlemail it appears as 0 block attachment and no body content?

wtf?

i’m using an ob_start with a text/html split then flush..

[CODE]$headers .= “rnContent-Type: multipart/alternative; boundary=”PHP-alt-“.$random_hash.”””;

ob_start();

–PHP-alt-<?php echo $random_hash;?>–
Content-Type: text/plain; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

blah, blah, blah plain text

–PHP-alt-<?php echo $random_hash;?>–
Content-Type: text/html; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

blah, blah, blah html

ob_get_clean();[/CODE]

thought it might be tied up with dam charsets, but not sure now :rolleyes:

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@hitecbillauthorMay 05.2009 — i'm using this example but i'm not sure if it's right :rolleyes:

http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php#html
Copy linkTweet thisAlerts:
@hitecbillauthorMay 05.2009 — [COLOR="DarkOliveGreen"]well, thx for all the replies guys!!!







anyway, i fixed it myself, i found this code here:



http://code.web-max.ca/misc_htmlemail.php





[B]...and it works..[/B][/COLOR]
×

Success!

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