Note : You must remember add ( <form enctype=”multipart/form-data” > ) in form tag.
<?php
$message=”<table><tr><td>Body of the email</td></tr></table
>” ;
$subject = ‘Attachement Email’;
$config = array(‘auth’ => ‘login’,
‘username’ => ‘Email Id’,
‘password’ => ‘xxxxxxx’);
// SMTP must be change according to Mail Server
$transport = new Zend_Mail_Transport_Smtp(‘mail.gmail.com’, $config);
$mail = new Zend_Mail();
$mail->setType(Zend_Mime::MULTIPART_RELATED);
$mail->setBodyText($message);
$mail->setBodyHtml($message);
$mail->setFrom(”info@gmail.com.”,”userName”);
$mail->addTo(’email@gmail.com’);
$mail->setSubject($subject);
$fileContents = file_get_contents($_FILES[‘Attachment’][‘tmp_name’]); // To Be Required Attachement File name
$at=$mail->createAttachment($fileContents);
$at->filename = $_FILES[‘Attachment’][‘name’]; // To Be Required Attachement File name
$mail->send($transport);
Lol, sehr gut. Komme nun oefters.
747335 637918Perfectly written subject material , thanks for selective info . 740116
Hello There. I found your weblog the usage of msn. This is an extremely well written article. I will make sure to bookmark it and come back to read more of your useful information. Thank you for the post. I will certainly return.
Wonderful perform! This is actually the types of facts that needs to be discussed around the web. Feel bad for on the seek out search engines without more time location this kind of offered bigger! Think about it over plus pay a visit to this web site. Thanks a lot Means)
I was able to find good info from your articles.
Very great post. I just stumbled upon your weblog and wished to say that I’ve really enjoyed browsing your blog posts. In any case I will be subscribing on your feed and I hope you write again soon!
I have been exploring for a bit for any high quality articles or
blog posts in this kind of house . Exploring in Yahoo I at last stumbled
upon this site. Studying this info So i’m glad to convey that I have a very just right uncanny feeling I found out just what I needed. I most indubitably will make sure to do not put out of your mind this site and give it a glance on a constant basis.
Hi there! This post could not be written any better!
Reading through this post reminds me of my previous room mate!
He always kept talking about this. I will forward this article to him.
Pretty sure he will have a good read. Thanks for sharing!