cancel
Showing results for 
Search instead for 
Did you mean: 

Daily emails with dynamic contents fetched from our database automatically

Moderator

Re: Daily emails with dynamic contents fetched from our database automatically

Every email campaign is required to have a Physical Address per CAN-SPAM legal compliance.  There are two options for having this supplied to a campaign:

 

  1. Default address for the account.  If you want to use this, you need to have set your default address and you would need to leave the footer object blank.  
  2. Set the address explicitely in the footer object.  If you don't want to use your default address, or haven't set one, you will need to set the required fields in the footer object.
Dave Berard
Senior Product Manager, Constant Contact
Occasional Participant

Re: Daily emails with dynamic contents fetched from our database automatically

Hi Dave,

 

As per your advise,

 

I have checked my account setting and filled my physical address.

 

But I am bit confused about to "leave the footer object blank." from your comment.

 

From where I can do this?

 

I am using API to create campaign and getting the same error message: "Please enter an address"

 

Do I need to pass address to API? if Yes please guide me to set it.

 

 

Please advise.

 

 

Thanks

Vijay

 

 

Occasional Participant

Re: Daily emails with dynamic contents fetched from our database automatically

Hi Dave,

 

Please reply.

 

I am struggling to create my first campaign.

 

Thanks

Vijay

 

Moderator

Re: Daily emails with dynamic contents fetched from our database automatically

In the Campaign Object you'll find a MessageFooter object: https://github.com/constantcontact/php-sdk/blob/development/src/Ctct/Components/EmailMarketing/Messa...

 

You can set the address in there manually OR leave the entire MessageFooter object as a null.  

Dave Berard
Senior Product Manager, Constant Contact
Occasional Participant

Re: Daily emails with dynamic contents fetched from our database automatically

Hi Dave,

 

As per your instructions I have sent mail to webservices@constantcontact.com as below:

 

We are facing 2 technical issues:

1. In our test account I have created 2 Contact  Lists.
    - Positive Quotes
    - Test Contact List
    - General Interests (Default by Constant Contacts)


I have deleted all above lists and created new one:
    - Attitude media Positive Quotes


But the API: getLists is still returning old lists that are deleted from my account.


Currently In our test account we have single Contact list present but API is returning below output:

Array ( [0] => Ctct\Components\Contacts\ContactList Object ( [id] => 1730711799 [name] => Positive Quotes [status] => ACTIVE [contact_count] => 1 ) [1] => Ctct\Components\Contacts\ContactList Object ( [id] => 1652783755 [name] => General Interest [status] => ACTIVE [contact_count] => 2 ) )

And a weird thing is, it is not returning the list that is currently present in our account.
Please let me know what settings are remaining from our account to get updated data through API?

 

 

2.   This point to related to From Email and Reply to Email.
We  have 2 emails configured to send emails:
 
We have tried both emails as a From emails and Reply to Email but for both email addresses we are getting error message:

Array ( [0] => Array ( [error_key] => http.status.bad_request [error_message] => Please enter a valid email address. ) )

Note: Both emails are verified emails.

Please provide solution for above points it is now urgent for us.
 

Thanks
Vijay
Occasional Participant

Re: Daily emails with dynamic contents fetched from our database automatically

Hi Dave, 

 

We are not able to get this through yet. 

 

Please guide us on this, our customer is chassing us like anything... Need your support. 

 

Best Regards, 

 

Dnyanesh 

 

Occasional Participant

Re: Daily emails with dynamic contents fetched from our database automatically

Hi Dave,

By using API and the official PHP library, I have completed to create contact lists, contacts, update contacts operations.

I have also able to create new email campaign by using API, but it is throwing below error while scheduling the created campaign.

Fatal error: Call to undefined method Ctct\Services\CampaignScheduleService::addEmailCampaign() in /var/www/html/newattitudemedia/blog/wp-admin/src/Ctct/ConstantContact.php on line 355

Please check and advise for the fix.

I have attached is the zip of my script.

my api_key is: <redacted>


Please advise, its urgent for me.

Thanks & regards,
Vijay

Honored Contributor

Re: Daily emails with dynamic contents fetched from our database automatically

Hello Vijay,

 

After reviewing your code, I was able to find the problem in your version of ConstantContact.php. In this file, there is a method called addEmailcampaignSchedule that appears to have been changed from the original code. This change is what is causing the error that you are seeing.

 

Here is the code that you are using:

    public function addEmailCampaignSchedule($accessToken, $campaign, Schedule $schedule)
    {
        $campaignId = $this->getArgumentId($campaign, 'Campaign');
        return $this->campaignScheduleService->addEmailCampaign($accessToken, $campaignId, $schedule);
    }

 And here is the code taken from our Github repository:

    public function addEmailCampaignSchedule($accessToken, $campaign, Schedule $schedule)
    {
        $campaignId = $this->getArgumentId($campaign, 'Campaign');
        return $this->campaignScheduleService->addSchedule($accessToken, $campaignId, $schedule);
    }

 

If you adjust your code to use the same method call as the second example shows, then it should start working as expected. Also, it may be a good idea to download a fresh copy of the PHP SDK from our github repository to ensure that there are not other issues like this that you may run into.

 

Lastly, as this is a public forum that can be indexed by search engines, I did remove some sensitive details from your post so that the information would remain private.

 

If you experience any further issues, please reach back out to us and we will be happy to assist!

Elijah G.
API Support Engineer
Occasional Participant

Re: Daily emails with dynamic contents fetched from our database automatically

Hi there,

We are in need of below information:


1. How to implement Google Analytic in daily Campaigns
(we have a daily newsletter and some weekly emails and we need to integrate Google tracking to all sent email with their activity report)
We are currently creating daily campaigns by using V2 API.

2. how to get link from link id (in clicks report we are getting link id in response of tracking report and we need to display the actual link in our report).

3. how to change forward from email address?
Currently Constant Contact's forward email form is showing the admin email address that is assigned as a sender email address for all campaigns. When user click on forward email link from email he gets redirected to Constant Contact's forward email page.
We need to use email address of user as a sender email since user is forwarding the email.

4. How can I know who forward this email from forward email report?
Currently tracking API for forward email is returning contact id and admin email address as a sender email and we need the user who actually forward the email and to whom?


Thanks and regards,
Vijay

Honored Contributor

Re: Daily emails with dynamic contents fetched from our database automatically

Hello vijay,

 

1. In order to implement Google Analytics in an email created through the API, you will need to apply the Google Analytics data to your links manually within your code that generates the email. For more information, you can view the FAQ article that we have on this subject: https://knowledgebase.constantcontact.com/articles/KnowledgeBase/5991-using-google-analytics-with-an...

 

2. You can find all of the tracked URLs in an email along with the URL ID by making a GET request for the individual campaign details. You can find more information about this endpoint here: http://developer.constantcontact.com/docs/email-campaigns/email-campaign-resource.html

 

3. The forward from email address automatically updates to be from the recipient who clicks on the Forward to a Friend link.

 

4. At this time, we intentionally keep this information hidden for easier compliance with the CAN-SPAM act and to stay consistent with our permission-based mailing rules, which would conflict with things such as offering rewards to subscribers for forwarding an email. If you are interested in getting more information about this, I would advise contacting our general support team by phone at (866)-289-2101/(781)-472-8120 (intl.).''

 

Best Regards,

Elijah G.
API Support Engineer