Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
File containing parameters
Davide
post Feb 19 2010, 10:59 AM
Post #1


Visitor
*

Group: Members
Posts: 4
Joined: 18-December 09
Member No.: 919


Hello everybody.
I'm actually trying to send to Gateway a file containing a series of lines containing the parameters needed to send a mail to an external address.
How can I read these lines into a Perl script and return these values into a set of commands ready for a Transfer Model mail ? (i.e. : smtp_to, smtp_bcc, ...)
Thanks in advance,
Davide
Go to the top of the page
 
+Quote Post
psamman
post Feb 22 2010, 04:24 PM
Post #2


Contributor
**

Group: Members
Posts: 28
Joined: 15-January 09
Member No.: 283


This is more of a Perl problem, isn't it?!
I would use use MIME::Entity;
Go to the top of the page
 
+Quote Post
coincoin
post Feb 24 2010, 12:20 PM
Post #3


Visitor
*

Group: Members
Posts: 3
Joined: 25-November 08
Member No.: 217


Hi,

I think you should use a script like that :

open(TOTO,"toto.txt") ¦¦ die ("Erreur d'ouverture de TOTO") ;

while (<TOTO>) {
print "la ligne $_ a ete lue\n"; // modifiy this line to record the line in a variable.

}

close(TOTO);

After that, you can call a peltrans command and use the previous variables.
Don't forget to load the Gateway profile before.

Regards,
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins