Jump to content

sending mail via php, using authentication


bradkenyon

Recommended Posts

I am using HTML Mime Mail for PHP (http://www.phpguru.org/static/mime.mail.html) to send a daily bulletin.

 

I work at a college and we have two email accounts dedicated to sending to all accounts.

 

one is for sending to all students, the other is for sending to all faculty/staff.

 

Each morning a script put the day's events into an email and sends it out to both accounts.

 

The problem is, the two email addresses can only be sent to if you are an authorized user on the mail system.

 

Right now it is setup to just send using the script, but I can not get it to work using authentication.

 

for example....

 

this is what i see when I look up the setSMTPParams:

setSMTPParams(string $host, int $port, string $helo, bool $auth, string $user, string $pass)

 

this is what I have

setSMTPParams('mail1.domain.edu', 25, '', true, 'user', 'password');

 

If anyone has used this, any help would be great, but if there is another mail script you have used, let me know.

 

Also, the server is an exchange server.

 

Thanks for help in advance.

 

Link to comment
Share on other sites

I got it to work w/ authentication, it would not send the email if the username/password was incorrect, but when it was correct, it would send, but it was never received.

 

The way outlook authenticates on the server is more strict than just your username and password being correct.

 

So I am still scratching my head to figure out what other hoops I need to jump thru.

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.