|
Posted by twma on 09/06/05 02:12
Thank you
but your advice is too technical for a simple end user like me.
I do not know what to insert into my sample below.
It looks like that I would not get any further assistant from this group.
twma@maths.uwa.edu.au
"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:1125454402.591344.66080@g14g2000cwa.googlegroups.com...
> Have a look at http://www.faqs.org/rfcs/rfc2110.html. It explains in
> detail how to send a MIM-multipart message. What you want to do is
> send all the data as the $header argument to mail(), and leave the
> $message parameter blank.
>
> First read the file into a variable using fopen(), fread() or whatever.
> Now we need to covert it to a format that will survive email
> transport. We can use base64_encode() for that. Once you have your
> pdf data encoded, you can build your $headers string from all the
> pieces.
********************* /attachmentTest/index.htm
<html><head><title>email attachments</title></head><body>
Testing email attachment: <a href= "xyz.pdf" target="_blank">xyz.pdf</a><p>
<form method="POST" action="Act.php">
<input type="submit" value="submit">
</form></body></html>
********************* Act.php
<html><head><title>Act for email attachments</title></head><body>
When this was test, someBody is actually my real name.<br>
<?
$to = "someBody@maths.uwa.edu.au";
$subject = "email with attachment";
$message = "Testing attachment xyz.pdf";
$headers = "From: Dr.Ma@maths.uwa.edu.au";
mail($to, $subject, $message, $headers);
?>
Please check email.
</body></html>
*********************
Navigation:
[Reply to this message]
|