+ Reply to Thread
Results 1 to 6 of 6

Thread: Using gmail smtp to send mails - server disconnects

  1. #1
    Tarzan is offline x10Hosting Member Tarzan is an unknown quantity at this point
    Join Date
    Jun 2008
    Location
    Sweden
    Posts
    65

    Using gmail smtp to send mails - server disconnects

    Hi!

    I've looked all over for an answer to this one but can't seem to find any:

    I'm trying to use gmails smtp server to send mails, but once I've sent "STARTTLS" it seems like the smtp.gmail.com disconnects. I'm trying to use port 587 with both telnet and fsockopen (php function).

    Does anyone have an idea on how to solve this?
    Last edited by Tarzan; 11-08-2010 at 02:33 PM. Reason: ops wrong port number

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Using gmail smtp to send mails - server disconnects

    I use ssl and port 465 through PHPMailer ( http://sourceforge.net/projects/phpmailer/ ) which works.

    P.S. : How's Jane?
    Last edited by descalzo; 11-08-2010 at 02:31 PM.
    Nothing is always absolutely so.

  3. #3
    Tarzan is offline x10Hosting Member Tarzan is an unknown quantity at this point
    Join Date
    Jun 2008
    Location
    Sweden
    Posts
    65

    Re: Using gmail smtp to send mails - server disconnects

    Thanks for the tip!
    I just prefer trying it out old school
    And I finally got it to work (after some intensive googling) by executing
    stream_socket_enable_crypto($server_handle, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)
    after the "STARTTLS" call. That's probably why telnet didn't work - it didn't support the TLS encryption.

    Thanks again!

    P.S. Jane good, me Tarzan.

  4. #4
    reginaalcaraz62 is offline x10Hosting Member reginaalcaraz62 is an unknown quantity at this point
    Join Date
    Nov 2010
    Posts
    15

    Re: Using gmail smtp to send mails - server disconnects

    I've just crossed here reading this topic. Can someone teach me how to se gmail smtp to send mails? Hehe. Any reply would be nice. : )

  5. #5
    sjpatel is offline x10Hosting Member sjpatel is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    6

    Re: Using gmail smtp to send mails - server disconnects

    Hi,

    I am trying to figure out how to use PHPMailer with X10hosting. Do i need to request for installation of the PHPMailer or it's just stright forward use the function in my PHP script.

    Thanks








    [QUOTE=descalzo;757334]I use ssl and port 465 through PHPMailer ( http://sourceforge.net/projects/phpmailer/ ) which works.

  6. #6
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: Using gmail smtp to send mails - server disconnects

    Can someone please help how can we send smtp email from google when Joomla or wordpress is installed as my site.
    Thank you.
    Regards,
    VVBB

+ Reply to Thread

Similar Threads

  1. How to use Gmail as your SMTP server
    By ghotel in forum Tutorials
    Replies: 17
    Last Post: 09-09-2010, 02:38 AM
  2. Send Mail via Gmail SMTP Problem
    By techairlines in forum Free Hosting
    Replies: 0
    Last Post: 04-16-2010, 12:55 AM
  3. Urgent Help Needed - Cant Send SMTP mails
    By ashwarsadh in forum Free Hosting
    Replies: 6
    Last Post: 04-04-2010, 11:07 AM
  4. Send Wordpress Emails Through External SMTP Server
    By techairlines in forum Tutorials
    Replies: 2
    Last Post: 03-24-2010, 08:21 PM
  5. Can I send mails using smtp?
    By Teensweb in forum Free Hosting
    Replies: 1
    Last Post: 07-15-2008, 02:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers