English 中文(简体)
Drup 6 Mimemail with annex
原标题:Drupal 6 Mimemail with attachment

任何人都能够帮助我收到多管齐下使用的mail子,以寄送特定电子邮件的查封文件,但不管其是否工作,都会事先帮助我。

    $body = "test body with attachments";
    $subject = "My test message";

$attachments[]=array(
     filepath  => file_directory_path(). /document.pdf ,
     filename  =>  wonderful.pdf ,
     filemime  =>  application/pdf ,
);

mimemail("xxxxx@gmail.com", "xxxxxx2@gmail.com", $subject, $body, NULL, array(), NULL, $attachments,  );
问题回答

我做的事情非常相似。 我的法典基本是:

$message[ attachments ][] = array(
   filepath  => $zipfilepath,
   filename  =>  my-attachment.zip ,
   filemime  =>  application/zip ,
);

from within my hook_mail module callback. See http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_mail/6

您确信:

  • enabled "mimemail" module;
  • checked the option in admin to "Use mime mail for all messages";
  • selected "mimemail" as the "E-mail Engine" (at the bottom of the admin page).

地雷的作业只是罚款。 我也安装了员工和管理当局协调方案模块,并使用作为电子邮件发动机选定的模块。





相关问题
Drupal Multi-language: Simple strings not translated

I m adding additional languages to a Drupal site that I m building. Getting the translation of content working is fairly easy using the Internationalisation module. Yet, simple things such as date ...

Setting up a WYSIWYG editor for Drupal site users [closed]

Looking through the Drupal contrib modules, and after a few Google searches, it becomes evident that there are any number of choices and combos available to set up a WYSIWYG editor in Drupal. I m ...

Change size of user/password login box

I don t know how to change the size of the login username/password boxes on the drupal site that I m trying to build. I m stumbling through the theming, and don t know where to find the file that ...

How does Drupal provide an edit/review/publish model?

How does Drupal support a means to update and review a website before it is published? Does it only allow you to preview a page at a time before you publish it or is there a way to create a site ...

Term for rotating header

I m looking for terminology that describes this behavior: The header of a web-page contains a different image every time you visit it. Update: It is not an advertisement, but images related to the ...

Has anyone checked out Drupal 7? [closed]

Has anyone checked out a copy of Drupal 7 yet? What do people think? I m pretty excited about the PDO and all of the designers I work with a very excited about the new admin interface/structure. Do ...

热门标签