用MapiSendMail是否可以发送html邮件,如何处理? ( 积分: 100 )

  • 主题发起人 主题发起人 lz_cleaner
  • 开始时间 开始时间
L

lz_cleaner

Unregistered / Unconfirmed
GUEST, unregistred user!
Delphi 6 中我使用<br>//=================================<br>procedure SendMailWithAttachments(Recipients : String;Subject:String; NoteText:TStrings; Attachments : TStrings);<br>type<br> &nbsp;TSZBuf = array[0..255] of char;<br>var<br> &nbsp;RC : ULONG;<br> &nbsp;Recip : TMapiRecipDesc;<br> &nbsp;Mail : TMapiMessage;<br> &nbsp;pAttachments : array of TMapiFileDesc;<br> &nbsp;i, AttachmentCount : Integer;<br>begin<br> &nbsp;with Recip do<br> &nbsp;begin<br> &nbsp; &nbsp;ulReserved := 0;<br> &nbsp; &nbsp;ulRecipClass := MAPI_TO;<br> &nbsp; &nbsp;lpszName := nil;<br> &nbsp; &nbsp;lpszAddress := pchar(Recipients);<br> &nbsp; &nbsp;ulEIDSize := 0;<br> &nbsp; &nbsp;lpEntryID := nil;<br> &nbsp;end;<br><br> &nbsp;if (Attachments = nil) or (Attachments.Count = 0) then<br> &nbsp;begin<br> &nbsp; &nbsp;AttachmentCount := 0;<br> &nbsp; &nbsp;pAttachments := nil;<br> &nbsp;end<br> &nbsp;else<br> &nbsp;begin<br> &nbsp; &nbsp;AttachmentCount := Attachments.Count;<br> &nbsp; &nbsp;SetLength(pAttachments, AttachmentCount);<br> &nbsp; &nbsp;for i := 0 to AttachmentCount - 1 do<br> &nbsp; &nbsp; &nbsp;with pAttachments do<br> &nbsp; &nbsp; &nbsp;begin<br> &nbsp; &nbsp; &nbsp; &nbsp;ulReserved := 0;<br> &nbsp; &nbsp; &nbsp; &nbsp;flFlags := 0;<br> &nbsp; &nbsp; &nbsp; &nbsp;nPosition := Cardinal(-1);<br> &nbsp; &nbsp; &nbsp; &nbsp;lpszPathName := AllocMem(sizeof(TSZBuf));<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;StrPcopy(lpszPathName, Attachments);<br> &nbsp; &nbsp; &nbsp; &nbsp;lpszFileName := AllocMem(sizeof(TSZBuf));<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;StrPcopy(lpszFileName, ExtractFileName(Attachments));<br> &nbsp; &nbsp; &nbsp; &nbsp;lpFileType := nil;<br> &nbsp; &nbsp; &nbsp;end;<br> &nbsp;end;<br><br> &nbsp;with Mail do<br> &nbsp;begin<br> &nbsp; &nbsp;ulReserved := 0;<br> &nbsp; &nbsp;lpszSubject := Pchar(Subject);<br> &nbsp; &nbsp;if NoteText &lt;&gt; nil then<br> &nbsp; &nbsp; &nbsp;lpszNoteText := Pchar(NoteText.Text)<br> &nbsp; &nbsp;else<br> &nbsp; &nbsp; &nbsp;lpszNoteText := nil;<br><br> &nbsp; &nbsp;lpszMessageType := nil;<br>// &nbsp; &nbsp;lpszMessageType := 'Text/HTML';<br> &nbsp; &nbsp;lpszDateReceived := nil;<br> &nbsp; &nbsp;lpszConversationID := nil;<br> &nbsp; &nbsp;flFlags := 0;<br> &nbsp; &nbsp;lpOriginator := nil;<br> &nbsp; &nbsp;if Recipients = '' then nRecipCount := 0<br> &nbsp; &nbsp;else nRecipCount := 1;<br> &nbsp; &nbsp;lpRecips := @Recip;<br> &nbsp; &nbsp;nFileCount := AttachmentCount;<br> &nbsp; &nbsp;lpFiles := Pointer(pAttachments);<br> &nbsp;end;<br><br> &nbsp;try<br> &nbsp; &nbsp;RC := MapiSendMail(0, Application.Handle, Mail, MAPI_DIALOG +MAPI_LOGON_UI, 0);<br> &nbsp; &nbsp;if RC &lt;&gt; SUCCESS_SUCCESS then<br> &nbsp; &nbsp; &nbsp;ShowSendMailErr(RC);<br> &nbsp;finally<br> &nbsp; &nbsp;if AttachmentCount &gt; 0 then<br> &nbsp; &nbsp; &nbsp;for i := 0 to AttachmentCount - 1 do<br> &nbsp; &nbsp; &nbsp;begin<br> &nbsp; &nbsp; &nbsp; &nbsp;FreeMem(pAttachments.lpszPathName);<br> &nbsp; &nbsp; &nbsp; &nbsp;FreeMem(pAttachments.lpszFileName);<br> &nbsp; &nbsp; &nbsp;end;<br> &nbsp; &nbsp;SetLength(pAttachments, 0);<br> &nbsp;end;<br>end;<br>//=================================<br>我这样调用上边的过程<br>.....<br>IdMessage.Body.LoadFromFile('E:/zt.htm');<br>IdMessage.Encoding:=meMIME;<br>IdMessage.ContentType:='Text/HTML';// //multipart/mixed<br>IdMessage.ContentTransferEncoding:='Base64';<br>IdMessage.SaveToFile('d:/ddd.eml',false);<br>IdMessage.Body.LoadFromFile('d:/ddd.eml');<br>.....<br>SendMailWithAttachments(EMailAddress,Subject,IdMessage.Body,AttachmentFiles);<br>结果调出outlook express看到的邮件的内容是编好码的邮件内容,如下:<br><br>Content-Type: Text/HTML<br>MIME-Version: 1.0<br>Content-Transfer-Encoding: Base64<br>Date: Wed, 3 Aug 2005 13:31:15 +0800<br><br>PGh0bWw+DQoNCjxoZWFkPg0KPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1MYW5ndWFnZSIgY29u<br>dGVudD0iemgtY24iPg0KPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0<br>ZXh0L2h0bWw7IGNoYXJzZXQ9Z2IyMzEyIj4NCjxtZXRhIG5hbWU9IkdFTkVSQVRPUiIgY29udGVu<br>dD0iTWljcm9zb2Z0IEZyb250UGFnZSA0LjAiPg0KPG1ldGEgbmFtZT0iUHJvZ0lkIiBjb250ZW50<br>PSJGcm9udFBhZ2UuRWRpdG9yLkRvY3VtZW50Ij4NCjx0aXRsZT5NYWd0ZWNossmx4M+1zbPNvLHq<br>y7XD9zwvdGl0bGU+DQo8L2hlYWQ+DQoNCjxib2R5Pg0KDQo8dGFibGUgYm9yZGVyPSIwIiB3aWR0<br>aD0iODc1IiBoZWlnaHQ9IjM0NCI+DQogIDx0cj4NCiAgICA8dGQgd2lkdGg9IjM2IiBhbGlnbj0i<br>Y2VudGVyIiBoZWlnaHQ9IjE4Ij48L3RkPg0KICAgIDx0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uYnNwOyZu<br>YnNwOyZuYnNwOyZuYnNwOyZuYnNwOyAgDQogICAgICAxMzcwMTA4NzYwOTwvZm9udD48L3A+DQog<br>ICAgICA8cCBzdHlsZT0ibGluZS1oZWlnaHQ6IDEwMCU7IG1hcmdpbi10b3A6IDA7IG1hcmdpbi1i<br>b3R0b206IDAiPjxmb250IHNpemU9IjIiPkVtYWlsOjxhIGhyZWY9Im1haWx0bzpzdXBwb3J0QG1h<br>Z3RlY2guY29tLmNuIj5zdXBwb3J0QG1hZ3RlY2guY29tLmNuPC9hPjwvZm9udD48L3RkPg0KICA8<br>L3RyPg0KICA8dHI+DQogICAgPHRkIHdpZHRoPSIxMDAlIiBhbGlnbj0icmlnaHQiIGNvbHNwYW49<br>IjIiIGhlaWdodD0iMjciPjxmb250IHNpemU9IjIiPjxhIGhyZWY9Imh0dHA6Ly93d3cubWFndGVj<br>aC5jb20uY24iPr60x+u52NeisbG+qcLquPHMqb/Lv8a8vLei1bnT0M/euavLvtfu0MKy+sa3us28<br>vMr1PC9hPjwvZm9udD48L3RkPg0KICA8L3RyPg0KPC90YWJsZT4NCg0KPC9ib2R5Pg0KDQo8L2h0<br>bWw+DQo=<br>.<br>但是把上边的内容保存为一个邮件比如aaa.eml用outlook express打开是正常的html格式的邮件<br>请问怎样才能使调出的outlook express生成的邮件能正常地显示为html邮件?
 
