Hi,
I have JMail on my server installed. It works ik inly when I send internal mail
e.g. from info@myhost.com to order@myhost.com
When I'm trying to send and email to external recipient I'm getting error from JMail component: can't send mail to external recipient without password.
I know my mail server login and pass, but I don't know how to insert it the code.
Now I'm using this code:
<%@ language= "VBscript" %>
<% Option Explicit
'declare your variables
Dim JMail
'create an instance of the JMail Object
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "mail.codefixer.com" ' the name of your mailserver
JMail.AddRecipient "sendto@email.com" ' the email it will be sent to
JMail.Sender = "sentfrom@Email.com" ' the email it will be sent from
JMail.Subject = "Your subject"
'JMail.ContentType = "text/html"
JMail.Body = "Hi just testing out this JMail component."
JMail.Execute
Set JMail= Nothing
%>
So where shoul I paste login and pass.
Thank you all.
|