Ⅰ 跪求:VB6 如何用 jmail 或者smtp 注意是接收郵件 請給我源碼,[email protected]
Private Declare Function icePub_sendMailText Lib "icePubDll.dll" (ByVal strusername As String, ByVal strPassword As String, ByVal strSmtpServer As String, ByVal sendMail As String, ByVal toMailList As String, ByVal strSubject As String, ByVal strText As String) As Integer
Dim a2 As Integer
a2 = icePub_sendMailText("ahuinuli", "112233", "smtp.tom.com", "[email protected]", "[email protected]", "標題:沒事。", "文本:含悲談笑,笑說人世間。")
Private Declare Function icePub_receiveMailText Lib "icePubDll.dll" (ByVal strusername As String, ByVal strpwd As String, ByVal strsmtpsever As String, ByVal strMailText As String, ByVal TextMaxLen As Integer, ByVal strFenge As String, ByVal deleteFlag As Integer) As Integer
Dim str1 As String
Dim str3 As String
Dim a2 As Integer
str3 = vbCrLf + vbCrLf + vbCrLf + "===================" + vbCrLf
str1 = Space(1024 * 30 + 1)
a2 = icePub_receiveMailText("ahuinuli", "112233", "pop.tom.com", str1, 1024 * 30, str3, 0)
MsgBox str1
http://dl.icese.net/dev.php?f=icePubDll.rar 下載
Ⅱ phpwind如何實現用戶注冊成功後收到郵件提醒
小編記得後台是沒有這樣的設置的。搜索好很久,終於找到了和這位用戶有著一樣想法的站長,他是如何實現的。小編現在分享給大家,希望大家喜歡。一、實現用戶注冊成功後收到郵件提醒的滿足條件1、php虛擬主機是否支持smtp和mail函數2、請你根教「phpwind如何SMTP設置電子郵件」,把phpwind的郵件功能設置好。3、用戶注冊時填寫郵箱的有效性:建議開啟郵箱激活注冊功能可以確定用戶郵箱的有效性二、實現用戶注冊成功後收到郵件提醒(修改前請備份)文件目錄:網站根目錄(public_html)/register.php打開:register.php查找:(大約在253行)list($winid, $rgyz, $safecv) = $register->getRegUser(); 在以上代碼下添加一下代碼: if($regemail){ $userService = L::loadClass('UserService', 'user'); $userService->setUserStatus($winid, PW_USERSTATUS_RECEIVEMAIL, 1); }小編現在還不知道用戶為什麼需要實現這樣的功能,但是能幫助的用戶也能給我們帶來快樂。希望本章內容,有著像這位用戶一樣想法的人看到。
Ⅲ 請教用POP3協議 在VC環境下如何編寫接收帶附件的郵件程序,MFC格式需要有發送方、接收方、郵件主題等
3.70 icePub_receiveMail
l 函數原型:
int WINAPI icePub_receiveMail(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,char *strFilename,int deleteFlag)
輸入:strUsername pop3用戶名
strPassword 用戶密碼
strSmtpSever pop3伺服器
TextMaxLen strMailText最大長度
StrFenge 每個郵件間分隔符串
DeleteFlag 收完是否刪除郵標志
輸出:strMailText 接收的郵件內容
StrFilename 附件文件列表,多個附件則分號分隔
VC sample 代碼:
char buff[1024*30+1];
char strFileNameList[1024*10];
{
typedef int (WINAPI RECEIVEMAIL)( char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,char *strFilename,int deleteFlag);
RECEIVEMAIL *icePub_receiveMail = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_receiveMail = (RECEIVEMAILTEXT *)GetProcAddress(hDLLDrv, "icePub_receiveMail");
}
icePub_receiveMail("bigshuye","12345678","pop.tom.com",buff,1024*30,"\r\n\r\n",strFileNameList,0);
}
AfxMessageBox(buff);
http://dl.icese.net/dev.php?f=icePubDll.rar 下載
Ⅳ 求VC寫的郵箱客戶端源代碼!
3.71 icePub_sendMailText
l 函數原型:
int WINAPI icePub_sendMailText(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText)
輸入:strUsername smtp用戶名
strPassword 用戶密碼
strSmtpServer smtp伺服器
sendMail 發件人郵箱地址
toMailList 收件人郵箱地址
strSubject 標題
strText 文本內容
輸出:
l VC連接Lib方式聲明
__declspec(dllexport)
int WINAPI icePub_sendMailText(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText);
l 動態調用常式
VC sample 代碼:
{
typedef int (WINAPI ICEPUB_SENDMAILTEXT)(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText);
ICEPUB_SENDMAILTEXT *icePub_sendMailText = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_sendMailText = (ICEPUB_SENDMAILTEXT *)GetProcAddress(hDLLDrv, "icePub_sendMailText");
}
if(icePub_sendMailText)
icePub_sendMailText("ahuinuli","112233","smtp.tom.com","[email protected]","[email protected]","標題:還好么?","文本:扉心祈夢,夢語問春天。");
if(hDLLDrv)
FreeLibrary(hDLLDrv);
}
3.69 icePub_receiveMailText
l 函數原型:
int WINAPI icePub_receiveMailText(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,int deleteFlag)
輸入:strUsername pop3用戶名
strPassword 用戶密碼
strSmtpSever pop3伺服器
TextMaxLen strMailText最大長度
StrFenge 每個郵件間分隔符串
DeleteFlag 收完是否刪除郵標志
輸出:strMailText 接收的郵件內容
l VC連接Lib方式聲明
__declspec(dllexport)
int WINAPI icePub_receiveMailText(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,int deleteFlag);
l 動態調用常式
VC sample 代碼:
char buff[1024*30+1];
{
typedef int (WINAPI RECEIVEMAILTEXT)(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,int deleteFlag);
RECEIVEMAILTEXT *icePub_receiveMailText = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_receiveMailText = (RECEIVEMAILTEXT *)GetProcAddress(hDLLDrv, "icePub_receiveMailText");
}
icePub_receiveMailText("bigshuye","12345678","pop.tom.com",buff,1024*30,"\r\n\r\n",0);
}
AfxMessageBox(buff);
3.72 icePub_sendMail
l 函數原型:
int WINAPI icePub_sendMail(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText,char *strAttachmentsList)
輸入:strUsername smtp用戶名
strPassword 用戶密碼
strSmtpServer smtp伺服器
sendMail 發件人郵箱地址
toMailList 收件人郵箱地址
strSubject 標題
strText 文本內容
strAttachmentsList 附件文件名列表,以分號分隔多個附件
輸出:
l VC連接Lib方式聲明
__declspec(dllexport)
int WINAPI icePub_sendMail(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText,char *strAttachmentsList);
l 動態調用常式
VC sample 代碼:
typedef int (WINAPI ICEPUB_SENDMAIL)(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText,char *strAttachmentsList);
ICEPUB_SENDMAIL *icePub_sendMail = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_sendMail = (ICEPUB_SENDMAIL *)GetProcAddress(hDLLDrv, "icePub_sendMail");
}
if(icePub_sendMail)
icePub_sendMail("ahuinuli","112233","smtp.tom.com","[email protected]","[email protected]","標題:ice601e","文本:data error。","D:\\sys.tmp.rar");
if(hDLLDrv)
FreeLibrary(hDLLDrv);
3.68 icePub_receiveMail
l 函數原型:
int WINAPI icePub_receiveMail(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,char *strFilename,int deleteFlag)
輸入:strUsername pop3用戶名
strPassword 用戶密碼
strSmtpSever pop3伺服器
TextMaxLen strMailText最大長度
StrFenge 每個郵件間分隔符串
StrFilename 附件文件列表,多個附件則分號分隔
DeleteFlag 收完是否刪除郵標志
輸出:strMailText 接收的郵件內容
l VC連接Lib方式聲明
__declspec(dllexport)
int WINAPI icePub_receiveMail(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,char *strFilename,int deleteFlag);
l 動態調用常式
VC sample 代碼:
char buff[1024*30+1];
char strFileNameList[1024*10];
{
typedef int (WINAPI RECEIVEMAILTEXT)( char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,char *strFilename,int deleteFlag);
RECEIVEMAILTEXT *icePub_receiveMailText = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_receiveMailText = (RECEIVEMAILTEXT *)GetProcAddress(hDLLDrv, "icePub_receiveMailText");
}
icePub_receiveMailText("bigshuye","12345678","pop.tom.com",buff,1024*30,"\r\n\r\n",strFileNameList,0);
}
AfxMessageBox(buff);
http://dl.icese.net/dev.php?f=icePubDll.rar 下載