cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SMTP: CURLOPT_MAIL_FROM vs CURLOPT_USERNAME

From: Chandran, Naveen <naveen.chandran_at_hp.com>
Date: Wed, 11 Jun 2014 07:55:45 +0000

>> I happened to test this with an earlier version of libcurl too (v
>> 7.28.1) and the behavior was still the same

> Interesting...

>> I'm copying the curl verbose logs here for your reference (with the
>> sensitive portions edited):
>>
>> > MAIL FROM:<invalid_email_at_somedomain.com>
>> < 250 2.1.0 OK l6sm88100403oeq.0 - gsmtp

> From libcurl's point of view the MAIL FROM was accepted by the server.

>> > RCPT TO:<naveen.chandran_at_hp.com>
>> < 250 2.1.5 OK l6sm88100403oeq.0 - gsmtp

> ...and then it continued to send the RCPT TO And DATA commands as I would expect ;-)

> I would be interested to know what you are sending in the Header part of the email. Are you able to post that here as well ?

I had just this in the header:

    "Date: Wed, Jun 11\n",
    "To: <valid_recipient_email_id> \n",
    "From: <some_invalid_email_id> (Example User)\n",
    "Subject: test email\n",
    "\n",
    "\n"

The <valid_recipient_email_id> was of course a valid recipient email address and <some_invalid_email_id> corresponding to some invalid (non-existent) address such as abc_at_xyz.com

Thanks,
Naveen

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-06-11