[symfony-users] Re: PHP mail function not working

2009-09-19 Thread DEEPAK BHATIA

Thanks Eno,

On Fri, Sep 18, 2009 at 11:08 PM, Eno symb...@gmail.com wrote:

 On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:

 When I execute above php page, the mail is not going to the recipietn.

 Is it in the mail queue on the sending machine? Run 'mailq' to check.

 Can you send email from the command-line?

 Generally, queuing locally and using sendmail or postfix is more reliable
 because mail servers will queue the message and keep trying to send out.

 BUT it requires you to have those services running on your web server (not
 a problem - I usually tell them to only listen on the localhost IP).

 The other way is to use SMTP, which might be a bit faster, but if your
 SMTP server is down or unreachable, the email will simply not get sent,
 nor will it get queued for a retry later.

 I prefer reliability myself.



 --



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-18 Thread Patrick Cummins
If your exchange machine requires TLS, you need to use something other than
Swift.  If you use phpMailer, the authentication code is..

$this-IsSMTP();
$this-SMTPDebug = 2;
$this-SMTPAuth = true;
$this-SMTPSecure = tls;
$this-Host = smtp.yourexchangehost.com;
$this-Username = 'yourdomain\yourusername'; // setup this way if you are
using domain authentication
$this-Password = '*';

If you don't need TLS to connect to exchange, then you just need to test
that the mail() function works on your server, like Eno said.



On Fri, Sep 18, 2009 at 12:53 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote:


 Hi,

 Shall I use PHP Mailer or Swift Mail ?

 Regards

 Deepak

 On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins patwcumm...@gmail.com
 wrote:
  Yes...  I was talking about sending through SMTP (on an exchange server).
 
  Some exchange servers require TLS, not just SSL.
 
 
 
  On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA toreachdee...@gmail.com
 
  wrote:
 
  Hi,
 
  Do you mean SSL ? But I am not taking about TLS.
 
  The mail function of PHP uses sendmail on linux.
 
  When I execute above php page, the mail is not going to the recipietn.
 
  I hope we understand each other.
 
  Regards
 
  Deepak
 
  On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com
 wrote:
  
   Deepak,
  
   I shared your gripes.  Swift mailer does not support TLS yet, which is
   required for many exchange servers.  PHPMailer does
  
  
  
   On Sep 17, 8:46 am, Eno symb...@gmail.com wrote:
   On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:
How do we set Fully Qualified Domain Name the /etc/hosts file.
  
   Have you tried sending an email from the command line using the
 'mail'
   command? If so, does it work? If not, then your server is not
   configured
   properly.
  
   --
   
  
 
 
 
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-18 Thread david

TLS used to work with swift mail - has support been dropped?



On Fri, 18 Sep 2009 14:50:36 +0200, Patrick Cummins  
patwcumm...@gmail.com wrote:

 If your exchange machine requires TLS, you need to use something other  
 than
 Swift.  If you use phpMailer, the authentication code is..

 $this-IsSMTP();
 $this-SMTPDebug = 2;
 $this-SMTPAuth = true;
 $this-SMTPSecure = tls;
 $this-Host = smtp.yourexchangehost.com;
 $this-Username = 'yourdomain\yourusername'; // setup this way if you are
 using domain authentication
 $this-Password = '*';

 If you don't need TLS to connect to exchange, then you just need to test
 that the mail() function works on your server, like Eno said.



 On Fri, Sep 18, 2009 at 12:53 AM, DEEPAK BHATIA  
 toreachdee...@gmail.comwrote:


 Hi,

 Shall I use PHP Mailer or Swift Mail ?

 Regards

 Deepak

 On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins  
 patwcumm...@gmail.com
 wrote:
  Yes...  I was talking about sending through SMTP (on an exchange  
 server).
 
  Some exchange servers require TLS, not just SSL.
 
 
 
  On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA  
 toreachdee...@gmail.com
 
  wrote:
 
  Hi,
 
  Do you mean SSL ? But I am not taking about TLS.
 
  The mail function of PHP uses sendmail on linux.
 
  When I execute above php page, the mail is not going to the  
 recipietn.
 
  I hope we understand each other.
 
  Regards
 
  Deepak
 
  On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com
 wrote:
  
   Deepak,
  
   I shared your gripes.  Swift mailer does not support TLS yet,  
 which is
   required for many exchange servers.  PHPMailer does
  
  
  
   On Sep 17, 8:46 am, Eno symb...@gmail.com wrote:
   On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:
How do we set Fully Qualified Domain Name the /etc/hosts file.
  
   Have you tried sending an email from the command line using the
 'mail'
   command? If so, does it work? If not, then your server is not
   configured
   properly.
  
   --
   
  
 
 
 
 
  
 

 


 


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-18 Thread Patrick Cummins
In the original 4.0 release, it wasn't working, but according to the
documentation, it's now supported!
http://swiftmailer.org/docs/smtp-transport

That's great news, because the library is so much more powerful that
phpMailer.

Sorry for the misinformation.


