How To Fix: Error: Call to undefined function curl_init()

Updated: 28 April, 2018 seen 4,154

After upgrading from Ubuntu 12 to Ubuntu 16 I discovered an error for Drupal website sending e-mails using Mailsystem + Postmark

here is the error code:

Error: Call to undefined function curl_init() in Mail_Postmark->send() (line 322 of /srv/www/

Luckily there is an easy solution, installing missing curl:

sudo apt-get install php-curl

Hope, that helps!


Hi! My name is Reinis Fischer (38), a proud dad and devoted husband. CEO and Founder of Terramatris crypto hedge fund, drone enthusiast, world traveler, photographer, and passionate lover of Georgian cuisine (vegetarian).

An ex-pat living in Georgia since 2011, I trade stocks, take photographs, work out at the gym, and many more. Here I write about travel, finance, and other things that might interest me.