I have used the class code provided in the
article by Kartic regarding the above
topic and I've tried everything and it
won't work.
Below is my a portion of my html code..
<form name="upload" method="post" enctype='multipart/form-data' action="http://206.47.120.25/scripts/mime1.php">
<table cellpadding=0 cellspacing=0>
<tr>
<td>File 1:</td>
<td><input type=file name="File1"></td>
</tr>
<tr>
<td colspan=2 align="right">
<input type=submit name='action' value='Send'></td>
</tr>
</table>
</form>
At this point I'm just trying to attach
1 file to my email.
below is my php3 code....
include "e:\\inetpub\\scripts\\MIME.class";
define("TO", "kathyc@bserv.com");
$name = "kathy";
$email = "kathyc@bserv.com";
$sBody = "This is not fun at all";
if ($File1 != "none")
{
if (preg_match("!/x\-.+!i", $File1_type) )
{
print "in here too";
$type = OCTET;
}
else
{
print "in here three";
$type = $File1_type;
}
$from = sprintf("'%s' <%s>", $name, $email) ;
copy($File1, "$File1_name");
$mime = new MIME_mail($from, TO, 'Resume', $sBody, "Cc: $email");
$mime->fattach($File1_name, "A File", $type);
$mime->send_mail();
unlink($File1_name); // remove the uploaded file
print "email sent.";
}
Can someone please help me out, I can't
figure this out and it's driving me
nuts.
Any help would be appreciated.
Thanks.