Current location: Hot Scripts Forums » Programming Languages » Perl » Replying to an incoming email message


Replying to an incoming email message

Reply
  #1 (permalink)  
Old 01-17-10, 11:34 AM
hansadamsson hansadamsson is offline
New Member
 
Join Date: May 2009
Location: Finland
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rolleyes Replying to an incoming email message

Hello!

I need a Perl-script for unattended processing of incoming email message. The script will grab/get incoming email message via POP3 from the request and then process the incoming-message header. The script will reply to the message via Sendmail if and only if incoming-message contains matched strings in the subject line. The string may be a regular expression, (properly quoted and escaped).

In other words, when someone sends an email to info@mysite.net on my website, the script (located in cgi-bin directory in UNIX) grabs the incoming email message. The task of the script will be to process the incoming-message header. If subject-line contains the words "ultimate brochure" (case insensitive), the script replies to the incoming message with a default-message.

I am not an expert in CGI/Perl, nevertheless I am trying to learn fast. After searching the internet for the past three weeks I came about these articles:
i) Accessing Mail via POP3 in Perl & PHP
Accessing Mail via POP3 in Perl & PHP
ii) Sending Mails using Sendmail
Sending Email in Perl

My problem is how to write a code that processes the header of incoming email and checks whether the words/expression “ultimate brochure” are included; subsequently send reply.

It will be highly appreciated if somebody can provide me with a script that can accomplish the task postulated above. Many thanks in advance. hans.adamsson(at)wippies.fi

Best regards,
Hans Adamsson, Finland
Reply With Quote
  #2 (permalink)  
Old 01-17-10, 12:19 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
You've posted repeatedly about this issue in different threads:

http://www.hotscripts.com/forums/scr...g-message.html

http://www.hotscripts.com/forums/per...imate+brochure

If no one has replied to you with a solution in any of your previous threads, you probably won't get a different answer in a new thread with the same issue.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
Reply

Bookmarks

Tags
cgi, email, incoming, perl, reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replying to the incoming message hansadamsson70 Script Requests 2 01-10-10 09:21 PM
Freeze columns in a table Rita Negi Script Requests 1 09-01-09 08:23 AM


All times are GMT -5. The time now is 04:55 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.