I have installed Symfony 1_2 so I don't have Swift Mailer, and I find
too difficult change my project to 1_4.
Apart from that, I have configed php.ini:
; For Win32 only.
SMTP = smtp.gmail.com
sendmail_from= [email protected]
smtp_server = smtp.gmail.com
smtp_port = 25
auth_username = [email protected]
auth_password = ... (of course, I DON'T SHOW THE PASSWORD, but it's
writing)

And I use a sendmail.exe, that I have download, to solution a warning
"Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must
issue a STARTTLS command first "

My code is:
$mensaje = "Línea 1\nLínea 2\nLínea 3";

// En caso de que cualquiera de las líneas sea más larga de 70
caracteres,
// debe usarse wordwrap()
$mensaje = wordwrap($mensaje, 70);
$headers = "From: [email protected]\r\n";
// Send
if(mail('[email protected]', 'Mi título', $mensaje,$headers)) {
  echo 'Correcto';
  }


and
 // send an email to the affiliate
ProjectConfiguration::registerZend();
$mail = new Zend_Mail();
$mail->setBodyText('Your Jobeet affiliate account has been activated.
Your token is The Jobeet Bot.');
$mail->setFrom('[email protected]', 'Jobeet Bot');
$mail->addTo($affiliate->getEmail());
$mail->setSubject('Jobeet affiliate token');
$mail->send();


In both cases frontend_dev.php finished without errors, but the emails
never are in the inbox.



; For Unix only.  You may supply arguments as well (default: "sendmail
-t -i").
; http://php.net/sendmail-path
sendmail_path = "C:\wamp\bin\sendmail.exe -t";






On 24 ago, 02:03, Gustavo Adrian <[email protected]> wrote:
> Did you try using the Swift Mailer that comes with Symfony? try sending with
> SMTP using the SMTP server of your gmail account (if you don't have your own
> email account, of course).
>
> Here says 
> how:http://www.symfony-project.org/gentle-introduction/1_4/en/11-Emails
>
> <http://www.symfony-project.org/gentle-introduction/1_4/en/11-Emails>
>
> On Mon, Aug 23, 2010 at 8:04 PM, Jochen Daum <[email protected]> wrote:
> > Hi,
>
> > On Tue, Aug 24, 2010 at 10:51 AM, vero <[email protected]> wrote:
> > > I have tried configuring my computer to use the fuction mail() .
> > > I have tried use Zend Framework,, exactly like in jobeet.
> > > But nothing works. The code was compiled, but no email was send.
>
> > > Please, help me! I need e-mails in my project.
>
> > Does <?php
>
> > mail('[email protected]','test','test');
>
> > ?>
>
> > work?
>
> > What operating system? Windows: Does your ISP require authentication?
> > (if yes, need to install a local Mail server, try Hamster) Linux:
> > Postfix installed?
>

> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<symfony-users%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to