소스질문.
아이뻐
그냥 자료보면서 수다님이 네이버메일보내기 라는거 올려주셔서 써봣는데.거기잘보면아이디 패스워드 to 내용 이런식으로 있는데아이디 패스워드 텍스트창 없에고 그냥 오게할려면어떻게하나요?dim winhttp as new winhttprequest
function naverlogin(id$, pw$) as boolean
winhttp.open post, http://nid.naver.com/nidlogin.login
winhttp.setrequestheader referer, https://nid.naver.com/nidlogin.login
winhttp.setrequestheader content-type, application/x-www-form-urlencoded
winhttp.send enctp=2&svctype=0&id= & id & &pw= & pw
naverlogin = instr(strconv(winhttp.responsebody, vbunicode), static.nid.naver.com/sso/)
end functionfunction naversendmail(target$, subject$, note$) as boolean
winhttp.open post, http://mail.naver.com/json/write/send/?aid=tsfcwrwm_lymkoumksevkqux7quz7rrgwxic1out1r0tbzc8komwkotdax2.&acount=0&asize=0
winhttp.setrequestheader content-type, application/x-www-form-urlencoded
winhttp.setrequestheader referer, http://mail.naver.com/?n=1331956716034&v=f#%7b%22fclass%22%3a%22write%22%2c%22oparameter%22%3a%7b%22ordertype%22%3a%22new%22%2c%22smaillist%22%3a%22%22%7d%7d
winhttp.send body= & replace(note, vbcr, br) & &ordertype=new&subject= & subject & &to= & target & &u= & text1 & &attachid=tsfcwrwm_lymkoumksevkqux7quz7rrgwxic1out1r0tbzc8komwkotdax2.
naversendmail = instr(utf82string(winhttp.responsebody), 메일을 보내지)
end function
private sub command1_click()
if naverlogin(text1, change(text2)) = true then
if naversendmail(text3, text5, text4) = true then
msgbox 성공
else
msgbox 실패
end if
else
msgbox 로그인 실패
end if
end sub
function change(str as string) as string
dim i as long
for i = 1 to len(str)
if asc(mid$(str, i, 1)) 0 then
if len(hex(asc(mid$(str, i, 1)))) = 4 then
change = change & % & mid$(hex(asc(mid$(str, i, 1))), 1, 2) & % & mid$(hex(asc(mid$(str, i, 1))), 3, 2)
else
change = change & % & hex(asc(mid$(str, i, 1)))
end if
else
change = change & mid$(str, i, 1)
end if
next i
end function
private function utf82string(byref data() as byte) as string
dim objstream
dim strtmp as string
set objstream = createobject(adodb.stream)
objstream.charset = utf-8
objstream.mode = 3
objstream.type = 1
objstream.open
objstream.write data
objstream.flush
objstream.position = 0
objstream.type = 2
strtmp = objstream.readtext
objstream.close
set objstream = nothing
utf82string = strtmp
end function
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2699106 | 오류좀 봐주세요; (2) | 맞빨이 | 2025-06-23 |
2699079 | 파싱 질문입니다 (4) | 피네 | 2025-06-22 |
2699025 | 블루투스 시리얼통신으로 리스트뷰에 등록 | 목화 | 2025-06-22 |
2698995 | [사진有] 비밀번호 틀리면 다음 창으로 안넘어가지게 하는법없나요?? (3) | 슬현 | 2025-06-22 |
2698939 | 메세지박스 줄띄우는법 | 누리별 | 2025-06-21 |
2698910 | 런타임 424 질문 | 야미 | 2025-06-21 |
2698883 | 배열에 관련하여 (1) | 민트맛캔디 | 2025-06-21 |
2698856 | 빤짝거리는 내 툴의 재목 !? | 초롱꽃 | 2025-06-20 |
2698830 | 리스트 인덱스 질문 (2) | 말글 | 2025-06-20 |
2698803 | 리스트 뷰 질문이요. (2) | 딸기향 | 2025-06-20 |
2698750 | 헐 웹브앙대요 | 꺆잉 | 2025-06-19 |
2698694 | 모듈의 핸들 | 렁찬 | 2025-06-19 |
2698674 | VB 고수분들 봐주세요 (6) | 세이 | 2025-06-19 |
2698617 | 윈속.ocx다운받는곳좀여 | 안토니 | 2025-06-18 |
2698588 | 자 나를 즐겁게 해봐요 | 다흰 | 2025-06-18 |
2698529 | 이거 저작권 상,고,명인데 점부탇드림 (3) | 서향 | 2025-06-17 |
2698503 | 오늘도~윈속질문이요~ | 텐시 | 2025-06-17 |
2698478 | 비베6에서 exe파일만들때 자동링커되려면 | 달달한캔디 | 2025-06-17 |
2698431 | 파일 주소 숨기고 다운로드 하게 하는 방법! (질문임..) (1) | 비마중 | 2025-06-16 |
2698405 | 어떤 dll 이 제 보안프로그램 메모리를 자꾸 변조하는데. (2) | 귀염포텐 | 2025-06-16 |