Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - SMTP Server Authentication with Jmail
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SMTP Server Authentication with Jmail

 Post Reply Post Reply Page  12>
Author
cderington View Drop Down
Newbie
Newbie
Avatar

Joined: 16 January 2004
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote cderington Quote  Post ReplyReply Direct Link To This Post Topic: SMTP Server Authentication with Jmail
    Posted: 19 January 2004 at 11:11am

This is a new thread to continue the discussion from an earlier topic. Please see topic Problems with W3 Jmail Component 

I know there are some very talented developers out there reading this forum who can answer the question on how to make the JMail component of the forum authenticate with the SMTP server by sendng the user's login credentials.

I have attempted to update some information in the commom.asp page as well as the other email pages in the forum.

If you can help, please post reply.  -Borg- where ya at?

Craig

 

 



Edited by cderington
Back to Top
wfusco View Drop Down
Groupie
Groupie


Joined: 12 September 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote wfusco Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2004 at 8:33pm

I will tell you how I wound up having to do it, I had to add the email address as a trusted user. Depending on the mail server that you are using. It works okay as long as your machine is never compromised I guess. I reagular keep a very close eye on my network and so far there has not been any problem.

Hope this helped.

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 2:22am
I had a this problem on a server and never resolved it. Finally went with AspEmail and used .FromMail.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
wfusco View Drop Down
Groupie
Groupie


Joined: 12 September 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote wfusco Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 6:45am

Okay - I would love to use something else that used authenication however I could not figure out how to get AspMail to work...

Waume

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 6:29pm
AspEmail is by Persists. It is different than AspMail by ServerObjects.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
wfusco View Drop Down
Groupie
Groupie


Joined: 12 September 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote wfusco Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 6:43pm
Is it as easy to setup? what is the cost of it?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 7:34pm
Freebie... think it took about 10 minutes to set up - quite a while ago http://www.persits.com/

Lead me not into temptation... I know the short cut, follow me.
Back to Top
cderington View Drop Down
Newbie
Newbie
Avatar

Joined: 16 January 2004
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote cderington Quote  Post ReplyReply Direct Link To This Post Posted: 21 January 2004 at 5:28pm

Well, finally!  I have the Jmail component working with SMTP server authentication.  I modified the code in the functions_send_mail.asp page so that the ServerCreateObject uses a different method.  The Jmail.SMTPMail was from an earlier verison of the W3 Jmail component and does not allow for authentication.  See code snippet below:

'JMail component
  Case "Jmail"

   'Create the e-mail server object
   'Here we change the method from Jmail.SMTPMail to Jmail.Message
   Set objJMail = Server.CreateObject("JMail.Message")

   With objJMail
     'Who the e-mail is sent to
    .From = strFromEmailAddress
    .FromName = strFromEmailName
    .AddRecipient strRecipientEmailAddress
    
    'Send SMTP Server authentication data
    .MailServerUserName = "username"
    .MailServerPassword = "password"

    '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
    
    'Out going SMTP mail server address
     .Send("smtp-server.domain.com" )

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

   'Close the server mail object
   Set objJMail = Nothing

I hope this helps those of you who were having trouble with authentication and Jmail. 

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.