PHP/Pear smtp to gmail?

  • o[tter]
  • Student
  • Student
  • User avatar
  • Joined: Oct 26, 2004
  • Posts: 80
  • Loc: Seattle, WA, USA
  • Status: Offline

Post March 24th, 2005, 9:35 pm

Okay, so I've got a apache server running a simple site. I've also got mercury mail server running to send email with the from address as my gmail address. That all works fine, but there are several email servers that block the email because I'm on a cable connection.

So, I thought I'd try using the SMTP function in pear mail to connect to gmail and send it. I'm not sure how far it's getting, but I'm getting the error "unable to set from address" and I don't know what to fix. The from address is my gmail address. I've tried it in several forms. Anyone have an idea?

Is there any way I can see the dialog between my webserver and gmail to see if it's going wrong before the from? Maybe the authentication isn't working?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 24th, 2005, 9:35 pm

  • o[tter]
  • Student
  • Student
  • User avatar
  • Joined: Oct 26, 2004
  • Posts: 80
  • Loc: Seattle, WA, USA
  • Status: Offline

Post March 24th, 2005, 9:52 pm

Right then, I did some more checking and apparently it's not authenticating, and I think that's because gmail wants STARTTLS and all I can figure out how to do in PHP is SSL and TLS.... anyone know if/what I can do?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 127 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2010 Unmelted, LLC. Driven by phpBB © 2010 phpBB Group.