Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $body1[]='<img src="https://upload.wikimedia.org/wikipedia/commons/c/c4/PM5544_with_non-PAL_signals.png"/>';
- $params = array(
- 'body' => $body1,
- 'subject' => 'This is a subject',
- );
- drupal_mail('custom_request_price_form', 'HTML', $valid_email, 'en', $params))
- function custom_request_price_form_mail($key, &$message, $params) {
- $headers = array(
- 'MIME-Version' => '1.0',
- 'Content-Type' => 'text/html; charset=UTF-8; format=flowed; delsp=yes',
- 'Content-Transfer-Encoding' => '8Bit',
- 'X-Mailer' => 'Drupal'
- );
- foreach ($headers as $key => $value) {
- $message['headers'][$key] = $value;
- }
- $message['subject'] = $params['subject'];
- $message['body'] = $params['body'];
- }
- <html><head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- </head>
- <body id="mimemail-body" class="custom-request-price-form-HTML">
- <div id="center">
- <div id="main">
- <img src="http://54.184.229.31/mtg/5c87cc0de916394fcab7d7fab1947593/1467235900/r/eNortkrNSy6qLChJTdEtScoz0ksvLkksyUzWS87P1c_MTUxPLbYvtAXKWDn6pVi6JwdZpJsEOEd6GhUXO4YFeOd45TpbFpqExGdbmAS4mlf5exQ6hpfmlAS7JOk6JQVXmkameeuaBhh4GqYBANWgI9M/aafa4d0a50efcff14152360865bca40f">
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement