Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. $body1[]='<img src="https://upload.wikimedia.org/wikipedia/commons/c/c4/PM5544_with_non-PAL_signals.png"/>';
  2. $params = array(
  3. 'body' => $body1,
  4. 'subject' => 'This is a subject',
  5. );
  6. drupal_mail('custom_request_price_form', 'HTML', $valid_email, 'en', $params))
  7.  
  8. function custom_request_price_form_mail($key, &$message, $params) {
  9. $headers = array(
  10. 'MIME-Version' => '1.0',
  11. 'Content-Type' => 'text/html; charset=UTF-8; format=flowed; delsp=yes',
  12. 'Content-Transfer-Encoding' => '8Bit',
  13. 'X-Mailer' => 'Drupal'
  14. );
  15. foreach ($headers as $key => $value) {
  16. $message['headers'][$key] = $value;
  17. }
  18. $message['subject'] = $params['subject'];
  19. $message['body'] = $params['body'];
  20. }
  21.  
  22. <html><head>
  23. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  24. </head>
  25. <body id="mimemail-body" class="custom-request-price-form-HTML">
  26. <div id="center">
  27. <div id="main">
  28. <img src="http://54.184.229.31/mtg/5c87cc0de916394fcab7d7fab1947593/1467235900/r/eNortkrNSy6qLChJTdEtScoz0ksvLkksyUzWS87P1c_MTUxPLbYvtAXKWDn6pVi6JwdZpJsEOEd6GhUXO4YFeOd45TpbFpqExGdbmAS4mlf5exQ6hpfmlAS7JOk6JQVXmkameeuaBhh4GqYBANWgI9M/aafa4d0a50efcff14152360865bca40f">
  29. </div>
  30. </div>
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement