[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Poco Forums • View topic - is this something for Poco

is this something for Poco

Scripting questions and ideas

Moderators: Eric, Tomas, robin, Michael

is this something for Poco

Postby apollo14dk » Tue Aug 22, 2006 12:30 am

I'm receving a mail like this (sorry but the txt is in danish):
Fornavn_herre: Allan
Efternavn_herre: Alone
Klub: xxxclub
Licensnr: xx-xxx-xxx
Fornavn_dame: Jane
Efternavn_dame: Doe
Klub0: xxx-club
Licensnr0: xx-xxx-xxx
Kontakt_Tlf_Nr:
Kontakt_Email: jane@doe.doe
Andet:
Starttid: xxxday 22/8 kl. 20.20

I want to send af confirmation mail to the mailadress in kontakt_Email: jane@doe.doe
Because the emailadress ain't in the header of the mailform, it's another one.
But it's something i can script in pocomail
apollo14dk
New Arrival
 
Posts: 1
Joined: Tue Aug 22, 2006 12:22 am

Postby Michael » Tue Aug 22, 2006 4:01 pm

Yes, you could script this using PocoScript. Use the ReadBody, LocasteLine, GetLine and ChopString commands to get the email address and then use various commands to create a new message (CreateMessage), add the "To" header (AddTo), Subject (AddHeader) and body (AssignBody or AssignStyledBody). Finally use the SendMessage command to send the message.

Remember to add error handling to the script and, if you want to save a copy of the message, the SaveMessage command.
Michael
Moderator
 
Posts: 866
Joined: Mon Jul 26, 2004 12:14 pm
Location: Victoria BC, Canada


Return to PocoScript Help and How-To

Who is online

Users browsing this forum: No registered users and 2 guests

cron