symfony1.1 and sfMail (or mail in generell)
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Susan <susan.... @gmx.de>
Date: Thu, 31 Jan 2008 08:40:08 -0800 (PST)
Local: Thurs, Jan 31 2008 11:40 am
Subject: symfony1.1 and sfMail (or mail in generell)
Hi all,
for now the class sfMail is deprecated and moved to the
sfCompact10Plugin in symfony1.1. This means for me, I activate the
compat_10-mode (what I'd like to avoid) or I can't use this class
anymore. Am I right?
My idea was to use the new form-handling and send directly an email
after validation. no extra module. all stuff needs to stay in their
own plugin-folder.
if ( $this->form->isValid() ) {
mail = new sfMail();
$mail->initialize();
$mail->setCharset('utf-8');
$mail->setContentType('text/html');
// definition of the required parameters
$mail->setSender( $contact['email'], $contact['firstname'] . '
' . $contact['lastname'] );
$mail->setFrom( $contact['email'], $contact['firstname'] . '
' . $contact['lastname'] );
$mail->addReplyTo( $contact['email'] );
$mail->addAddress( $contact['email'] );
$mail->setSubject( $contact['subject'] );
$mail->setBody( 'Allright, your password is: ' .
$new_password );
$mail->send();
}
Of course I could use the normale php-mail-function. But I hope, this
is not meant to be.
Please can somebody explain me, how this is to change, that it is
working in symfony1.1 with noch compact-10?
thanks.
Susan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Hartym <har... @gmail.com>
Date: Thu, 31 Jan 2008 17:47:44 +0100
Local: Thurs, Jan 31 2008 11:47 am
Subject: Re: [symfony-devs] symfony1.1 and sfMail (or mail in generell)
Hi,
juste use swiftMailer
svn propedit svn:externals lib/vendor swiftMailer http://swiftmailer.svn.sourceforge.net/svnroot/swiftmailer/tags/php5/...
Best regards
2008/1/31, Susan <susan.... @gmx.de>:
> Of course I could use the normale php-mail-function. But I hope, this
> is not meant to be.
> Please can somebody explain me, how this is to change, that it is > working in symfony1.1 with noch compact-10?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Susan <susan.... @gmx.de>
Date: Thu, 31 Jan 2008 09:00:30 -0800 (PST)
Local: Thurs, Jan 31 2008 12:00 pm
Subject: Re: symfony1.1 and sfMail (or mail in generell)
Hi Hartym,
> juste use swiftMailer
I hoped, there is an "symfony"-way. Maybe the coming documentation
gives some more information to this issue.
But thanks for the quike response, I will try swiftMailer.
Best
Susan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Fabien POTENCIER <fabien.potenc... @symfony-project.com>
Date: Thu, 31 Jan 2008 18:16:51 +0100
Local: Thurs, Jan 31 2008 12:16 pm
Subject: Re: [symfony-devs] Re: symfony1.1 and sfMail (or mail in generell)
Susan wrote:
> Hi Hartym,
>> juste use swiftMailer > I hoped, there is an "symfony"-way. Maybe the coming documentation > gives some more information to this issue. > But thanks for the quike response, I will try swiftMailer.
swiftMailer is really a great library... and there is no need to change
a thing for symfony. It's already symfony "compliant" ;)
Fabien
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Dustin Whittle <dustin.whit... @symfony-project.com>
Date: Thu, 31 Jan 2008 10:05:41 -0800
Local: Thurs, Jan 31 2008 1:05 pm
Subject: Re: [symfony-devs] Re: symfony1.1 and sfMail (or mail in generell)
Susan,
Use getPresentationFor and SwiftMailer (or phpmailer) to send the content.
$swift = new Swift(new Swift_Connection_SMTP("smtp.example.com", 25));
$message = new Swift_Message('email subject', sfContext::getInstance()->getController()->getPresentationFor($module, $action, $viewName = null), "text/html");
if ($swift->send($message, "recipi... @domain.tld", "y... @home.tld")) { echo "Message sent";
}
else
{
echo "Message failed to send";
}
$swift->disconnect();
- Dustin
On 1/31/08 9:16 AM, "Fabien POTENCIER"
<fabien.potenc
... @symfony-project.com> wrote:
> Susan wrote: >> Hi Hartym,
>>> juste use swiftMailer >> I hoped, there is an "symfony"-way. Maybe the coming documentation >> gives some more information to this issue. >> But thanks for the quike response, I will try swiftMailer.
> swiftMailer is really a great library... and there is no need to change > a thing for symfony. It's already symfony "compliant" ;)
> Fabien
>> Best >> Susan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Susan Lau <susan.... @gmx.de>
Date: Thu, 31 Jan 2008 22:42:05 +0100
Local: Thurs, Jan 31 2008 4:42 pm
Subject: Re: [symfony-devs] Re: symfony1.1 and sfMail (or mail in generell)
great and thanks for the fast answers
:-)
susan
Dustin Whittle schrieb:
> Susan,
> Use getPresentationFor and SwiftMailer (or phpmailer) to send the content.
> $swift = new Swift(new Swift_Connection_SMTP("smtp.example.com", 25));
> $message = new Swift_Message('email subject', > sfContext::getInstance()->getController()->getPresentationFor($module, > $action, $viewName = null), "text/html");
> if ($swift->send($message, "recipi... @domain.tld", "y... @home.tld")) > { > echo "Message sent"; > } > else > { > echo "Message failed to send"; > }
> $swift->disconnect();
> - Dustin
> On 1/31/08 9:16 AM, "Fabien POTENCIER" > <fabien.potenc... @symfony-project.com> wrote:
>> Susan wrote: >>> Hi Hartym,
>>>> juste use swiftMailer >>> I hoped, there is an "symfony"-way. Maybe the coming documentation >>> gives some more information to this issue. >>> But thanks for the quike response, I will try swiftMailer. >> swiftMailer is really a great library... and there is no need to change >> a thing for symfony. It's already symfony "compliant" ;)
>> Fabien
>>> Best >>> Susan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Thomas Rabaix" <thomas.rab... @gmail.com>
Date: Tue, 8 Apr 2008 18:45:02 +0200
Local: Tues, Apr 8 2008 12:45 pm
Subject: Re: [symfony-devs] Re: symfony1.1 and sfMail (or mail in generell)
Hello,
Sorry to re-open this thread, but this thread point to use the swift mail lib, which works great.
I was wondering why the sfMail class has not been changed to use swift ? Or do you have any plan add this to sf1.1 ?
I cannot find on trac any information about that.
The sfMail feature was great and easy to use in sf1.0.
Thanks, Thomas
On Thu, Jan 31, 2008 at 11:42 PM, Susan Lau <susan.
... @gmx.de> wrote:
> great and thanks for the fast answers > :-) > susan
> Dustin Whittle schrieb:
> > Susan,
> > Use getPresentationFor and SwiftMailer (or phpmailer) to send the content.
> > $swift = new Swift(new Swift_Connection_SMTP("smtp.example.com", 25));
> > $message = new Swift_Message('email subject', > > sfContext::getInstance()->getController()->getPresentationFor($module, > > $action, $viewName = null), "text/html");
> > if ($swift->send($message, "recipi... @domain.tld", "y... @home.tld")) > > { > > echo "Message sent"; > > } > > else > > { > > echo "Message failed to send"; > > }
> > $swift->disconnect();
> > - Dustin
> > On 1/31/08 9:16 AM, "Fabien POTENCIER" > > <fabien.potenc... @symfony-project.com> wrote:
> >> Susan wrote: > >>> Hi Hartym,
> >>>> juste use swiftMailer > >>> I hoped, there is an "symfony"-way. Maybe the coming documentation > >>> gives some more information to this issue. > >>> But thanks for the quike response, I will try swiftMailer. > >> swiftMailer is really a great library... and there is no need to change > >> a thing for symfony. It's already symfony "compliant" ;)
> >> Fabien
> >>> Best > >>> Susan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Thomas Rabaix" <thomas.rab... @gmail.com>
Date: Mon, 14 Apr 2008 14:54:50 +0200
Local: Mon, Apr 14 2008 8:54 am
Subject: Re: [symfony-devs] Re: symfony1.1 and sfMail (or mail in generell)
I suppose no one know about this point ?
Thomas
On Tue, Apr 8, 2008 at 6:45 PM, Thomas Rabaix <thomas.rab
... @gmail.com> wrote:
> Hello,
> Sorry to re-open this thread, but this thread point to use the swift > mail lib, which works great.
> I was wondering why the sfMail class has not been changed to use swift > ? Or do you have any plan add this to sf1.1 ?
> I cannot find on trac any information about that.
> The sfMail feature was great and easy to use in sf1.0.
> Thanks, > Thomas
> On Thu, Jan 31, 2008 at 11:42 PM, Susan Lau <susan.... @gmx.de> wrote:
> > great and thanks for the fast answers > > :-) > > susan
> > Dustin Whittle schrieb:
> > > Susan,
> > > Use getPresentationFor and SwiftMailer (or phpmailer) to send the content.
> > > $swift = new Swift(new Swift_Connection_SMTP("smtp.example.com", 25));
> > > $message = new Swift_Message('email subject', > > > sfContext::getInstance()->getController()->getPresentationFor($module, > > > $action, $viewName = null), "text/html");
> > > if ($swift->send($message, "recipi... @domain.tld", "y... @home.tld")) > > > { > > > echo "Message sent"; > > > } > > > else > > > { > > > echo "Message failed to send"; > > > }
> > > $swift->disconnect();
> > > - Dustin
> > > On 1/31/08 9:16 AM, "Fabien POTENCIER" > > > <fabien.potenc... @symfony-project.com> wrote:
> > >> Susan wrote: > > >>> Hi Hartym,
> > >>>> juste use swiftMailer > > >>> I hoped, there is an "symfony"-way. Maybe the coming documentation > > >>> gives some more information to this issue. > > >>> But thanks for the quike response, I will try swiftMailer. > > >> swiftMailer is really a great library... and there is no need to change > > >> a thing for symfony. It's already symfony "compliant" ;)
> > >> Fabien
> > >>> Best > > >>> Susan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Dustin Whittle <dustin.whit... @symfony-project.com>
Date: Mon, 14 Apr 2008 08:37:37 -0700
Local: Mon, Apr 14 2008 11:37 am
Subject: Re: [symfony-devs] Re: symfony1.1 and sfMail (or mail in generell)
Thomas,
sfMail was simply a wrapper around phpmailer.. There is no need for it (imo), just use the class directly.
Cheers,
Dustin
On 4/14/08 5:54 AM, "Thomas Rabaix" <thomas.rab... @gmail.com> wrote:
> I suppose no one know about this point ?
> Thomas
> On Tue, Apr 8, 2008 at 6:45 PM, Thomas Rabaix <thomas.rab... @gmail.com> wrote: >> Hello,
>> Sorry to re-open this thread, but this thread point to use the swift >> mail lib, which works great.
>> I was wondering why the sfMail class has not been changed to use swift >> ? Or do you have any plan add this to sf1.1 ?
>> I cannot find on trac any information about that.
>> The sfMail feature was great and easy to use in sf1.0.
>> Thanks, >> Thomas
>> On Thu, Jan 31, 2008 at 11:42 PM, Susan Lau <susan.... @gmx.de> wrote:
>>> great and thanks for the fast answers >>> :-) >>> susan
>>> Dustin Whittle schrieb:
>>>> Susan,
>>>> Use getPresentationFor and SwiftMailer (or phpmailer) to send the content.
>>>> $swift = new Swift(new Swift_Connection_SMTP("smtp.example.com", 25));
>>>> $message = new Swift_Message('email subject', >>>> sfContext::getInstance()->getController()->getPresentationFor($module, >>>> $action, $viewName = null), "text/html");
>>>> if ($swift->send($message, "recipi... @domain.tld", "y... @home.tld")) >>>> { >>>> echo "Message sent"; >>>> } >>>> else >>>> { >>>> echo "Message failed to send"; >>>> }
>>>> $swift->disconnect();
>>>> - Dustin
>>>> On 1/31/08 9:16 AM, "Fabien POTENCIER" >>>> <fabien.potenc... @symfony-project.com> wrote:
>>>>> Susan wrote: >>>>>> Hi Hartym,
>>>>>>> juste use swiftMailer >>>>>> I hoped, there is an "symfony"-way. Maybe the coming documentation >>>>>> gives some more information to this issue. >>>>>> But thanks for the quike response, I will try swiftMailer. >>>>> swiftMailer is really a great library... and there is no need to change >>>>> a thing for symfony. It's already symfony "compliant" ;)
>>>>> Fabien
>>>>>> Best >>>>>> Susan
You must
Sign in before you can post messages.
You do not have the permission required to post.