SendMail 메일 보내기 소스 질문
캔서
센드메일을 이용해서 후원 프로그램을 제작하려고 합니다.인터넷에서는 파이어 폭스로 attachID의 뒷값을 따서 붙여넣기 하라고 해서 붙여넣기를 하였습니다.그런데 소스를딸데 네이버 로그인한 아이디로 로그인하지 않으면 메일이 전송이 안되더라고요,메일 전송소스 어떻게 따야할가요?http://mail.naver.com/pv/sendresult.jsp?attachID=csbwKAtwKAUwKx2wBqbw7rwlWqulFxKTFogmaxKwKAvlKAgZ&time=1389931105192Private Sub Command1_Click()
Winhttp.Open POST, https://nid.naver.com/nidlogin.login
Winhttp.SetRequestHeader Referer, http://static.nid.naver.com/login.nhn?svc=me&url=http%3A%2F%2Fwww.naver.com&t=20120405
Winhttp.SetRequestHeader Content-Type, application/x-www-form-urlencoded
Winhttp.Send id= & Text1.Text & &pw= & Text2.Text & &enctp=1&svctype=0&saveID=&smart_level=1
If InStr(StrConv(Winhttp.ResponseBody, vbUnicode), http://static.nid.naver.com/sso/cross-domain.nhn?sid=) Then
MsgBox 네이버 로그인 성공, vbInformation,
Else
MsgBox 네이버 로그인 실패, vbCritical,
End If
End SubPrivate Sub Command2_Click()
Winhttp.Open POST, http://mail.naver.com/json/write/send/
Winhttp.SetRequestHeader Referer, http://mail.naver.com/
Winhttp.SetRequestHeader Content-Type, application/x-www-form-urlencoded; charset=utf-8
Winhttp.Send senderName= & Text3 & &to= & Text4 & &cc=&bcc=&subject= & Text5 & &body= & Text6 & &contentType=html&charset=AUTO&sendSeparately=false&saveSentBox=true&type=new&fromMe=0&attachID=csbwKAtwKAUwKx2wBqbw7rwlWqulFxKTFogmaxKwKAvlKAgZ.&reserveDate=&reserveGMT=&reserveTime=&calendarVal=&autoSaveMailSN=&addReceiverAddress=false&attachCount=0&attachSize=0&bigfile=&sessionID=&seqNums=&priority=0&ndriveFileInfos=&lists=&serviceID=&u= & Text1
MsgBox 전송, vbInformation,
End Sub
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2694041 | 모듈은 무었인가요? | 하람 | 2025-05-07 |
2694013 | 비쥬얼베이직 책 추천좀요^^... | 초코맛캔디 | 2025-05-07 |
2693985 | 리소스문제데요...ㅋㅋ (1) | 아리에스 | 2025-05-07 |
2693929 | 했는데 ㅠㅠ | 볼수록중독 | 2025-05-06 |
2693870 | 수정좀요 ^^;; (2) | 차오름 | 2025-05-06 |
2693812 | ※고구마는 보아라 (6) | 솔길 | 2025-05-05 |
2693789 | 마우스가있는곳의 좌표 보기 | 하예진 | 2025-05-05 |
2693759 | 실시간으로 서버 열렸는지 닫혔는지 확인하는법좀 | 참이 | 2025-05-05 |
2693728 | 로그인 유지 관련 제발 성실답변좀요 | 에녹 | 2025-05-04 |
2693705 | 아 재질문합니다 (5) | 모아 | 2025-05-04 |
2693677 | Dim a (1 to 11) AS Long에서 11을 K로 놓는 방법 질문 | 진주 | 2025-05-04 |
2693648 | 55런타임오류..... | 가론 | 2025-05-04 |
2693620 | 수다님 꺼처럼 하는방법좀요 | PinkPearl | 2025-05-03 |
2693564 | ir creator 에대해서 질문드립니당.. | 글고운 | 2025-05-03 |
2693540 | 배열 간 이동시키기 | 악당 | 2025-05-03 |
2693518 | 비베 WebBrowser1 오류 도움구합니다 | 수예 | 2025-05-02 |
2693491 | 블로그스크랩기 , 사이트 글가져오기 질문합니다. | Addicted | 2025-05-02 |
2693437 | 폼 에대해서요 ㅜ_ㅜ | 돌삥 | 2025-05-02 |
2693412 | 컴파일 오류떠여 ㅠㅠ | 꺆잉 | 2025-05-01 |
2693388 | 프로그램으로 프로그램 만들기질문 | 하루키 | 2025-05-01 |