Jump to content

Mail using google smtp


abdfahim

Recommended Posts

You would need to write the code to open a socket connection to the mail server and exchange smtp commends with it, including those necessary to use SMTP Authentication, the same as what one of those classes are doing in their code.

 

So, instead of writing and testing a couple of dozen lines of code, why don't you just use one of the existing classes?

Link to comment
Share on other sites

The reason is that all those classes consist of many options (like attachment etc.) that requires several files and many lines of coding. And so, most of those classes consists redundant (or unnecessary) lines for my cause (as I said, I need only one line body with a subject).

Link to comment
Share on other sites

The only way you can send to or through a mail server that has not been configured to trust the IP address of the server where your script is running at is to use SMTP Authentication. Since the php mail() function does not support SMTP Authentication, you must either use one of the classes that does or write your own code to communicate directly with the mail server and exchange the necessary smtp commands with it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.