文件名称:IMapi
介绍说明--下载内容均来自于网络,请自行研究使用
一个类IMapi,可以用于在应用程序中加入发送邮件的功能,参考下面的一个应用:
#include \"imapi.h\" void CBugReport::OnOK() { CIMapi mail mail.To
(\"UltraMaroon@email.msn.com\") // Set recipient name mail.To(\"someoneelse@somewhereelse.com\") //
Second recipient mail.Cc(\"cc@cc.com\") // CC recipient // Identify sender (not strictly necessary
since MAPI will fill this in for you) mail.From(\"user@somewhere.com\") mail.Subject(\"Test Email\") //
Subject of this email mail.Attach(\"somefilename\") // Attaching a file // Attach another file but
give it a different name inside the email itself mail.Attach(\"someotherfile\",
\"different_name_for_recipient\") // Put text of message in body mail.Text(\"Body text for this
email\") // Set body text mail.Send() // Now send the mail! CDialog::OnOK() } -IMapi a category that can be used in the application process to send mail functions, a reference to the following applications : # include # include "imapi.h" void CBugReport : : OnOK () (mail.To CIMapi mail ( "e @ UltraMaroon mail.msn.com ") / / Set recipient name mail.To ( "someoneelse@somewhereelse.com") / / Second mail.Cc recipient ( "cc@cc.com") / / CC recipie nt / / Identify sender (not strictly necessary's ince MAPI will fill this in for you) mail.From ( " user@somewhere.com ") mail.Subject (" Test Em sixty ") / / Subject of this email mail.Attach (" so mefilename ") / / Attaching a file / / Attach anot her file but give it a different name inside the e mail.Attach mail itself ( "someotherfile" "
#include \"imapi.h\" void CBugReport::OnOK() { CIMapi mail mail.To
(\"UltraMaroon@email.msn.com\") // Set recipient name mail.To(\"someoneelse@somewhereelse.com\") //
Second recipient mail.Cc(\"cc@cc.com\") // CC recipient // Identify sender (not strictly necessary
since MAPI will fill this in for you) mail.From(\"user@somewhere.com\") mail.Subject(\"Test Email\") //
Subject of this email mail.Attach(\"somefilename\") // Attaching a file // Attach another file but
give it a different name inside the email itself mail.Attach(\"someotherfile\",
\"different_name_for_recipient\") // Put text of message in body mail.Text(\"Body text for this
email\") // Set body text mail.Send() // Now send the mail! CDialog::OnOK() } -IMapi a category that can be used in the application process to send mail functions, a reference to the following applications : # include # include "imapi.h" void CBugReport : : OnOK () (mail.To CIMapi mail ( "e @ UltraMaroon mail.msn.com ") / / Set recipient name mail.To ( "someoneelse@somewhereelse.com") / / Second mail.Cc recipient ( "cc@cc.com") / / CC recipie nt / / Identify sender (not strictly necessary's ince MAPI will fill this in for you) mail.From ( " user@somewhere.com ") mail.Subject (" Test Em sixty ") / / Subject of this email mail.Attach (" so mefilename ") / / Attaching a file / / Attach anot her file but give it a different name inside the e mail.Attach mail itself ( "someotherfile" "
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 13898365imapi.zip 列表 IMAPI.CPP IMAPI.H