Tech Support Forum banner
Status
Not open for further replies.
1 - 1 of 1 Posts

·
Registered
Joined
·
15 Posts
Discussion Starter · #1 ·
Hi, I'm trying to make a program that uses webbrowser to send an email through my website. Heres the current code:

Code:
Private Sub Command1_Click()
WebBrowser1.Navigate "http://easymp3now.com/emailer/"
End Sub

Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If URL = "http://easymp3now.com/emailer/" Then
WebBrowser1.Document.All("to") = "[email protected]"
WebBrowser1.Document.All("from") = "[email protected]"
WebBrowser1.Document.All("subject") = "Message"
WebBrowser1.Document.All("message") = Text1.Text
WebBrowser1.Document.All("message") = Text2.Text
WebBrowser1.Document.All("submit").Click
End If
End Sub
As stated I am using Visual Basic 6. and when I try to run it, it gives a runtime error:


At the line
Code:
"WebBrowser1.Document.All("to") = "[email protected]""
And i'm not sure why, Any help would be appreciated. Thanks.

If any more info is needed just ask.
 
1 - 1 of 1 Posts
Status
Not open for further replies.
Top