User Profile

Collapse

Profile Sidebar

Collapse
Ajarn Chan
Ajarn Chan
Last Activity: Mar 20 '12, 12:41 PM
Joined: Mar 14 '12
Location: Phuket, Thailand
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ajarn Chan
    replied to cannot send mail using PHP beyond domain
    in PHP
    NOTE: though this method does work, at least with my setup, there are some anomalies which I think are caused by the Server's rules concerning SMTP. For example only one eMail can be sent to an address at a time, there must be a delay of a few minutes before another can go, in cases where the mail is virtually identical. This makes testing awkward, but I guess it is part of anti-spam protection.

    Further problems occur if there are any...
    See more | Go to post
    Last edited by Ajarn Chan; Mar 16 '12, 02:24 PM. Reason: tidying up

    Leave a comment:


  • Ajarn Chan
    replied to cannot send mail using PHP beyond domain
    in PHP
    1st file, uses 2nd file [includes it] place both in same folder for simplicity, move one to /includes/ if you want to be tidy, then change path.

    save the first file as 'test_auth_mail .php', or some memorable name
    Code:
    <html>
      <head>
        <title>Simple SMTP mail test</title>
      </head>
      <body>
    Testing SMTP mail sending ...
    <br><hr><br>
    ...
    See more | Go to post
    Last edited by Ajarn Chan; Mar 14 '12, 09:53 PM. Reason: tidying up

    Leave a comment:


  • Ajarn Chan
    started a topic cannot send mail using PHP beyond domain
    in PHP

    cannot send mail using PHP beyond domain

    I WAS trying to send mail using PHP from within IIS, the SMTP server had refused to send mail beyond the domain without authentication, but php mail() could not provide that. The hosting firm does not have Pear, I could not find another way ?

    UPDATE/STOP PRESS: Using 'fsockopen' I was eventually able to get it working. I have pasted the working solution here.

    Thank you to the people who viewed my query, but in the end I...
    See more | Go to post
    Last edited by Ajarn Chan; Mar 14 '12, 09:11 PM. Reason: Resolved !! :)
No activity results to display
Show More
Working...