I need that that my webmail can send mail with many attach.
How can I do it?
You could either ask the user how many attachments they want,
and present that number of INPUT TYPE=FILE fields, or you
can grab the file attachment from the user, store it in a
uniquely-named temporary directory,
you just need to loop this part of the code:
$msg_body .= \n\n--Message-Boundary\n;
$msg_body .= Content-type: $attach_type; name=\$attach_name\\n;
$msg_body .= Content-Transfer-Encoding: BASE64\n;
$msg_body .= Content-disposition: attachment;
filename=\$attach_name\\n\n;
$msg_body .=
2 matches
Mail list logo