Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
symfony1.1 and sfMail (or mail in generell)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Susan  
View profile  
 More options Jan 31 2008, 11:40 am
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hartym  
View profile  
(1 user)  More options Jan 31 2008, 11:47 am
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>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Susan  
View profile  
 More options Jan 31 2008, 12:00 pm
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien POTENCIER  
View profile  
 More options Jan 31 2008, 12:16 pm
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dustin Whittle  
View profile  
(1 user)  More options Jan 31 2008, 1:05 pm
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"


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Susan Lau  
View profile  
 More options Jan 31 2008, 4:42 pm
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Rabaix  
View profile  
 More options Apr 8 2008, 12:45 pm
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Rabaix  
View profile  
 More options Apr 14 2008, 8:54 am
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dustin Whittle  
View profile  
 More options Apr 14 2008, 11:37 am
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google