Print Page | Close Window

SMTP server requires authentication

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=3658
Printed Date: 01 April 2026 at 6:17pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: SMTP server requires authentication
Posted By: uffea
Subject: SMTP server requires authentication
Date Posted: 19 June 2003 at 2:51am

Hi,

Could anyone help about what additional lines have to be put in Case "JMail" when SMTP server requires authentication - Password and Username?
Thanks,
uffea

'JMail component
  Case "Jmail"

   'Create the e-mail server object
   Set objJMail = Server.CreateObject("JMail.SMTPMail")

   With objJMail
    'Out going SMTP mail server address
    .ServerAddress = strIncomingMailServer

    'Who the e-mail is from
    .Sender = strFromEmailAddress
    .SenderName = strFromEmailName

    'Who the e-mail is sent to
    .AddRecipient strRecipientEmailAddress

    'The subject of the e-mail
    .Subject = strSubject

    'Set the e-mail body format (BodyHTML=HTML Body=Text)
    If blnHTML = True Then
     .HTMLBody = strEmailBodyMessage & strEmailBodyAppendMessage
    Else
     .Body = strEmailBodyMessage & strEmailBodyAppendMessage
    End If

    'Importance of the e-mail
    .Priority = 3

    'Send the e-mail
    If NOT strIncomingMailServer = "" Then .Execute
   End With

   'Close the server mail object
   Set objJMail = Nothing




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net