You could use PHPMailer library which handles email very nicely. You could send emails with attachments to multiple recipients at a time using this library.
Dear Friend thanks for reply and I know this PHPMailer, I have also used this some times. But I need to use Jquery and php for this. – air Oct 18 at 9:09 PHPMailer is a PHP library.
You could use this library inside your sendemail. Php file according to your requirements. – Ghazanfar Mir Oct 18 at 9:11 yes but my basic question remain same, how to validate file and then pass by jquery to sendemail.
Php for attachment. Thanks – air Oct 18 at 9:13 So PHPMailer works on PHP. Whats the problem?
– Ernestas StankeviÄius Oct 18 at 9:15 You cant manage files with jquery. Anyway first you have to send it to server, then validate. You cant trust nor file size, nor anything whats coming from user.
You can upload file in background using iframe and then replay with jquery. – Ernestas StankeviÄius Oct 18 at 9:16.
Include in your function PHPMailer and try this: require("class.phpmailer. Php"); $mail = new PHPMailer(); $mail->IsMail(); $mail->From="mailer@example. Com"; $mail->FromName="My site's mailer"; $mail->Sender="[email protected]"; $mail->AddReplyTo("replies@example.
Com", "Replies for my site"); $mail->AddAddress("email@example. Com"); $mail->Subject = "Your invoice"; $mail->IsHTML(false); $mail->AddAttachment('files/invoice-user-1234. Pdf', 'invoice.
Pdf'); $mail->Body = "Please find your invoice attached. "; if(!$mail->Send()) { echo "Error sending: " . $mail->ErrorInfo;; } else { echo "Letter is sent"; }.
Thanks but my question is still same, $mail->AddAttachment('files/invoice-user-1234. Pdf', 'invoice. Pdf'); this is not fixed file, this is file from user.
How I send selected file from FORM to sendemail. Php file for further processing? – air Oct 18 at 9:16 but the form the user selects an input of file type or select a file name already exists on the system?
– JellyBelly Oct 18 at 9:22.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.