Delphi 6 中我使用<br>//=================================<br>procedure SendMailWithAttachments(Recipients : String;Subject:String; NoteText:TStrings; Attachments : TStrings);<br>type<br> &nbsp;TSZBuf = array[0..255] of char;<br>var<br> &nbsp;RC : ULONG;<br> &nbsp;Recip : TMapiRecipDesc;<br> &nbsp;Mail : TMapiMessage;<br> &nbsp;pAttachments : array of TMapiFileDesc;<br> &nbsp;i, AttachmentCount : Integer;<br>begin<br> &nbsp;with Recip do<br> &nbsp;begin<br> &nbsp; &nbsp;ulReserved := 0;<br> &nbsp; &nbsp;ulRecipClass := MAPI_TO;<br> &nbsp; &nbsp;lpszName := nil;<br> &nbsp; &nbsp;lpszAddress := pchar(Recipients);<br> &nbsp; &nbsp;ulEIDSize := 0;<br> &nbsp; &nbsp;lpEntryID := nil;<br> &nbsp;end;<br><br> &nbsp;if (Attachments = nil) or (Attachments.Count = 0) then<br> &nbsp;begin<br> &nbsp; &nbsp;AttachmentCount := 0;<br> &nbsp; &nbsp;pAttachments := nil;<br> &nbsp;end<br> &nbsp;else<br> &nbsp;begin<br> &nbsp; &nbsp;AttachmentCount := Attachments.Count;<br> &nbsp; &nbsp;SetLength(pAttachments, AttachmentCount);<br> &nbsp; &nbsp;for i := 0 to AttachmentCount - 1 do<br> &nbsp; &nbsp; &nbsp;with pAttachments do<br> &nbsp; &nbsp; &nbsp;begin<br> &nbsp; &nbsp; &nbsp; &nbsp;ulReserved := 0;<br> &nbsp; &nbsp; &nbsp; &nbsp;flFlags := 0;<br> &nbsp; &nbsp; &nbsp; &nbsp;nPosition := Cardinal(-1);<br> &nbsp; &nbsp; &nbsp; &nbsp;lpszPathName := AllocMem(sizeof(TSZBuf));<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;StrPcopy(lpszPathName, Attachments);<br> &nbsp; &nbsp; &nbsp; &nbsp;lpszFileName := AllocMem(sizeof(TSZBuf));<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;StrPcopy(lpszFileName, ExtractFileName(Attachments));<br> &nbsp; &nbsp; &nbsp; &nbsp;lpFileType := nil;<br> &nbsp; &nbsp; &nbsp;end;<br> &nbsp;end;<br><br> &nbsp;with Mail do<br> &nbsp;begin<br> &nbsp; &nbsp;ulReserved := 0;<br> &nbsp; &nbsp;lpszSubject := Pchar(Subject);<br> &nbsp; &nbsp;if NoteText &lt;&gt; nil then<br> &nbsp; &nbsp; &nbsp;lpszNoteText := Pchar(NoteText.Text)<br> &nbsp; &nbsp;else<br> &nbsp; &nbsp; &nbsp;lpszNoteText := nil;<br><br> &nbsp; &nbsp;lpszMessageType := nil;<br>// &nbsp; &nbsp;lpszMessageType := 'Text/HTML';<br> &nbsp; &nbsp;lpszDateReceived := nil;<br> &nbsp; &nbsp;lpszConversationID := nil;<br> &nbsp; &nbsp;flFlags := 0;<br> &nbsp; &nbsp;lpOriginator := nil;<br> &nbsp; &nbsp;if Recipients = '' then nRecipCount := 0<br> &nbsp; &nbsp;else nRecipCount := 1;<br> &nbsp; &nbsp;lpRecips := @Recip;<br> &nbsp; &nbsp;nFileCount := AttachmentCount;<br> &nbsp; &nbsp;lpFiles := Pointer(pAttachments);<br> &nbsp;end;<br><br> &nbsp;try<br> &nbsp; &nbsp;RC := MapiSendMail(0, Application.Handle, Mail, MAPI_DIALOG +MAPI_LOGON_UI, 0);<br> &nbsp; &nbsp;if RC &lt;&gt; SUCCESS_SUCCESS then<br> &nbsp; &nbsp; &nbsp;ShowSendMailErr(RC);<br> &nbsp;finally<br> &nbsp; &nbsp;if AttachmentCount &gt; 0 then<br> &nbsp; &nbsp; &nbsp;for i := 0 to AttachmentCount - 1 do<br> &nbsp; &nbsp; &nbsp;begin<br> &nbsp; &nbsp; &nbsp; &nbsp;FreeMem(pAttachments.lpszPathName);<br> &nbsp; &nbsp; &nbsp; &nbsp;FreeMem(pAttachments.lpszFileName);<br> &nbsp; &nbsp; &nbsp;end;<br> &nbsp; &nbsp;SetLength(pAttachments, 0);<br> &nbsp;end;<br>end;<br>//=================================<br>我这样调用上边的过程<br>.....<br>IdMessage.Body.LoadFromFile('E:/zt.htm');<br>IdMessage.Encoding:=meMIME;<br>IdMessage.ContentType:='Text/HTML';// //multipart/mixed<br>IdMessage.ContentTransferEncoding:='Base64';<br>IdMessage.SaveToFile('d:/ddd.eml',false);<br>IdMessage.Body.LoadFromFile('d:/ddd.eml');<br>.....<br>SendMailWithAttachments(EMailAddress,Subject,IdMessage.Body,AttachmentFiles);<br>结果调出outlook express看到的邮件的内容是编好码的邮件内容,如下:<br><br>Content-Type: Text/HTML<br>MIME-Version: 1.0<br>Content-Transfer-Encoding: Base64<br>Date: Wed, 3 Aug 2005 13:31:15 +0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HA6Ly93d3cubWFndGVj<br>aC5jb20uY24iPr60x+u52NeisbG+qcLquPHMqb/Lv8a8vLei1bnT0M/euavLvtfu0MKy+sa3us28<br>vMr1PC9hPjwvZm9udD48L3RkPg0KICA8L3RyPg0KPC90YWJsZT4NCg0KPC9ib2R5Pg0KDQo8L2h0<br>bWw+DQo=<br>.<br>但是把上边的内容保存为一个邮件比如aaa.eml用outlook express打开是正常的html格式的邮件<br>请问怎样才能使调出的outlook express生成的邮件能正常地显示为html邮件?
 
这么长时间都没人回复,唉!
 
大家都不懂吗!<br>一样,我提出的邮件问题也没有人回答!<br>同命!
 
后退
顶部