Swift Mailer & NativeMail

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
Red5
Forum Newbie
Posts: 2
Joined: Thu Sep 14, 2006 4:08 pm

Swift Mailer & NativeMail

Post by Red5 »

Hi,

I've experienced multiple timeouts when trying to use the SMTP connection object in Swift Mailer, so have resorted to using the NativeMail object instead - it works very well. However, I can't seem to add a "Return-Path" header using this method.

Any ideas?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

$swift->setReturnPath()

Have you done that? ;)
Red5
Forum Newbie
Posts: 2
Joined: Thu Sep 14, 2006 4:08 pm

Post by Red5 »

I used:

Code: Select all

$mailer->addHeaders("Return-Path: user@example.com");
I wasn't aware of the other function. I'll try that instead.

Thanks. :-)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Moved to Swift-board.
Post Reply