Helpful Docs to read before posting: (All Docs) | Config Docs | General FAQ | Mailing List Sending FAQ | Error FAQ

script integration

What else do you want to hook Dada Mail to?

Re: script integration

Postby saintex » Tue Dec 07, 2010 2:48 pm

done, but the test mail doesn't start.

It also add ad address to test,
but without success:

Code: Select all
      my $q=new CGI;
         
             
              $q->param('list','test');
              $q->param('from',$emails[$i]{from});
              $q->param('Subject', $emails[$i]{subject});
              $q->param('text_message_body', "This is my PlainText version!");
              $q->param('html_message_body',$emails[$i]{html_body});
              # etc....
          
                if ($emails[$i]{list} eq 'test') {
                         $q->param('process', 'test');
                         $q->param('To', 'my-myself-and-i@to-me.com');
                   }
                   
                   else {
                         $q->param('process', 1);
                   
               }
                 # effettuo l'invio:
                   
                   
                
                     my $ms = DADA::App::MassSend->new;
      
                      
                      eval {
                   
                           no warnings; # necessario perche' dadamail da' errore
                  
                           
                  
                              $ms->send_email(
                               {
                                     -cgi_obj     => $q,
                                   -list        => 'test',
                                   -html_output => 0,
                                }
                          );
                      
                          };
                            
                           if($@){
                                  print "something really major went wrong! $@";
                        }
                        
      
saintex
 
Posts: 13
Joined: Fri Nov 26, 2010 9:27 am

Re: script integration

Postby saintex » Tue Dec 07, 2010 2:57 pm

solved!


I have to use:

Code: Select all
$q->param('test_recipient', 'me@me.com');


(I saw DADA::App::MassSend code).

Thank you very much for suggestions!!
saintex
 
Posts: 13
Joined: Fri Nov 26, 2010 9:27 am

Re: script integration

Postby saintex » Tue Dec 07, 2010 3:09 pm

Is there any way to send test to multiple recipients? (multiple test address)?
I tried with:
Code: Select all
$q->param('test_recipient', 'me@me.com,you@you.com');


but without success...

Thank you!

Bye!
saintex
 
Posts: 13
Joined: Fri Nov 26, 2010 9:27 am

Re: script integration

Postby justin » Tue Dec 07, 2010 3:31 pm

There's not, no.
User avatar
justin
 
Posts: 4583
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: script integration

Postby saintex » Tue Dec 07, 2010 3:43 pm

ok,
thank you for your help for the other problems.
saintex
 
Posts: 13
Joined: Fri Nov 26, 2010 9:27 am

Re: script integration

Postby saintex » Wed Dec 08, 2010 4:33 am

Sorry,
I have another question...

(by the way...
maybe in the next weeks I will send to you a plugin for dada,
an Xml based version available to you,
in order to connect any CMS to dada, trought these XMLs files:
the CMS may generate XMLs,
my dada-connector program read XMLs and send them to dada...
hightly configurable)...

Is there any way to specify the archive option, trought cgi params?
Something like:
Code: Select all
q->param('archive',1);


Is there any way to specify from name (not only 'from' email)?
Code: Select all
$q->param('from',$email_address);


I mean: I would like specify not only the email address, but also the email name.

Please,
let me know.

Thank you for your help until now.
saintex
 
Posts: 13
Joined: Fri Nov 26, 2010 9:27 am

Re: script integration

Postby justin » Wed Dec 08, 2010 6:37 pm

(by the way...
maybe in the next weeks I will send to you a plugin for dada,
an Xml based version available to you,
in order to connect any CMS to dada, trought these XMLs files:
the CMS may generate XMLs,
my dada-connector program read XMLs and send them to dada...
hightly configurable)...


Would be happy to take the code contribution and put it up on the Dada Mail repo (http://github.com/justingit/dada-mail)

Is there any way to specify the archive option, trought cgi params?
Something like:
Code: Select all
    q->param('archive',1);


Yes, just like in the, Send a Message screen, try, "archive_message"

Code: Select all
$q->param('archive_message',1);


Is there any way to specify from name (not only 'from' email)?


There's not - it's always set to the List Owner.
Thank you for your help until now.


Happy to help.

One thing that may help you with seeing what options are available is to grab the, "Web Developer" extension for Firefox:

https://addons.mozilla.org/en-US/firefo ... /60/?id=60

Under its "Form" menu, it has the option: "Display Form Details", which will allow you to see what all form fields are called.
User avatar
justin
 
Posts: 4583
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: script integration

Postby saintex » Thu Dec 09, 2010 1:11 am

ok,
thank you for your help.

but why if I try to send messages from the dada web administration
they come from:

LIST NAME <OWNER ADDRESS>

If I send them through

DADA::App::MassSend->new;

they come from:

OWNER ADDRESS (without LIST NAME prefix) ?


I would like to reproduce the:
LIST NAME <OWNER ADDRESS>
but throught API, the behaviour seem different...
saintex
 
Posts: 13
Joined: Fri Nov 26, 2010 9:27 am

Re: script integration

Postby justin » Thu Dec 09, 2010 6:27 pm

That's a good question, but I'm not sure if I have an answer to that. The From header should have the Phrase and Email Address, automatically.
User avatar
justin
 
Posts: 4583
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Previous

Return to Other! Integration

Who is online

Users browsing this forum: No registered users and 0 guests

Loading