swiftmailer wont send

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
ksalling
Forum Newbie
Posts: 2
Joined: Tue Jan 13, 2009 1:47 am

swiftmailer wont send

Post by ksalling »

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.
xxx@gmail.com and xxx@riverstarcincy.com when I upload the controllers
etc up to the web server http://www.riverstarcincy.com it sends fine to the
xxx@gmail.com but will not send to xxx@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!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: swiftmailer wont send

Post by Chris Corbyn »

Problems like this usually come down to spam blocking and are often related to the network rather than to the email content.

Have you checked the notes on http://swiftmailer.org/wikidocs/v3/tips_spam ?
ksalling
Forum Newbie
Posts: 2
Joined: Tue Jan 13, 2009 1:47 am

Re: swiftmailer wont send

Post by ksalling »

Yeah the weird issue is the discrimination issue I am having. It works fine on my local machine. When i upload the project to the server (a small orange webhosting) it will not send to any address that is located on the same domain as the site itself (in this case it is riverstarcincy.com and the site is hosted on ASO and the email is hosted by google apps.) I amusing the google apps smtp for the sending and I will receive the email to every other email address such as "rr.com", "uc.edu", "gmail.com, and even another .com I have hosted on google apps. As it seems this wont send via the smtp to an internal address. Sounds like a server issue to me but I wanted to post it to see if anyone has had any similar problems.

Here is my fix, I really dislike the way that I have "rigged" it but unfortunately the site is live and my client jumped the gun before testing was done and told all 400 of his clients to register online so for a day he was not getting email prompts. In order to make this work I had to create a gmail account and set filters to forward the site mail to his google apps account. Adds one more layer for failure but at least it works for now.

I am gonna dig through that documentation a bit to see if I cant come up with a reason or if anyone has some more insight please let me know.

Right now some solutions I plan on testing (besides the one I have in use):

-Possibly use port 587 instead of 465 for the google smtp
-The IMAP and POP3 was disabled, maybe this needs to be enabled and the sending of non-internal emails is a sort of bug in the gmail code.

Also I am using a framework called cake which makes accessing the nitty gritty of swiftmailer a bit difficult but that is another thing I am gonna work on so I can see more of how my email is getting sent out to verify that it is infact compliant.

Thank you for your help.

-K
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: swiftmailer wont send

Post by s.dot »

Is your servers IP blacklisted?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply