cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [patch] possible SMTP example

From: Michael Wood <esiotrot_at_gmail.com>
Date: Thu, 16 Dec 2010 22:17:17 +0200

On 15 December 2010 10:16, Brad Hards <bradh_at_frogmouth.net> wrote:
[...]
>  /* this becomes the Return-Path header value */
>  static const char *from = "bradh_at_exmaple.com";

You have typo'd "example" :)

[...]
>    /* this is the URL for your mailserver - you can also use an smtps:// URL here */
>    curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.net.");
[...]

I believe that if you set it to:

smtp://mail.example.net/client.example.net

libcurl sends a EHLO (or HELO) command with "client.example.net" as
the argument.

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-16