55 users online (0 members and 55 guests)  


  Results 1 to 6 of 6

Related

  1. Sending forms VIA email??? HelP?    Forum: HTML Forum
    Replies: 2
  2. help with sending email    Forum: ASP Forum
    Replies: 1
  3. How to email a HTML url in Perl    Forum: CGI Perl Forum
    Replies: 0
  1. #1
    c800spd's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2005
    Posts
    2

    Sending email via Perl through MS Exchange Server

    Hello,

    Uptil now I have looking at writing a script employing use of SMTP module and also sender-mail. But not having success and believe this may becasue my machine not using SMTP but goes through MS Exchange server.

    Can someone please suggest how I go about doing this and aslo what module I need to install?

    BTW I am running Activstate Perl
    This is perl, v5.8.6 built for MSWin32-x86-multi-thread
    (with 3 registered patches, see perl -V for more detail)
    on WIN2000.

  2. #2
    c800spd's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2005
    Posts
    2

    Re: Sending email via Perl through MS Exchange Server

    Sorted!!!!!!!!!!!!!

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Re: Sending email via Perl through MS Exchange Server

    Great! Sorry that no-one could help, that was quite a specialised question. Would you mind sharing your solution for those that come after?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Sending email via Perl through MS Exchange Server

    ya, i would have helped you, but i am in the stage where i know how to code cgi/perl, but still need to learn all the special variables, and some of the functions (i used to know VB, VB.NET, and little C#, but decided to take a swing at cgi/perl)

  5. #5
    xfactor33's Avatar
    New User

    Status
    Offline
    Join Date
    May 2005
    Posts
    2

    Re: Sending email via Perl through MS Exchange Server

    Hi, I am interesed in doing something similar. Can you post your solution? I am pretty good a perl programming, however I have no previous experience working with SMTP and MS Exchange.

    Thanks

  6. #6
    xfactor33's Avatar
    New User

    Status
    Offline
    Join Date
    May 2005
    Posts
    2

    Re: Sending email via Perl through MS Exchange Server

    After struggling for a while (because first time coding email programs) I was able to find how to do the trick, Using Perl modules MIME::Lite and Net::SMTP you can accomplish this (send emails through an ms exchange smtp server) If you need authentication (ie. server does not relay) then substitute Net::SMTP for Net::SMTP_auth. The trick to make this two work together is to create a email message with MIME::Lite (you can add attachments, use html or text) then convert the MIME::Lite object into a string (there is a method to do it within the module) then using the datasend(string) method from Net::SMTP your email will be ready to go.



Tags for this Thread