The code is placed in: https://code.csdn.net/snippets/610970
is the Sendclound platform provided by Sohu Webapi,http://sendcloud.sohu.com/doc/apiguide.html
Please point out the insufficient place, thank you very much!
Reply to discussion (solution)
Thanks for sharing, but as a newbie ... Completely do not understand the intent of the code AH!
Can you add some simple introduction, the use of instructions, and demo ah?
Thanks for sharing, but as a newbie ... Completely do not understand the intent of the code AH!
Can you add some simple introduction, the use of instructions, and demo ah?
I am the novice, the first time to write such things. Ha.
Sendcloud is a mail-sending platform for email promotion (triggers and templates), blah ... Anyway, I knew I could use it to send e-mails.
This is a demo I wrote, calling the API to send trigger messages (normal mail)
Require ' sendcloud.php '; $send = new Sendcloud (' Mail ', ' send ');//Set API Auth information $send->set_api_auth (' * ', ' * ');//Set sender $ Send->set_send_from (' runnerleer@gmail.com ', ' Runnerlee '); $arr = Array (' to ' = ' demo@163.com ', ' subject ' = ') Here is the second Test email ', ' html ' = ' This is the second Test email ', $send->set_post_data ($arr); $send->exec ();
Because now only the beginning is written, the preparation will write a separate method for each operation.
So please advise Ha, so write what deficiencies or where can improve