Your WebCode

Log In / Submit Code / Join     

Find Code
    Highest Rated
    Newest
    Most Viewed
    Browse
           ASP
           ASP.NET
           CSS
           JAVA
           JavaScript
           PERL
           PHP


Sponsors
  
eShop commerce software


Send an E-mail using CDONTS

 Language:  PERL
Rated by 3 Users

1 Star = Horrible
5 Stars = Perfect
Rate Code Now
 Posted By:  keith
 Author Website:  asp or php
 Posted On:  6/21/2007
 Code Views:  1516
   This code is just a simple way to send an e-mail using the CDONTS component.



#!/usr/bin/perl
# Never forget your PERL path goes on the top line...

$perlmessage = Server->CreateObject("CDONTS.NewMail");
$perlmessage->{From} = "Your@Email.Com";
$perlmessage->{To} = "Their@Email.com";
$perlmessage->{Subject} = "Subject Here";
$perlmessage->{Body} = "Message Body Here";
$perlmessage->Send


View code in Textarea

This code has not been tested by Your WebCode.
Use it at your own risk.
Please report any copyright violations.



Reviews
Hide Reviews | Add Review | Delete Review 
No Reviews

Blog | Monthly Contest | Current Contest Leaders | FAQ | Link to us
Privacy Policy | Terms | Credits | Other Sites | Contact Us
CopyRight. All Rights Reserved.