Code: Select all
<?php
mail("dk_mahadeva@yahoo.com,admin@InternalCompany.com,admin@ExternalCompany.com,", "Test Mail - Please Reply", "Test Mail");
?>
Example: me@myCompany.com
But when I send an email to email addresses that are External to our Organization such as:
helpdesk@SomeOtherCompany.com
then it (the message for the External Email ID) remains in the "C:\Inetpub\mailroot\Queue" folder of the SMTP Server.
If I include both the email addresses still email is being sent to the internal email id but not to the external one.
I am observing that the message "NTFS_46d7ec1201caa8410000002d.EML" which has been lying Queued in the above folder for over 30 minutes by now. That means it won't be delivered at all.
I really need to do that because the whole wbe application which I have coded is meant for sending reports and if no email is sent to an externam email address then the project cannot be put to use.
Note: Just to restate, the above sample code doesn't send email to user@yahoo.com and user@ExternalCompany.com, but to user@InternalCompany.com
I have tried using VBScript (CDO.Message) in an ASP to accomplish the same task and the same result was produced.
Has it to do with any Firewall Settings? I checked that too, though, and allowed SMTP to be used through Internet.
Can anyone help me with it, please?