[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 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 - Setting "from" field

Setting "from" field

Scripting questions and ideas

Moderators: Eric, Tomas, robin, Michael

Setting "from" field

Postby SzDoc » Mon Jul 28, 2008 3:00 am

I'm trying to write a simple script to automate setting up a new e-mail from a particular account (not the PM default account) to a particular sender. The latter part works fine, and the e-mail opens for editing. The intent is assigning it to a button.

However, I cannot change the "from" field. Tried "setaccount", "addheader from", "addfrom", all to no avail. Always shows up with the default account.

How do I create an new e-mail which originates from other than the PM default account.
SzDoc
Poco Tourist
 
Posts: 47
Joined: Wed Jul 23, 2008 11:10 am

Postby MarkB » Mon Jul 28, 2008 9:41 pm

A template will do that. And a command tag assigned to a button will start a new message from that template: /perform/newmessage/<your_template>/

Command Tags:
http://pocomailfaq.freeservers.com/commandtags.html
MarkB
Poco Enthusiast
 
Posts: 217
Joined: Mon Aug 09, 2004 1:31 am
Location: Canada

Postby SzDoc » Mon Jul 28, 2008 11:31 pm

Exactly as required. MUCH thanks.
SzDoc
Poco Tourist
 
Posts: 47
Joined: Wed Jul 23, 2008 11:10 am


Return to PocoScript Help and How-To

Who is online

Users browsing this forum: No registered users and 1 guest

cron