Hello everyone. We are writing a little script that sends a mail to a collegue or department in case of sickness. We have a website that we host that can also be accessed remote with a form to fill out.
Our problem is after trying some things that the Mail arrives with no Subject. The subject is always empty and we dont understand why. Any idea? Here is most of the Script:
if (eingabefehler() == 1) {
print $cgi->header(),
$cgi->start_html('Krankmeldung nicht abgeschickt!'),
$cgi->h1('Bitte alle Eingabefelder ausfüllen');
print $cgi->end_html();
}
else {
$abt = $cgi->param('abt');
$smtp = Net::SMTP->new('cluster.xx.xx',Timeout => 30);
$smtp->mail($ENV{USER});
switch($abt)
{
case "xx" { $smtp->to('mail.address'); )
}
$smtp->cc('mail.address');
$smtp->mail($ENV{USER});
$smtp->data();
$smtp->datasend("From: Krankmeldeformular\n");
switch($abt)
{
case "xx" { $smtp->datasend("To: person"); }
}
$smtp->datasend("Subject: Krankmeldung\n");
$smtp->datasend("\n");
$smtp->datasend("Name: ",$cgi->param('name'),"\n\n");
$smtp->datasend("Datum: ",$cgi->param('datum'),"\n\n");
switch($abt)
{
case "xx" { $smtp->datasend("department \\n\\n"); }
}
$smtp->dataend();
$smtp->quit;
print $cgi->header(),
$cgi->start_html('Krankmeldung abgeschickt!'),
$cgi->h1('Mail versendet');
print $cgi->end_html();
}
submitted by /u/Lionsrise
[link] [comments]
Planning to replace my frontend with VueJs, looking for tips from those who have done it and some advice.
Its unclear to me how the templating or communication between Perl and VueJs woild work, dpes Vue get setup in my root directory and how does my backend communicate with the frontend?
Currently using template toolkit, so do i keep using it and embed vue or build a standalone vue app, in which case how do i serve it.
There is currently a baclend/frontend and both use template toolkit, i am only planning on reworking the frontend for now so there needs to be some backwards compatability with the rest of the project
submitted by /u/Mowntain-Goat8414
[link] [comments]
- "Have the appropriate amount of fun."
- "construed as a feature"
- "It does what you want, unless you want consistency."
- "'functional' is not to be construed as an antonym of 'dysfunctional'"
- "leaning toothpick syndrome"
I read it at the formative age of 16.
submitted by /u/Kodiologist
[link] [comments]
submitted by /u/davorg [link] [comments] |
Dancing with Copilot Workspace - Perl Hacks
Over the last few months, I've been dabbling in using AI to generate or improve code. I have a subscription to GitHub Copilot and I'm finding it a really useful tool for increasing my productivity.Dave Cross (Perl Hacks)