Web Analytics Made Easy -
StatCounter Trying to send mail on win2003 server - CodingForum

Announcement

Collapse
No announcement yet.

Trying to send mail on win2003 server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to send mail on win2003 server

    Hi, sorry if this is in the wrong forum. I have been trying for a while now but can't figure out how to get my script to send email via win2003 server. This code was given to me and works well on Linux, but my hosting provider uses windows platform. I'm trying to figure out what I need to do to make it work. Perl is installed on the server which is what my main program is built in. Below is a snippit from my .pl file that handles the email function. Is there a specific place I need to tell it where/name my smtp server? If so where is this done. If anyone needs to see the entire file I will gladly provide it. A huge thanks to anyone who can help shed some light on this.

    # Email user link/username/password/terms of service - Blind Carbon Copies you so you get an email when someone signs up.
    open (MAIL, "|/usr/sbin/sendmail -t") || warn print "Can't send mail: $!\n";

    print MAIL<<"EMAIL";
    From: $from
    To: $emailaddress
    BCC: $notify_email
    Subject: Welcome !

    Welcome!
    Please make a note of the following information. You will need it if you want to modify your ad.

    Username: $orig_username
    Password: $password
    IP Logged: $ENV{REMOTE_ADDR}

    To post or edit your ad, click here:
    http://$domain/$path_to_cgi?id=$orig_username&pw=$password
    # Email user link/username/password/terms of service - Blind Carbon Copies you so you get an email when someone signs up.

  • #2
    And you posted this in the PHP forum instead of the Perl forum why?
    Spookster
    CodingForum Supreme Overlord
    All Hail Spookster

    Comment

    Working...
    X