Send bulk email from template with PHP

Send bulk email to a group of address using a template with PHP

PHP : API DOCUMENTATION



Send bulk email from template with PHP

Example in PHP:

<?
	
$class="email";
$method="sendemailtogroupfromtemplate";
$user="user";
$password="password";
$idgroup=1000;
$idtemplate="1000";
$scheduledatetime="";
$output="";

$result = file_get_contents("https://www.afilnet.com/api/http/?class=".$class."&method=".$method."&user=".$user."&password=".$password."&idgroup=".$idgroup."&idtemplate=".$idtemplate."&scheduledatetime=".$scheduledatetime."&output=".$output);
	
?>



See example in:

Send bulk email from template with PHP Send bulk email from template with Java Send bulk email from template with C Sharp Send bulk email from template with Unix Send bulk email from template with Ruby on rails Send bulk email from template with Python Send bulk email from template with Android Send bulk email from template with Objective C / iPhone Send bulk email from template with SQL Server Send bulk email from template with Oracle Send bulk email from template with Node JS Send bulk email from template with Go lang Send bulk email from template with Scala lang Send bulk email from template with Swift Send bulk email from template with Delphi



Method details

Parameter Description Compulsory / Optional
class=email Class requested: Class to which the request is made Compulsory
method=sendemailtogroupfromtemplate Class method requested: Method of the class to which the request is made Compulsory
user User and e-mail of your Afilnet account Compulsory
password Password of your Afilnet account Compulsory
idgroup Identifier of the destination group Compulsory
idtemplate email.sendemailtogroupfromtemplate_idtemplate Compulsory
scheduledatetime Delivery date and time in yyyy-mm-dd hh:mm:ss format Optional
output Output format of the result Optional

When you make requests you will receive the following fields:


  •  status
  •   result (if status=success), here you will receive the following values:
    • id
    • count
    • credits
    • destinations
      • messageid
      • destination
  • error (if status=error), here you will receive the error code

The possible error codes are listed below


Code Description
MISSING_USER User or email not included
MISSING_PASSWORD Password not included
MISSING_CLASS Class not included
MISSING_METHOD Method not included
MISSING_COMPULSORY_PARAM Compulsory parameter not included
INCORRECT_USER_PASSWORD Incorrect user or password
INCORRECT_CLASS Incorrect class
INCORRECT_METHOD Incorrect method
NOT_ACCESS_TO_GROUP You are not allowed into the indicated group
NO_CREDITS Your balance is insufficient
Parameters:
  • class : email
  • method : sendemailtogroupfromtemplate
  • user : user
  • password : password
  • idgroup : 1000
  • idtemplate : 1000
  • scheduledatetime :
  • output :

Request:
https://www.afilnet.com/api/http/?class=email&method=sendemailtogroupfromtemplate&user=user&password=password&idgroup=1000&idtemplate=1000&scheduledatetime=&output=




Connect PHP with our EMAIL API

Our EMAIL API allows you Send Bulk Email from template with PHP in a simple, fast and efficient way. The process you must follow in order to use our API will only take a few minutes. Our company will offer you a free trial so that you can test the service.


Steps to follow

  • Register as a client on Afilnet.
  • Request a test or top up your balance.
  • Start using the API with your registration data (data that you must include in the "user" and "password" fields) or by creating new API credentials from your Afilnet account.

Get started now with the Afilnet API!




Do you have any questions or problems in the integration?


Contact our team with any questions through the contact methods that we offer. Our team will try to offer you an immediate solution and will help you in the integration of our API in your Software.



Try Afilnet for free!

You are just one step away from changing your company's communication forever, from today you will capture and retain your customers better thanks to Afilnet services.

Bulk SMS · Email Marketing · Social network · Instant messaging · Certification · and much more

Register in 1 minute

Register for free and try Afilnet today *



(*) Promotion only valid for companies that have never used the Afilnet service before, only free credit is provided for SMS and Email Marketing services. When requesting the free balance, Afilnet may contact you to verify your company information

IMPORTANT INFORMATION ABOUT COOKIES: If you continue to use this web we will assume that you accept the terms of use. You will find more information in our Cookies Policy. Continue

Payment methods

  • Wire transfer
    Credit card
    Paypal
    Western Union

Afilnet in your language

Afilnet EspañaAfilnet United KingdomAfilnet FranceAfilnet DeutschlandAfilnet ItaliaAfilnet PortugalAfilnet 中国Afilnet 日本Afilnet الإمارات العربية المتحدةAfilnet EstoniaAfilnet PolskaAfilnet РоссияAfilnet TürkiyeAfilnet Česká republikaAfilnet ΕλλάδαAfilnet SverigeAfilnet DanmarkAfilnet România

Copyright © 2021 Afilnet · All rights reserved