Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Who can make a procedure to send email .....

mrDuongmrDuong Member Posts: 11
I need a sub procedure to send email like

Sub MySendEmail(Emailadd as string,subject as string) as boolean

who can help me ???

Comments

  • the walrusthe walrus Member Posts: 249
    : I need a sub procedure to send email like
    :
    : Sub MySendEmail(Emailadd as string,subject as string) as boolean
    :
    : who can help me ???
    :

    It's not very hard. It gets tricky if you want to send attachments, but just text is pretty easy. First, you have to connect to a mail server that'll relay your message (I think something like yahoo.com should work.. ?) on port 25. (You'll want to use the Microsoft Winsock Control if you haven't already figured that out.) After that you just talk to the server and tell it who you're sending it to, who it's from, your text, ect. and they will relay it across the net until it reaches the recipient. http://email.about.com/cs/standards/a/smtp.htm is a good site that'll explain how SMTP works.
  • kel1981bkel1981b Member Posts: 852
    : : I need a sub procedure to send email like
    : :
    : : Sub MySendEmail(Emailadd as string,subject as string) as boolean
    : :
    : : who can help me ???
    : :
    :
    : It's not very hard. It gets tricky if you want to send attachments, but just text is pretty easy. First, you have to connect to a mail server that'll relay your message (I think something like yahoo.com should work.. ?) on port 25. (You'll want to use the Microsoft Winsock Control if you haven't already figured that out.) After that you just talk to the server and tell it who you're sending it to, who it's from, your text, ect. and they will relay it across the net until it reaches the recipient. http://email.about.com/cs/standards/a/smtp.htm is a good site that'll explain how SMTP works.
    :
    You can also find some help at
    http://support.microsoft.com/default.aspx?scid=KB;en-us;q161833

Sign In or Register to comment.