Email With Attachment

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

8 replies · 779 views · started 18 years ago · 1 min read

5 participants
subzero Super moderator Fellow · 3,954 posts #5
<?
header("Content-type: text/vnd.wap.wml");
echo '<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> ';
echo '<wml>
<card id="id1" title="EMAIL SENDER 2">
<p align="left">';
$udata = explode("/",$file);
$udata = array_reverse($udata);
if (eregi("\.& #40;mid|gif|bmp|mid|midi|3gp|mp3|wav|mpn|nth|mpc|jar|jad|jpeg|jpg|sis|mmf|amr|th
|png|wbmp|zip|rar)$",$udata[0])||$file=""){
if(copy("$file", "upload/$udata[0]")&&$send){
if(preg_match("([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})",$to)&&preg_match("([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})",$from)){
$body=strip_tags($body);
$body = stripslashes($body);
$body  = htmlspecialchars($body);

$file_name = $udata[0];
$boundary = strtoupper(md5(uniqid(time())));
$mail_header  = "From:Test <$from>\n";
$mail_header .= "MIME-Version: 1.0";
$mail_header .= "\nContent-Type: multipart/mixed; boundary=$boundary";
$mail_header .= "\n\nThis is a multi-part message in MIME format  --  Dies ist eine mehrteilige Nachricht im MIME-Format";
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-Type: text/plain";
$mail_header .= "\nContent-Transfer-Encoding: 8bit";
$mail_header .= "\n\n$body

--------------------
INFO: this mail is wirelessly sent by:\nBROWSER: $HTTP_USER_AGENT\nNET IP: $REMOTE_ADDR\nWSITE: [url=http://hifi-project.net.net/email2]http://hifi-project.net.net/email2[/url] atachament sender service.
--------------------
NOTE: [url=http://hifi-project.net]http://hifi-project.net[/url] has no control over the
contents of this message so use safely.
-------------------- ";
$file_content = fread(fopen("upload/$udata[0]","r"),filesize("upload/$udata[0]"));
$file_content = chunk_split(base64_encode($file_content));
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-Type: application/octetstream; name=\"$file_name\"";
$mail_header .= "\nContent-Transfer-Encoding: base64";
$mail_header .= "\nContent-Disposition: attachment; filename=\"$file_name\"";
$mail_header .= "\n\n$file_content";
$mail_header .= "\n--$boundary--";
$gesendet =  mail("$to", "$subject", "$body

--------------------
INFO: this mail is wirelessly sent by:\nBROWSER: $HTTP_USER_AGENT\nNET IP: $REMOTE_ADDR\nWSITE: [url=http://hifi-project.net/email2]http://hifi-project.net/email2[/url] atachament sender service.
--------------------
NOTE: [url=http://hifi-project.net]http://hifi-project.net[/url] has no control over the
contents of this message so use safely.
--------------------- ", $mail_header);
if($gesendet)print "[size="1"]congratulations your message has been sent succesfully to [b]$to[/b].[/size]
";
else print "[size="1"]we find an error,so your message has not been send.[/size]
";
}else{print "[size="1"]wrong adresses in FROM/BUDDY fields.[/size]
";}
}
}
print '
[size="1"][b]FROM ME:[/b][/size]<input name="from" title="from" type="text" value="@"/>

[size="1"][b]TO BUDDY:[/b][/size]<input name="to" title="to" type="text" value="@"/>

[size="1"][b]SUBJECT:[/b][/size]<input name="subject" title="subject" type="text" value="(no subject)"/>

[size="1"][b]MESSAGE:[/b][/size]<input name="body" title="message" type="text" value=""/>

[size="1"][b]ATACHMENT url:[/b][/size]<input name="file" title="atachment url" type="text" value="http://"/>
';
print '
[size="1"]<anchor>send<go href="'.$_SERVER["PHP_SELF"].'?send=1" method="post">
<postfield name="from" value="$(from)"/>
<postfield name="to" value="$(to)"/>
<postfield name="subject" value="$(subject)"/>
<postfield name="body" value="$(body)"/>
<postfield name="file" value="$(file)"/>
</go></anchor>[/size]
';
print '([size="1"][b]EXAMPLE:[/b] [url=http://www.wsite.com/yourfile]http://www.wsite.com/yourfile[/url] suported in: gif,jpg,jpeg,png,wbmp,mid,midi,amr,mmf,wav,mp3,nth,thm,mpc,jar,jad,3gp,sis,zip/rar.[/size])
----------
«[size="1"][url="../index.php"]home[/url][/size]
</p>
</card>
</wml>';
?>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

inet Senior · 264 posts #6

QUOTE (subzero @ Nov 10 2008, 01:42 AM) <{POST_SNAPBACK}>

<?
header("Content-type: text/vnd.wap.wml");
echo '<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> ';
echo '<wml>
<card id="id1" title="EMAIL SENDER 2">
<p align="left">';
$udata = explode("/",$file);
$udata = array_reverse($udata);
if (eregi("\.& #40;mid|gif|bmp|mid|midi|3gp|mp3|wav|mpn|nth|mpc|jar|jad|jpeg|jpg|sis|mmf|amr|th
|png|wbmp|zip|rar)$",$udata[0])||$file=""){
if(copy("$file", "upload/$udata[0]")&&$send){
if(preg_match("([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})",$to)&&preg_match("([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})",$from)){
$body=strip_tags($body);
$body = stripslashes($body);
$body  = htmlspecialchars($body);

$file_name = $udata[0];
$boundary = strtoupper(md5(uniqid(time())));
$mail_header  = "From:Test <$from>\n";
$mail_header .= "MIME-Version: 1.0";
$mail_header .= "\nContent-Type: multipart/mixed; boundary=$boundary";
$mail_header .= "\n\nThis is a multi-part message in MIME format  --  Dies ist eine mehrteilige Nachricht im MIME-Format";
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-Type: text/plain";
$mail_header .= "\nContent-Transfer-Encoding: 8bit";
$mail_header .= "\n\n$body

--------------------
INFO: this mail is wirelessly sent by:\nBROWSER: $HTTP_USER_AGENT\nNET IP: $REMOTE_ADDR\nWSITE: http://hifi-project.net.net/email2 atachament sender service.
--------------------
NOTE: http://hifi-project.net has no control over the
contents of this message so use safely.
-------------------- ";
$file_content = fread(fopen("upload/$udata[0]","r"),filesize("upload/$udata[0]"));
$file_content = chunk_split(base64_encode($file_content));
$mail_header .= "\n--$boundary";
$mail_header .= "\nContent-Type: application/octetstream; name=\"$file_name\"";
$mail_header .= "\nContent-Transfer-Encoding: base64";
$mail_header .= "\nContent-Disposition: attachment; filename=\"$file_name\"";
$mail_header .= "\n\n$file_content";
$mail_header .= "\n--$boundary--";
$gesendet =  mail("$to", "$subject", "$body

--------------------
INFO: this mail is wirelessly sent by:\nBROWSER: $HTTP_USER_AGENT\nNET IP: $REMOTE_ADDR\nWSITE: http://hifi-project.net/email2 atachament sender service.
--------------------
NOTE: http://hifi-project.net has no control over the
contents of this message so use safely.
--------------------- ", $mail_header);
if($gesendet)print "congratulations your message has been sent succesfully to $to.
";
else print "we find an error,so your message has not been send.
";
}else{print "wrong adresses in FROM/BUDDY fields.
";}
}
}
print '
FROM ME:<input name="from" title="from" type="text" value="@"/>

TO BUDDY:<input name="to" title="to" type="text" value="@"/>

SUBJECT:<input name="subject" title="subject" type="text" value="(no subject)"/>

MESSAGE:<input name="body" title="message" type="text" value=""/>

ATACHMENT url:<input name="file" title="atachment url" type="text" value="http://"/>
';
print '
<anchor>send<go href="'.$_SERVER["PHP_SELF"].'?send=1" method="post">
<postfield name="from" value="$(from)"/>
<postfield name="to" value="$(to)"/>
<postfield name="subject" value="$(subject)"/>
<postfield name="body" value="$(body)"/>
<postfield name="file" value="$(file)"/>
</go></anchor>
';
print '(EXAMPLE: http://www.wsite.com/yourfile suported in: gif,jpg,jpeg,png,wbmp,mid,midi,amr,mmf,wav,mp3,nth,thm,mpc,jar,jad,3gp,sis,zip/rar.)
----------
«home
</p>
</card>
</wml>';
?>

i see same code with some sites that i visited? is hifi coded that?

but one thing that i noticed other sites doesnt have limited extension yah some sites uses the same script without protecting their site from illegal uploads like virus or file manipulator malicious codes

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

subzero Super moderator Fellow · 3,954 posts #7

no i know gummy did that code.

before we had some one deleting post gumslone posted it.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

inet Senior · 264 posts #8

yeah i see in some of the scripts collected before from a russian site Gums 2wap site is printed there as in "2wap the biggest download portal"..

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

subzero Super moderator Fellow · 3,954 posts #9

yes thats true

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close