Results 1 to 2 of 2

Thread: sendmail

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Unhappy sendmail

    can anybody show me a quick script in PERL using sendmail? I've been trying to do it, and I keep getting errors when I run it.

    Thanks

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  2. #2
    scoutt
    Guest
    hi Crpt

    this is one example, if you want another you need to wait till I get home. I have another one that is more easier to read.
    Code:
    open(MAIL, "|$mail_program -t") || die "Can't open $mail_program!\n";
    print MAIL<<EOF;
    To: $admin_email
    From: $as{'user_email'}
    Subject: New Code $email_fields[0] Posted: $email_fields[10]
    A new code has been posted to the $site_name web site. The code information is as follows.
    
    
    Name: $as{'user_name'} ($as{'user_nickname'})
    Email: $as{'user_email'}
    
    Category: $as{'category_name'}
    
    NAME OF SCRIPT: $email_fields[10]
    EOF
    if this don't help what type of errors are you getting?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width