首页 \ 问答 \ 使用Namecheap电子邮件发送Nodemailer电子邮件(Send Nodemailer e-mail with Namecheap email)

使用Namecheap电子邮件发送Nodemailer电子邮件(Send Nodemailer e-mail with Namecheap email)

我已成功将Gmail帐户与Xoauth连接,但我最近获得了一个Namecheap私人电子邮件帐户,并且在我的生活中无法弄清楚如何设置它。 这是我的代码:

var smtp = nodemailer.createTransport({
    host: 'mail.privateemail.com',
    port: 25,
    auth: {
        user: 'contact@myemail.com',
        pass: 'mypassword'
    }
});

我看到了这个问题并尝试了所有其他端口号。


I have been successful connecting a Gmail account with Xoauth, but I recently acquired a Namecheap privateemail account and can't for the life of me figure out how to set it up. This is the code that I have:

var smtp = nodemailer.createTransport({
    host: 'mail.privateemail.com',
    port: 25,
    auth: {
        user: 'contact@myemail.com',
        pass: 'mypassword'
    }
});

I saw this question and tried all the other port numbers.


原文:https://stackoverflow.com/questions/39197000
更新时间:2022-05-18 08:05

最满意答案

您正在将类型为struct queue *指针q传递给该函数。 但是你没有为该指针分配内存。

所以你需要分配内存到指针q然后传递给你的函数。 你需要像这样分配内存

q = (struct queue *)malloc(sizeof(struct queue));

然后将q传递给你的函数。


You're passing pointer q of type struct queue * to the function. But you have not allocated memory for that pointer.

So you need to allocate memory to the pointer q and then pass to your functions. You need to allocate memory like this

q = (struct queue *)malloc(sizeof(struct queue));

then pass q to your functions.

相关问答

更多
  • 您需要创建列表列表: LinkedList> l = new LinkedList>(); 但这取决于你的确切问题。 如果您想要更多地控制要存储的内容,则应创建自己的数据结构并将其存储在列表中: public class MyNodeData { public MyNodeData() { Children = new LinkedList(); } public My ...
  • 如果只有三个优先级值(或者更一般的固定优先级范围),为什么不能实现三个单独的队列并编写一个根据优先级将封装函数添加/删除到特定队列的封装函数? If you have only three values of priority (or in more general - fixed range of priorities) why can't you implement three separate queues and write a wrapper functions that depending on ...
  • 您正在将类型为struct queue *指针q传递给该函数。 但是你没有为该指针分配内存。 所以你需要分配内存到指针q然后传递给你的函数。 你需要像这样分配内存 q = (struct queue *)malloc(sizeof(struct queue)); 然后将q传递给你的函数。 You're passing pointer q of type struct queue * to the function. But you have not allocated memory for that po ...
  • 你正在创建10个列表,我想你可能会尝试做这样的事情: #include using namespace std; struct list_item { int key; int value; list_item *next; }; struct list { struct list_item *first; }; int main() { //Just one head is needed, you can also create thi ...
  • 在Queue引用的LinkedList中每次使用Node类型时都需要typename ,因为它依赖于模板参数T 具体来说, template class Queue { public: Queue() { typename LinkedList::Node *tnode = Q.getHead(); } ~Queue() { Q.MakeEmpty(); } void Enqueue( T x ) { ...
  • 您的create_list()函数在链的开头插入新节点, 下推现有的elsements。 相反,你可以附加在链的末尾,如: void add_at_end(Node** head ,int data) { Node *temp; // Find the end of the chain while (*head) { head = & (*head)->next ; } temp = malloc(sizeof *temp); temp->next = NUL ...
  • 当您向非空列表中添加新的头条目时,您错误地将下一个指针设置为指向其所在节点的右后方,而不是将其设置为指向链接列表的其余部分(如您所愿)。 head = temp; //Saving my head pointer head->next = temp; //Assigning the rest of the linked list back into head. When you add a new head e ...
  • 问题是这个accList_allocate()和你使用它。 struct accList secondList; accList_allocate(&secondList); 在原始test2()中,secondList是堆栈中的内存。 &secondList是指向该内存的指针。 当你调用accList_allocate()时,指针的副本被指向堆栈内存。 Malloc()然后返回一块内存并将其分配给指针的副本,而不是原始的secondList。 退出后,secondList仍指向堆栈上未初始化的内存,因此 ...
  • 在函数循环之后 while(last != NULL) { last = last->next; } 指针last将始终等于NULL 。 因此,由于这些语句,函数具有未定义的行为 newel->next = last->next; last->next = newel; 该功能可以通过以下方式重写 void enqueue( const Q &value ) { node *newel = new node { value, nullptr }; if ( m_hea ...
  • 尝试在struct声明后添加分号 struct node{ int data; struct node* next; }; Try putting a semicolon after the struct declaration struct node{ int data; struct node* next; };

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。