dsb12300 2018-08-17 17:03
浏览 84

需要编写器在cPanel中添加Mailgun?

I'm obviously inexperienced when it comes to coding because I'm self taught but I was wondering if it's completely necessary to download Composer just to use the Mailgun files I've uploaded into cPanel in Godaddy. Chances are I need Composer or if I don't, I'm probably just messing up my own code. Either way, I want to figure out how to add Mailgun to my web app.

I've uploaded the file from Github into my cPanel directory under the folder "email". Here's the code for my php file:

<?php
require __DIR__ . '/email/mailgun-php-master/src/Mailgun/Mailgun.php';
use Mailgun\Mailgun;
$mailgun = new Mailgun('*I added my key here*', new \Http\Adapter\Guzzle6\Client());
?>

How do I get this to work? Thanks.

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员
    • ¥15 matlab生成电测深三层曲线模型代码
    • ¥50 随机森林与房贷信用风险模型