Thread: e-mail send

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Posts
    13
    Rep Power
    0

    Question e-mail send


    Hello! ! !

    I would like to know how can i nodify some users which are into my databese with an e-mail? How can i sent to them an "automate" e-mail using VB script

    thx
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Posts
    29
    Rep Power
    0

    Sending E-mail From A Windows Server


    If you're on a Windows server, this should work:

    Function email_send (FromAddr, ToAddr, Subject, Message, MessageFormat, SiteURL)
    Set objNewMail = Server.CreateObject("CDONTS.NewMail")
    With objNewMail
    .To = ToAddr
    .From = FromAddr
    .Subject = Subject
    .Body = Message
    If LCase(MessageFormat) = "html" Then
    .BodyFormat = 0 ' HTML
    .MailFormat = 0 ' MIME format
    .ContentBase = SiteURL
    Else
    .BodyFormat = 1 ' text message
    .MailFormat = 1 ' text/plain format
    End If
    .Send
    End With
    Set objNewMail = nothing
    End Function

    You'll find details here:

    http://www.devasp.com/Samples/mail.asp

    http://msdn.microsoft.com/library/de...s_library_.asp
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Posts
    13
    Rep Power
    0

    Thx


    Thx I will try it

IMN logo majestic logo threadwatch logo seochat tools logo