// // CCMail.h // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #import <MessageUI/MFMailComposeViewController.h> @interface CCMail : NSObject { } // 调用系统mail界面 + (MFMailComposeViewController *)showMailView:(id)delegate withRecipients:(NSArray *)recipients withCcRecipients:(NSArray *)ccRecipients withsubject:(NSString *)subject withtextBody:(NSString *)textBody isHTML:(BOOL)isHTML animated:(BOOL)animated; // returns whether the email is valid format + (BOOL)isValidEmailFormat:(NSString *)email; @end
googlecode链接地址(会有更新):http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCMail.h
github地址:https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCMail.h
本文介绍如何在iOS应用中使用CCMail类发送邮件,包括创建邮件视图控制器、设置收件人、抄送人、主题和正文等步骤。详细解释了邮件格式验证、发送流程和常见错误处理。

被折叠的 条评论
为什么被折叠?



