Print Page | Close Window

SMTP Server Authentication with Jmail

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=9036
Printed Date: 13 April 2026 at 8:55am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: SMTP Server Authentication with Jmail
Posted By: cderington
Subject: SMTP Server Authentication with Jmail
Date Posted: 19 January 2004 at 11:11am

This is a new thread to continue the discussion from an earlier topic. Please see topic http://forums.webwiz.net/forum_posts.asp?TID=4608&PN=2 - 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

 

 




Replies:
Posted By: wfusco
Date 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.



Posted By: dpyers
Date 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.


Posted By: wfusco
Date 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



Posted By: dpyers
Date 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.


Posted By: wfusco
Date Posted: 20 January 2004 at 6:43pm
Is it as easy to setup? what is the cost of it?


Posted By: dpyers
Date 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/ - http://www.persits.com/

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: cderington
Date 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. 



Posted By: aloytxychs
Date Posted: 22 January 2004 at 2:32am
it works when i email a topic but when i want to send email to a member using the built-in client, it fails, why?


Posted By: WebWiz-Bruce
Date Posted: 22 January 2004 at 4:08am
Contact your web hosts, some web hosts don't allow you to send to non-local email accounts.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: cderington
Date Posted: 22 January 2004 at 7:54am
Not sure.  I am emailing membership activations, topics, and using the built in messenger and email client successfully.  Borg maybe right.  The smtp server address I am using is on a remote network that I have access to (webhost) and all of the emails are going to the same domain.   


Posted By: WebWiz-Bruce
Date Posted: 22 January 2004 at 7:59am
If the email domian does not end with your own domain name it is not a local one.

Check with your web hosts as to the setting on their servers with regarding to relaying on email.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: murat
Date Posted: 28 June 2005 at 1:06pm
borg it is not important to be in local or remote host. the main problem is relaying i think.i have mail server in my own server and if you want to send mail you must enter a real mail address and its password but in webwiz forum there is no feature to enter password, you say that make a mail server which doesnt relay but if i do so, someone will send mails via my server as spam and after a time my activation mails will be look like spam mail according to other mail hosts because of this relaying. there must be a part which we can enter a real password and username to send mail for relaying mail servers. isnt there any way to make my mail server is open for every spam user. :(


Posted By: WebWiz-Bruce
Date Posted: 29 June 2005 at 6:38am
You can setup your mail server to only relay on local traffic, or traffic from a specific domain so you don't need password authentication.

When version 7.0 came out most email components did not support SMTP authentication, so the present version lacks this feature.

Version 8 will have database changes so this will allow SMTP authentication to be written into the application and I have already started on SMTP authentication for version 8 for those email components that support it.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



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