Mar 20, 2013; 00:36
Lars A. Gundersen
Trying to start with Mandrill - a little help
After being mentioned by Sean, I thoguht I'd give Jason's mandrill wrapper tags a go. I got my API key, but can't seem to get off the ground, hope somebody can help me a little bit. The examples are a bit sparse, but I thought I had figured out that basically, you could send an email, and get a status back, by using:
var('m') = mandrill( -key='SXXXX-mykeythingyskcjns');
$m->messages_send( -to=array(map('name'='Lars Gundersen', 'email'='lars@larsagundersen.no')), -from_email='epost@sonorait.no',
-subject='Testing again', -text='This is the body text of the testing');
But messages_send then fails with this output:
map: (name)=(Include_url: An error occurred on the remote server: 500 Internal Server Error), (status)=(error), (message)=(Include_url: An error occurred on the remote server: 500 Internal Server Error), (code)=(500)
Which don't tell me much. I have verified my key is good by using the replacement Email_Send, but I need a status back and figure I'll probably need a bit more control.
Probably a simple mistake, something I haven't understood about using it. Any help would be great.
Oh, and two more questions:
Is it correct that you don't get the full error message back if an email fails, only the 'hard_bounced', 'soft_bounced' etc that i see in the API docs?
SMTP->Send gives you the full error message the recieveing mail server responds with...
If you want to specify an envelope-from address, do you have to, and can you, do that by simply adding an extra header?
Thanks!
Lars
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Mar 19, 2013; 19:51
Mason Miller
Re: Trying to start with Mandrill - a little help