here is what I am using....

$this->Swiftmailer->smtpType = 'tls';
$this->Swiftmailer->smtpHost = 'smtp.gmail.com';
$this->Swiftmailer->smtpPort = 465;
$this->Swiftmailer->smtpUsername = 'usern...@riverstarcincy.com';
$this->Swiftmailer->smtpPassword = 'password';
$this->SwiftMailer->from = 't...@test.com';
$this->SwiftMailer->fromName = 'Riverstar';
$this->SwiftMailer->to = array('usern...@riverstarcincy.com'=>'Kyle',
                                        'usern...@gmail.com'=>'kyle');
$this->SwiftMailer->layout = 'test';

if (!$this->SwiftMailer->send('register', 'Test')) {
        $this->log('Error sending mail', LOG_ERROR);
}

This still doesn't seem to work... what would be the difference
between doing this call on my xampp machine and on the webserver
besides that one actually has a .com name attached and the other one
is called as localhost? It woks fine on my local machine. When I
upload to my server it will send to the gmail account but not the
riverstarcincy.com (google apps) email. I have also tried it with
several different users on this domain as well. If both servers are
talking to the smtp and not sending from the native then what is the
difference between my local machine and my webserver? I am pretty
confused.

-K

Sorry if this is a double post again I hit send and wait 30 mins and
nothing shows up... what gives?


On Jan 13, 1:58 am, brian <bally.z...@gmail.com> wrote:
> Does the sendFrom header happen to contain "x...@riverstarcincy.com"? I
> ask because gMail doesn't display mails from myself to, for instance,
> this group. It's the source of some n00b frustration--myself
> included--in that one's first message (likely written in a cold sweat)
> doesn't appear to make it up.
>
> Anyway, I'm wondering if google's just trying to be "efficient". Have
> a look at your gApps POP/IMAP settings.
>
> On Tue, Jan 13, 2009 at 1:26 AM, ksalling <k...@kylesalling.com> wrote:
>
> > I am running swiftmailer for php5 and the updated swiftmailer
> > component for cake. I am running this on my local  machine using xampp
> > and everything works fine sending out an email to two recipients.
> > x...@gmail.com and x...@riverstarcincy.com when I upload the controllers
> > etc up to the web serverwww.riverstarcincy.comit sends fine to the
> > x...@gmail.com but will not send to x...@riverstarcincy.com it does not
> > give any error messages with cake in debug mode nor does it leave
> > anything in the cake logs located in the tmp folder. My
> > riverstarcincy.com mail is being hosted by Google apps and I am using
> > the associated smtp server through Google to send this mail. I do not
> > understand why the smtp is sending the mail when I am on my local
> > machine and not when I have the page located on the riverstarcincy.com
> > server. Please help I have been at this problem for a day and cannot
> > figure it out.
>
> > Thank you!

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

Reply via email to