How to embed images in MIME mail system? How to progamatically embed images in mail?
I am using mime and mail system module

Here is my code:

function send_rush_me_mail($node){
  $dataArr = array();
  $dataArr['field_name'] = $node-&gt;field_name['und'][0]['value'];
  $dataArr['field_email'] = $node-&gt;field_email['und'][0]['value'];
  $body = location_beacon_email_body_string('rush_me', $dataArr);
  $params = array(
    'body' =&gt; $body,
    'subject' =&gt; 'Auto Response for Ask Me',
  );

  drupal_mail('register', 'register', $dataArr['field_email'], language_default(), $params, 'example@domain.com', TRUE);
  watchdog('Ask me mail', print_r($params,1));
}
With the help of Rules module and filtered HTML text format allowing img tag in the format you could send HTML emails with images.

Here is a summary of the required steps:


Enable the required modules, eg using Drush like so: drush dl rules entity mimemail mailsystem
Configure the MAIL SYSTEM SETTINGS choosing MimeMailSystem the Site-wide default and Mime Mail module class from admin/config/system/mailsystem
Set the text format to be filtered html or the format that allows img tag from admin/config/system/mimemail
Use Rules to send html e-mails.


For a more detailed tutorial, refer to How to Send HTML Emails in Drupal 7 using Rules.