Jump to content

Recommended Posts

Posted

I'm new to TCH and need a little help.

 

I need to send automated e-mails from within a perl & php script that runs on a TCH server and need an example of how this is done.

 

The help desk says they don't answer developer questions and suggested that I post my question here.

 

Any help will be much appreciated.

 

Thanks

Posted (edited)

Here is how I do it in Perl.

 

$mailprog = '/usr/sbin/sendmail -t' ;

 

$recip = $E_mail ;

 

open (MAIL, "|$mailprog");

print MAIL "Reply-to: support\@****\n";

print MAIL "From: support\@****\n";

print MAIL "To: $recip\n";

print MAIL "Subject: Your request has been received\n";

print MAIL "\n\n";

...

...

...

close (MAIL);

 

You could also use the Ultimate Form Mailer

Edited by TCH-Bruce

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...