<?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* autogenerated using http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
* and https://raw.github.com/minad/mimemagic/master/script/freedesktop.org.xml
*/
/*
* List of MIME type automatically detected in Swift Mailer.
*/
// You may add or take away what you like (lowercase required)
$swift_mime_types = array(
'3dml' => 'text/vnd.in3d.3dml',
'3ds' => 'image/x-3ds',
'3g2' => 'video/3gpp2',
'3gp' => 'video/3gpp',
'7z' => 'application/x-7z-compressed',
'aab' => 'application/x-authorware-bin',
'aac' => 'audio/x-aac',
'aam' => 'application/x-authorware-map',
'aas' => 'application/x-authorware-seg',
'abw' => 'application/x-abiword',
'ac' => 'application/pkix-attr-cert',
'acc' => 'application/vnd.americandynamics.acc',
'ace' => 'application/x-ace-compressed',
'acu' => 'application/vnd.acucobol',
'acutc' => 'application/vnd.acucorp',
'adp' => 'audio/adpcm',
'aep' => 'application/vnd.audiograph',
'afm' => 'application/x-font-type1',
'afp' => 'application/vnd.ibm.modcap',
'ahead' => 'application/vnd.ahead.space',
'ai' => 'application/postscript',
'aif' => 'audio/x-aiff',
'aifc' => 'audio/x-aiff',
'aiff' => 'audio/x-aiff',
'air' => 'application/vnd.adobe.air-application-installer-package+zip',
'ait' => 'application/vnd.dvb.ait',
'ami' => 'application/vnd.amiga.ami',
'apk' => 'application/vnd.android.package-archive',
'appcache' => 'text/cache-manifest',
'apr' => 'application/vnd.lotus-approach',
'aps' => 'application/postscript',
'arc' => 'application/x-freearc',
'asc' => 'application/pgp-signature',
'asf' => 'video/x-ms-asf',
'asm' => 'text/x-asm',
'aso' => 'application/vnd.accpac.simply.aso',
'asx' => 'video/x-ms-asf',
'atc' => 'application/vnd.acucorp',
'atom' => 'application/atom+xml',
'atomcat' => 'application/atomcat+xml',
'atomsvc' => 'application/atomsvc+xml',
'atx' => 'application/vnd.antix.game-component',
'au' => 'audio/basic',
'avi' => 'video/x-msvideo',
'aw' => 'application/applixware',
'azf' => 'application/vnd.airzip.filesecure.azf',
'azs' => 'application/vnd.airzip.filesecure.azs',
'azw' => 'application/vnd.amazon.ebook',
'bat' => 'application/x-msdownload',
'bcpio' => 'application/x-bcpio',
'bdf' => 'application/x-font-bdf',
'bdm' => 'application/vnd.syncml.dm+wbxml',
'bed' => 'application/vnd.realvnc.bed',
'bh2' => 'application/vnd.fujitsu.oasysprs',
'bin' => 'application/octet-stream',
'blb' => 'application/x-blorb',
'blorb' => 'application/x-blorb',
'bmi' => 'application/vnd.bmi',
'bmp' => 'image/bmp',
'book' => 'application/vnd.framemaker',
'box' => 'application/vnd.previewsystems.box',
'boz' => 'application/x-bzip2',
'bpk' => 'application/octet-stream',
'btif' => 'image/prs.btif',
'bz' => 'application/x-bzip',
'bz2' => 'application/x-bzip2',
'c' => 'text/x-c',
'c11amc' => 'application/vnd.cluetrust.cartomobile-config',
'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg',
'c4d' => 'application/vnd.clonk.c4group',
'c4f' => 'application/vnd.clonk.c4group',
'c4g' => 'application/vnd.clonk.c4group',
'c4p' => 'application/vnd.clonk.c4group',
'c4u' => 'application/vnd.clonk.c4group',
'cab' => 'application/vnd.ms-cab-compressed',
'caf' => 'audio/x-caf',
'cap' => 'application/vnd.tcpdump.pcap',
'car' => 'application/vnd.curl.car',
'cat' => 'application/vnd.ms-pki.seccat',
'cb7' => 'application/x-cbr',
'cba' => 'application/x-cbr',
'cbr' => 'application/x-cbr',
'cbt' => 'application/x-cbr',
'cbz' => 'application/x-cbr',
'cc' => 'text/x-c',
'cct' => 'application/x-director',
'ccxml' => 'application/ccxml+xml',
'cdbcmsg' => 'application/vnd.contact.cmsg',
'cdf' => 'application/x-netcdf',
'cdkey' => 'application/vnd.mediastation.cdkey',
'cdmia' => 'application/cdmi-capability',
'cdmic' => 'application/cdmi-container',
'cdmid' => 'application/cdmi-domain',
'cdmio' => 'application/cdmi-object',
'cdmiq' => 'application/cdmi-queue',
'cdx' => 'chemical/x-cdx',
'cdxml' => 'application/vnd.chemdraw+xml',
'cdy' => 'application/vnd.cinderella',
'cer' => 'application/pkix-cert',
'cfs' => 'application/x-cfs-compressed',
'cgm' => 'image/cgm',
'chat' => 'application/x-chat',
'chm' => 'application/vnd.ms-htmlhelp',
'chrt' => 'application/vnd.kde.kchart',
'cif' => 'chemical/x-cif',
'cii' => 'application/vnd.anser-web-certificate-issue-initiation',
'cil' => 'application/vnd.ms-artgalry',
'cla' => 'application/vnd.claymore',
'class' => 'application/java-vm',
'clkk' => 'application/vnd.crick.clicker.keyboard',
'clkp' => 'application/vnd.crick.clicker.palette',
'clkt' => 'application/vnd.crick.clicker.template',
'clkw' => 'application/vnd.crick.clicker.wordbank',
'clkx' => 'application/vnd.crick.clicker',
'clp' => 'application/x-msclip',
'cmc' => 'application/vnd.cosmocaller',
'cmdf' => 'chemical/x-cmdf',
'cml' => 'chemical/x-cml',
'cmp' => 'application/vnd.yellowriver-custom-menu',
'cmx' => 'image/x-cmx',
'cod' => 'application/vnd.rim.cod',
'com' => 'application/x-msdownload',
'conf' => 'text/plain',
'cpio' => 'application/x-cpio',
'cpp' => 'text/x-c',
'cpt' => 'application/mac-compactpro',
'crd' => 'application/x-mscardfile',
'crl' => 'application/pkix-crl',
'crt' => 'application/x-x509-ca-cert',
'csh' => 'application/x-csh',
'csml' => 'chemical/x-csml',
'csp' => 'application/vnd.commonspace',
'css' => 'text/css',
'cst' => 'application/x-director',
'csv' => 'text/csv',
'cu' => 'application/cu-seeme',
'curl' => 'text/vnd.curl',
'cww' => 'application/prs.cww',
'cxt' => 'application/x-director',
'cxx' => 'text/x-c',
'dae' => 'model/vnd.collada+xml',
'daf' => 'application/vnd.mobius.daf',
'dart' => 'application/vnd.dart',
'dataless' => 'application/vnd.fdsn.seed',
'davmount' => 'application/davmount+xml',
'dbk' => 'application/docbook+xml',
'dcr' => 'application/x-director',
'dcurl' => 'text/vnd.curl.dcurl',
'dd2' => 'application/vnd.oma.dd2+xml',
'ddd' => 'application/vnd.fujixerox.ddd',
'deb' => 'application/x-debian-package',
'def' => 'text/plain',
'deploy' => 'application/octet-stream',
'der' => 'application/x-x509-ca-cert',
'dfac' => 'application/vnd.dreamfactory',
'dgc' => 'application/x-dgc-compressed',
'dic' => 'text/x-c',
'dir' => 'application/x-director',
'dis' => 'application/vnd.mobius.dis',
'dist' => 'application/octet-stream',
'distz' => 'application/octet-stream',
'djv' => 'image/vnd.djvu',
'djvu' => 'image/vnd.djvu',
'dll' => 'application/x-msdownload',
'dmg' => 'application/x-apple-diskimage',
'dmp' => 'application/vnd.tcpdump.pcap',
'dms' => 'application/octet-stream',
'dna' => 'application/vnd.dna',
'doc' => 'application/msword',
'docm' => 'application/vnd.ms-word.document.macroenabled.12',
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'dot' => 'application/msword',
'dotm' => 'application/vnd.ms-word.template.macroenabled.12',
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'dp' => 'application/vnd.osgi.dp',
'dpg' => 'application/vnd.dpgraph',
'dra' => 'audio/vnd.dra',
'dsc' => 'text/prs.lines.tag',
'dssc' => 'application/dssc+der',
'dtb' => 'application/x-dtbook+xml',
'dtd' => 'application/xml-dtd',
'dts' => 'audio/vnd.d
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
PHP Swift库(邮件发送) Swift Mailer是一个面向对象的PHP邮件发送包,不依赖于PHP自带的mail()函数,因为该函数在发送多个邮件时占用的系统资源很高。Swift直接与SMTP 服务器通讯,具有非常高的发送速度和效率。 1,邮箱需要先打开smtp服务; 2,下面要求输入的密码一般不是邮箱密码,而是你的邮箱服务器提供的授权码; function sendMail() { require 'path/to/swift_required.php'; $transport=\Swift_SmtpTransport::newInstance("邮件服务器地址","端口号","加密方式(例如:使用腾讯qq邮箱时此处填ssl,不加密不填写此项)")->setUsername("用户名")->setPassword("密码"); $mailer =\Swift_Mailer::newInstance($transport); $message=\Swift_Message::newInstance()->setSubject("邮件主题")->setFrom(array("邮件来自邮箱号"=>"邮件来自名称"))->setTo("收件人邮箱"))->setContentType("text/html")->setBody("邮件内容"); $mailer->protocol='smtp'; $mailer->send($message); }
资源推荐
资源详情
资源评论
收起资源包目录
PHP Swift库(邮件发送) (171个子文件)
mime_types.php 40KB
SimpleMimeEntity.php 23KB
NTLMAuthenticator.php 22KB
DKIMSigner.php 17KB
SimpleMessage.php 17KB
SMimeSigner.php 15KB
AbstractSmtpTransport.php 14KB
DomainKeySigner.php 13KB
AbstractHeader.php 13KB
EsmtpTransport.php 11KB
QpEncoder.php 11KB
SimpleHeaderSet.php 10KB
DependencyContainer.php 10KB
StreamBuffer.php 9KB
MailboxHeader.php 9KB
DiskKeyCache.php 9KB
ArrayCharacterStream.php 8KB
Utf8Reader.php 8KB
swiftmailer_generate_mimes_config.php 8KB
Message.php 7KB
ParameterizedHeader.php 7KB
MailTransport.php 7KB
DecoratorPlugin.php 7KB
PopBeforeSmtpPlugin.php 7KB
NgCharacterStream.php 7KB
FileByteStream.php 6KB
Grammar.php 6KB
Message.php 6KB
AuthHandler.php 6KB
MimePart.php 6KB
ArrayKeyCache.php 5KB
FileSpool.php 5KB
ByteArrayReplacementFilter.php 5KB
OpenDKIMSigner.php 5KB
SimpleHeaderFactory.php 5KB
RedirectingPlugin.php 5KB
SendmailTransport.php 5KB
SimpleEventDispatcher.php 5KB
ThrottlerPlugin.php 5KB
LoadBalancedTransport.php 4KB
mime_deps.php 4KB
ArrayByteStream.php 4KB
PlainContentEncoder.php 4KB
QpContentEncoder.php 4KB
AbstractFilterableInputStream.php 4KB
HeaderSet.php 4KB
IdentificationHeader.php 4KB
Attachment.php 4KB
Base64ContentEncoder.php 4KB
LoggerPlugin.php 4KB
BandwidthMonitorPlugin.php 4KB
NativeQpContentEncoder.php 3KB
PathHeader.php 3KB
SimpleCharacterReaderFactory.php 3KB
AntiFloodPlugin.php 3KB
MimeEntity.php 3KB
KeyCache.php 3KB
Mailer.php 3KB
DateHeader.php 3KB
SimpleKeyCacheInputStream.php 3KB
NullKeyCache.php 3KB
SendEvent.php 3KB
OpenDKIMHeader.php 3KB
SpoolTransport.php 3KB
QpContentEncoderProxy.php 2KB
transport_deps.php 2KB
EventDispatcher.php 2KB
UnstructuredHeader.php 2KB
Rfc2231Encoder.php 2KB
GenericFixedWidthReader.php 2KB
Preferences.php 2KB
EsmtpHandler.php 2KB
FailoverTransport.php 2KB
NullTransport.php 2KB
CharacterStream.php 2KB
CramMd5Authenticator.php 2KB
Swift.php 2KB
InputByteStream.php 2KB
UsAsciiReader.php 2KB
Header.php 2KB
Attachment.php 2KB
SmtpTransport.php 2KB
ReporterPlugin.php 2KB
HeaderFactory.php 2KB
XOAuth2Authenticator.php 2KB
EmbeddedFile.php 2KB
MemorySpool.php 2KB
QpHeaderEncoder.php 2KB
CharacterReader.php 2KB
ImpersonatePlugin.php 2KB
IoBuffer.php 2KB
Base64HeaderEncoder.php 2KB
Base64Encoder.php 2KB
StringReplacementFilter.php 2KB
RawContentEncoder.php 1KB
HeaderSigner.php 1KB
Image.php 1KB
MimePart.php 1KB
CommandEvent.php 1KB
HitReporter.php 1KB
共 171 条
- 1
- 2
资源评论
007ChengHao
- 粉丝: 5
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功