Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.
include('Mail.php'); include('Mail/mime.php'); $text = 'Text version of email'; $html = '<html><body>HTML version of email</body></html>'; $file = './quote.pdf'; $crlf = "rn"; $hdrs = array( 'From' => 'email@example.com', 'To' => 'firstname.lastname@example.org', 'Subject' => 'Your Quotation' ); $params = array( 'host' => "ssl://mail.xxx.co.uk", 'port' => "465", 'username' => "xxx", 'password' => "xxx" ); $mime = new Mail_mime($crlf); $mime->setTXTBody($text); $mime->setHTMLBody($html); $mime->addAttachment($file,'application/pdf'); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('smtp', $params); $mail->send('email@example.com', $hdrs, $body);
|Could you point what's needed to avoid an icon creation at desktop every time a PDF is created an viewed at a browser?||8||50|
|PHP and google maps||13||44|
|How would I do a website like this?||5||54|
|error or issues with common type of email from one aol user to one gmail user||4||16|