anujin
anujin

Reputation: 781

How to send email to groups in lotus domino server using PHP

I have a code in PHP that sends emails to users and its working as expected. I need help in figuring out as how to send email to a group defined in lotus notes. So basically there is a group existing with some name as DEV TEAM and if I type this directly, PHP throws 501 Syntax error, parameters in command..... So, is there a way to figure out as how to retrieve the email address format for this group or any other way to send emails.

I know with all you gurus here, I will get some solution definitely:). Thanks for any help in advance.

Please let me know if I can provide any other details.

Code through which I am able to send emails to users but not to a group in lotus notes.

<?php
$to = "[email protected]";
$subject = "TEST EMAIL";
$message = "Hello! Its is test email.";
$from = "[email protected]";
$headers = "From:" . $from . "\r\n";;
$headers .= "Content-Type: text/html";
mail($to,$subject,$message,$headers);
?>

Upvotes: 0

Views: 1885

Answers (2)

D.Bugger
D.Bugger

Reputation: 2359

My guess is that is has got very little to do with the fact that it's a Domino server. I assume the address(es) in $from or $to are malformed. See also http://www-01.ibm.com/support/docview.wss?uid=swg21105288, concerning strict RFC821 format, where '<' and '>' are required. In any case, mail to "dev [email protected]" won't work, the address is invalid.

Upvotes: 0

Richard Schwartz
Richard Schwartz

Reputation: 14628

See my comment on your question. If my assumptions are correct, then the administrator of your Domino server must check the following:

  • DEV TEAM is a valid group in the Domino Directory, with type "Mail Only" or "Multi-Purpose".
  • There is no readers field on the DEV TEAM group that would restrict anonymous users from sending to it.
  • There are no mail rules or restrictions in the server's config document that prevent messages from being sent to the group.
  • The Internet Address field in the DEV TEAM group document in the Domino Directory has been configured. This should be a valid RFC-821 address, such as [email protected] (This is probably optional, but it makes it easier to document the solution.)

Once you have confirmed the above configuration information, your code should use the value that was configured in Internet Address field of the DEV TEAM group in the Domino Directory. (I.e., [email protected])

Upvotes: 1

Related Questions