On Fri, Sep 18, 2009 at 9:29 AM, david da...@inspiredthinking.co.uk wrote:


 TLS used to work with swift mail - has support been dropped?



 On Fri, 18 Sep 2009 14:50:36 +0200, Patrick Cummins
 patwcumm...@gmail.com wrote:

  If your exchange machine requires TLS, you need to use something other
  than
  Swift.  If you use phpMailer, the authentication code is..
 
  $this-IsSMTP();
  $this-SMTPDebug = 2;
  $this-SMTPAuth = true;
  $this-SMTPSecure = tls;
  $this-Host = smtp.yourexchangehost.com;
  $this-Username = 'yourdomain\yourusername'; // setup this way if you are
  using domain authentication
  $this-Password = '*';
 
  If you don't need TLS to connect to exchange, then you just need to test
  that the mail() function works on your server, like Eno said.
 
 
 
  On Fri, Sep 18, 2009 at 12:53 AM, DEEPAK BHATIA
  toreachdee...@gmail.comwrote:
 
 
  Hi,
 
  Shall I use PHP Mailer or Swift Mail ?
 
  Regards
 
  Deepak
 
  On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins
  patwcumm...@gmail.com
  wrote:
   Yes...  I was talking about sending through SMTP (on an exchange
  server).
  
   Some exchange servers require TLS, not just SSL.
  
  
  
   On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA
  toreachdee...@gmail.com
  
   wrote:
  
   Hi,
  
   Do you mean SSL ? But I am not taking about TLS.
  
   The mail function of PHP uses sendmail on linux.
  
   When I execute above php page, the mail is not going to the
  recipietn.
  
   I hope we understand each other.
  
   Regards
  
   Deepak
  
   On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com
  wrote:
   
Deepak,
   
I shared your gripes.  Swift mailer does not support TLS yet,
  which is
required for many exchange servers.  PHPMailer does
   
   
   
On Sep 17, 8:46 am, Eno symb...@gmail.com wrote:
On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:
 How do we set Fully Qualified Domain Name the /etc/hosts file.
   
Have you tried sending an email from the command line using the
  'mail'
command? If so, does it work? If not, then your server is not
configured
properly.
   
--

   
  
  
  
  
   
  
 
  
 
 
  


 --
 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-18 Thread Eno

On Thu, 17 Sep 2009, Patrick Cummins wrote:

 Yes...  I was talking about sending through SMTP (on an exchange server).

Why are you talking about Exchange when the OP is talking about Linux?



-- 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-18 Thread Eno

On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:

 When I execute above php page, the mail is not going to the recipietn.

Is it in the mail queue on the sending machine? Run 'mailq' to check.

Can you send email from the command-line?

Generally, queuing locally and using sendmail or postfix is more reliable 
because mail servers will queue the message and keep trying to send out.

BUT it requires you to have those services running on your web server (not 
a problem - I usually tell them to only listen on the localhost IP).

The other way is to use SMTP, which might be a bit faster, but if your 
SMTP server is down or unreachable, the email will simply not get sent, 
nor will it get queued for a retry later.

I prefer reliability myself.



-- 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-17 Thread Gábor Fási

Errors, etc? If properly configured, it works - just like it does for me.
On the other hand, for sending mails I recommend swiftmailer, that has
recently been taken over by the creator of symfony, Fabien Potencier;
and will become the default mailer solution in the framework [1].

[1] http://fabien.potencier.org/article/33/swift-mailer-takeover

On Thu, Sep 17, 2009 at 09:16, DEEPAK BHATIA toreachdee...@gmail.com wrote:

 Hi,

 Did anyone used php mail function (on linux) to send email ?

 I have done the required settings on the php.ini

 ; For Unix only.  You may supply arguments as well (default: sendmail -t 
 -i).
 sendmail_path = /usr/sbin/sendmail -t
 sendmail_from = deepak.bha...@nechclst.in

 The sample mail file is

 ?php
 $to = deepak.bha...@nechclst.in;
 $subject = Training Registration;
 $message = Thank you for participating in the Technical Certification
 training program.\n\n;
 mail($to, $subject, $message);
 ?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA

Hi,

I am trying to setup the Microsoft Outlook Calender using php mail
function. I think that is not possible using swiftmailer ?

But I am also using swift mailer.

How do we set Fully Qualified Domain Name the /etc/hosts file.

Regards

Deepak Bhatia

On Thu, Sep 17, 2009 at 1:04 PM, Gábor Fási maerl...@gmail.com wrote:

 Errors, etc? If properly configured, it works - just like it does for me.
 On the other hand, for sending mails I recommend swiftmailer, that has
 recently been taken over by the creator of symfony, Fabien Potencier;
 and will become the default mailer solution in the framework [1].

 [1] http://fabien.potencier.org/article/33/swift-mailer-takeover

 On Thu, Sep 17, 2009 at 09:16, DEEPAK BHATIA toreachdee...@gmail.com wrote:

 Hi,

 Did anyone used php mail function (on linux) to send email ?

 I have done the required settings on the php.ini

 ; For Unix only.  You may supply arguments as well (default: sendmail -t 
 -i).
 sendmail_path = /usr/sbin/sendmail -t
 sendmail_from = deepak.bha...@nechclst.in

 The sample mail file is

 ?php
 $to = deepak.bha...@nechclst.in;
 $subject = Training Registration;
 $message = Thank you for participating in the Technical Certification
 training program.\n\n;
 mail($to, $subject, $message);
 ?

 


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA

