• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
From header and NSMailDelivery (was Re: Sending Email with Attachments)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From header and NSMailDelivery (was Re: Sending Email with Attachments)


  • Subject: From header and NSMailDelivery (was Re: Sending Email with Attachments)
  • From: Alex Rice <email@hidden>
  • Date: Mon, 3 Feb 2003 23:51:26 -0700

On Friday, January 24, 2003, at 04:18 PM, Joseph Jones wrote:

Here is what I have:
[headers setObject:smtpFromAddress forKey:@"From"];
[headers setObject:to forKey:@"To"];
[headers setObject:subject forKey:@"Subject"];
[headers setObject:@"Apple Message" forKey:@"X-Mailer"];
[headers setObject:@"multipart/mixed" forKey:@"Content-Type"];
[headers setObject:@"1.0" forKey:@"Mime-Version"];
sent = [NSMailDelivery deliverMessage: msg
headers:headers
format:NSMIMEMailFormat
protocol: NSSMTPDeliveryProtocol];

Are you seeing the From: header in the sent message? NSMailDelivery seems to strip it out for me. I am using Errors-To: header for a workaround but I would like control of the From: header. Anyone know if NSMailDelivery can do this?


Alex Rice <email@hidden> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: From header and NSMailDelivery (was Re: Sending Email with Attachments)
      • From: j o a r <email@hidden>
  • Prev by Date: Sorting an NSOutlineView
  • Next by Date: Re: Allocation and disposal inside a loop
  • Previous by thread: Re: Sorting an NSOutlineView
  • Next by thread: Re: From header and NSMailDelivery (was Re: Sending Email with Attachments)
  • Index(es):
    • Date
    • Thread