PLEASE WAIT


 
Fast BGP Network 99.9% Uptime
UK Hosting PHP & MySQL
Quality Support Windows or Linux
 
 
 JMail from Dinac
Search  
 
More Pages:
Domain Information
Network Technology
Data Centre
Terms of Service


Domain Registration
SSL Services
Company Details
Knowledgebase
Downloads
Email Us

  Home » JMail from Dinac
With w3 JMail it is possible to send and retrieve e-mail from your web site with just a few lines of ASP code. And the good news is that all our Windows 2003 hosting packages include the use of ws Jmail v4.4 as standard.

w3 JMail can be used by developers to send and receive e-mail from their ASP code in a very simple way. Not only is it possible to send e-mails, w3 JMail now also features retrieval of e-mails.

JMail can be used to create simple signup forms or create mailing list applications (please see our terms of service regarding bulk email). JMail can also be used in your custom error page to inform you if there is an error on your site. It is also quite possible with JMail to create a simple email browser application, or even a full feature webmail system.

Below you will find an extremely simple piece of code which will send an email from your webpage.

 <%@LANGUAGE = VBSCRIPT%> <html>
<body>

    <%

    ' Create the JMail message Object
    set msg = Server.CreateOBject( "JMail.Message" )

    ' Set logging to true to ease any potential debugging
    ' And set silent to true as we wish to handle our errors ourself
    msg.Logging = true
    msg.silent = true

    ' Most mailservers require a valid email address
    ' for the sender
    msg.From = "test@mydomain.com"
    msg.FromName = "My Realname"

    ' Next we have to add some recipients.
    ' The addRecipients method can be used multiple times.
    ' Also note how we skip the name the second time, it
    ' is as you see optional to provide a name.
    msg.AddRecipient "recipient@hisDomain.com", "His Name"
    msg.AddRecipient "recipientelle@herDomain.com"


    ' The subject of the message
    msg.Subject = "How you doin?"

    ' The body property is both read and write.
    ' If you want to append text to the body you can
    ' use JMail.Body = JMail.Body & "Hello world! "
    ' or you can use JMail.AppendText "Hello World! "
    ' which in many cases is easier to use.
    '
    ' Note the use of vbCrLf to add linebreaks to our email
    msg.Body = "Hello Jim" & vbCrLf & vbCrLf & "How's it going? ..."

    ' There.. we have now succesfully created our message.
    ' Now we can either send the message or save it
    ' as a draft in a Database.
    ' To save the message you would typicly use the
    ' Message objects Text property
    ' to do something like this:
    '
    ' SaveMessageDraft( msg.Text )
    ' Note that this function call is only an
    ' example. The function does not exist by
    ' default, you have to create it yourself.


    ' To send the message, you use the Send()
    ' method, which takes one parameter that
    ' should be your mailservers address
    '
    ' To capture any errors which might occur,
    ' we wrap the call in an IF statement
    if not msg.Send("mail.myDomain.net" ) then
        Response.write "<pre>" & msg.log & "</pre>"
    else
        Response.write "Message sent succesfully!"
    end if


    ' And we're done! the message has been sent.

%>
</body>
</html>




As you can see, sending an email with Jmail is a very simple process.

Online References
You can get further information on the JMail website http://www.dimac.net
You can also view the complete reference manual here
You can also view the w3Jmail manual here

If any of the above links are not working please let us know.
 
HOME | WEB HOSTING | BUSINESS HOSTING | RESELLER HOSTING | DOMAIN NAMES | SSL HOSTING | SUPPORT & CONTACT
Copyright © ABCreg.NET Limited. All rights reserved
ABCreg.NET