dark314 has asked for the wisdom of the Perl Monks concerning the following question:
#UPDATE: So theres a variable I use in the second email, it comes from user input, in a form. Somehow its screwing up sendmail, but im unsure if its caused by just whitespace, I tried formatting the string using $string =~ s/\s+$//; @@ Thing is, I tried this earlier to no avail... but with this webserver mySo I have a script sending an email with info, it then sends a confirmation email. the first email works fine:
company is using .. I wouldn't be suprised it wasn't working..
eh.. thanks ALOT Perlbotics @@ EndUpdate
the second part is what bugs me, its pretty much the sameprint MAIL <<EOF; Mime-Version: 1.0 Content-type: text/html; charset="iso-8859-1" To: info\.someone\@somecompany.com bcc: $recipient From: info\@somecompany.com Subject: BLABLABLA - $SomeVar - $Date #some text bla bla EOF close(MAIL);
so the problem is this, the first email comes through ok, the second email comes through, but does not retail the bcc:, from:, or even the subject:!!!, instead, bcc,from, and subject are included in the email as text inside the email, as oppose to information sendmail uses. (it just copies the rest of the text directly as the message) what could I possibly be doing wrong?print SECONDMAIL <<EOF; Mime-Version: 1.0 Content-type: text/html; charset="iso-8859-1" To: info\.someone\@somecompany.com bcc: $recipient From: info\@somecompany.com Subject: BLABLABLA - $SomeVar - $Date #some text bla bla EOF close(SECONDMAIL);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using sendmail with perl, second email does not recognize anything but To:
by Perlbotics (Archbishop) on Nov 23, 2008 at 13:29 UTC | |
|
Re: using sendmail with perl, second email does not recognize anything but To:
by eye (Chaplain) on Nov 23, 2008 at 19:32 UTC | |
|
Re: using sendmail with perl, second email does not recognize anything but To:
by fmerges (Chaplain) on Nov 23, 2008 at 20:52 UTC |