|
Post by Matt98712 on Oct 23, 2003 8:01:20 GMT -5
How Do You Make VB Send a
Can it?
|
|
Ryan
New Member
Posts: 18
|
Post by Ryan on Oct 23, 2003 11:05:16 GMT -5
Yes, its quite easy too. You should learn how to send them first before trying to even make it however here is a working one and how it works. members.lycos.co.uk/ry4np22x/Email.zipCreate a winsock Connect the winsock to either mail.hotmail.com or mx1/mx2/mx3.hotmail.com on port 25 Then on winsock connect send data "helo" Once you recieve a msg in the data arrival which contains "hello" then send data "mail from: blah@blah.com" you will then recieve a email saying sender ok.... or somit like that use a dubug box to get the exact text. send data "rcpt to: blah@blah.com" once you get start mail output with a crlf . crlf debug do this... senddata "subject: here" " " "from: blah@blah.com (Nickname Optional)" " " "to: blah@blah.com (Nickname Optional)" " " "Message content goes here" ' once finished content send a "." to end the email " " "." you will then get a debug message saying queued for delivery and it will be sent. senddata "subject: here" " " "from: blah@blah.com (Nickname Optional)" " " "to: blah@blah.com (Nickname Optional)" is not needed but it is best to include <edit>You need to also send vbcrlf on the end of the message</edit>
|
|