Hi,

Is it possible to send me the various settings to be done for sendmail to work ?

Thanks

Deepak Bhatia

On Thu, Sep 17, 2009 at 1:04 PM, Gábor Fási maerl...@gmail.com wrote:

 Errors, etc? If properly configured, it works - just like it does for me.
 On the other hand, for sending mails I recommend swiftmailer, that has
 recently been taken over by the creator of symfony, Fabien Potencier;
 and will become the default mailer solution in the framework [1].

 [1] http://fabien.potencier.org/article/33/swift-mailer-takeover

 On Thu, Sep 17, 2009 at 09:16, DEEPAK BHATIA toreachdee...@gmail.com wrote:

 Hi,

 Did anyone used php mail function (on linux) to send email ?

 I have done the required settings on the php.ini

 ; For Unix only.  You may supply arguments as well (default: sendmail -t 
 -i).
 sendmail_path = /usr/sbin/sendmail -t
 sendmail_from = deepak.bha...@nechclst.in

 The sample mail file is

 ?php
 $to = deepak.bha...@nechclst.in;
 $subject = Training Registration;
 $message = Thank you for participating in the Technical Certification
 training program.\n\n;
 mail($to, $subject, $message);
 ?

 


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA

Hi,

Do you mean SSL ? But I am not taking about TLS.

The mail function of PHP uses sendmail on linux.

When I execute above php page, the mail is not going to the recipietn.

I hope we understand each other.

Regards

Deepak

On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com wrote:

 Deepak,

 I shared your gripes.  Swift mailer does not support TLS yet, which is
 required for many exchange servers.  PHPMailer does



 On Sep 17, 8:46 am, Eno symb...@gmail.com wrote:
 On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:
  How do we set Fully Qualified Domain Name the /etc/hosts file.

 Have you tried sending an email from the command line using the 'mail'
 command? If so, does it work? If not, then your server is not configured
 properly.

 --
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-17 Thread Patrick Cummins
Yes...  I was talking about sending through SMTP (on an exchange server).

Some exchange servers require TLS, not just SSL.



On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote:


 Hi,

 Do you mean SSL ? But I am not taking about TLS.

 The mail function of PHP uses sendmail on linux.

 When I execute above php page, the mail is not going to the recipietn.

 I hope we understand each other.

 Regards

 Deepak

 On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com wrote:
 
  Deepak,
 
  I shared your gripes.  Swift mailer does not support TLS yet, which is
  required for many exchange servers.  PHPMailer does
 
 
 
  On Sep 17, 8:46 am, Eno symb...@gmail.com wrote:
  On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:
   How do we set Fully Qualified Domain Name the /etc/hosts file.
 
  Have you tried sending an email from the command line using the 'mail'
  command? If so, does it work? If not, then your server is not configured
  properly.
 
  --
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA

Swiftmail uses sendmail and mail as well.

On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins patwcumm...@gmail.com wrote:
 Yes...  I was talking about sending through SMTP (on an exchange server).

 Some exchange servers require TLS, not just SSL.



 On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA toreachdee...@gmail.com
 wrote:

 Hi,

 Do you mean SSL ? But I am not taking about TLS.

 The mail function of PHP uses sendmail on linux.

 When I execute above php page, the mail is not going to the recipietn.

 I hope we understand each other.

 Regards

 Deepak

 On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com wrote:
 
  Deepak,
 
  I shared your gripes.  Swift mailer does not support TLS yet, which is
  required for many exchange servers.  PHPMailer does
 
 
 
  On Sep 17, 8:46 am, Eno symb...@gmail.com wrote:
  On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:
   How do we set Fully Qualified Domain Name the /etc/hosts file.
 
  Have you tried sending an email from the command line using the 'mail'
  command? If so, does it work? If not, then your server is not
  configured
  properly.
 
  --
  
 




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA

Hi,

Shall I use PHP Mailer or Swift Mail ?

Regards

Deepak

On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins patwcumm...@gmail.com wrote:
 Yes...  I was talking about sending through SMTP (on an exchange server).

 Some exchange servers require TLS, not just SSL.



 On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA toreachdee...@gmail.com
 wrote:

 Hi,

 Do you mean SSL ? But I am not taking about TLS.

 The mail function of PHP uses sendmail on linux.

 When I execute above php page, the mail is not going to the recipietn.

 I hope we understand each other.

 Regards

 Deepak

 On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com wrote:
 
  Deepak,
 
  I shared your gripes.  Swift mailer does not support TLS yet, which is
  required for many exchange servers.  PHPMailer does
 
 
 
  On Sep 17, 8:46 am, Eno symb...@gmail.com wrote:
  On Thu, 17 Sep 2009, DEEPAK BHATIA wrote:
   How do we set Fully Qualified Domain Name the /etc/hosts file.
 
  Have you tried sending an email from the command line using the 'mail'
  command? If so, does it work? If not, then your server is not
  configured
  properly.
 
  --
  
 




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---