hello,

im developing a mass mailing application in php...in lot places i see like post to this address...
lik this one..

To upload your attachment do a HTTP PUT of your attachment file to:

https://api.elasticemail.com/attachments/upload?username=yourusername&api_key=yourapikey&file=test.csv

and 

Step 3) Call mailer send with the datasource value set:

To use the send command POST to https://api.elasticemail.com/mailer/send with the following form values:

    username=your account email address
    api_key=your api key
    from=from email address
    from_name=display name for from email address
    subject=email subject 
    body_html=html email body [optional]
    body_text=text email body [optional]
    data_source=your csv file name (eg: test.csv)
    charset=text value of encoding for example: iso-8859-1, windows-1251, utf-8, us-ascii, windows-1250 and moreā€¦
    encoding for None, 1 for Raw7Bit, 2 for Raw8Bit, 3 for QuotedPrintable, 4 for Base64 (Default), 5 for Uue  note that you can also provide the text version such as "Raw7Bit" for value 1

If sent correctly you will receive a response like:

f74b9f96-f89a-4cfe-813f-5f86df1cb37f

how could i do this programmatically

Recommended Answers

All 10 Replies

have you checked out the php mail function?

no we are talking about mass email...if we do this without purchasing smtp or emails from email marketing providers..we will get blocked..

Member Avatar for diafol

Are you asking how to use curl?

Member Avatar for diafol

Have you looked at curl in the php manual?

is it the same thing im asking?

it doesn't show method to add content length ie i got 411 http error

Member Avatar for diafol

The link you provided has a PHP class using fsockopen - so try this instead of curl.

yes im using this..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.