5 Replies - 1269 Views - Last Post: 27 September 2012 - 09:15 AM Rate Topic: -----

#1 NewinPHP  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-September 12

send mail from localhost

Posted 27 September 2012 - 08:17 AM

I make php project for a company,i want to send mail only to that company pepole only.here we use Groupwise client for sending mail.but i want to send mail from localhost to groupwise.help me...

I make php project for a company,i want to send mail only to that company pepole only.here we use Groupwise client for sending mail.but i want to send mail from localhost to groupwise.help me...
Is This A Good Question/Topic? 0
  • +

Replies To: send mail from localhost

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5407
  • View blog
  • Posts: 27,410
  • Joined: 10-May 07

Re: send mail from localhost

Posted 27 September 2012 - 08:18 AM

First thing you need to check is that your isp offers traffic on port 25. Secondly you need to check that Groupwise offers pop or imap connections.

Start there, plug those results into your php code, & post back with any specific issues.
Was This Post Helpful? 0
  • +
  • -

#3 NewinPHP  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-September 12

Re: send mail from localhost

Posted 27 September 2012 - 08:37 AM

i am using smtp for sending mail in localhost and i check that when we r sending mail from groupwise there is smtp
and i used that one.Aftre running script i don't have any error.i use one of msg that email sucessfully send.i got this message only but did not got mail in groupwise.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5407
  • View blog
  • Posts: 27,410
  • Joined: 10-May 07

Re: send mail from localhost

Posted 27 September 2012 - 08:49 AM

You're asking for help, but not really giving anything for us to help with. Please show us your codes, & (again), verify with your isp that you can send traffic on port 25.

View PostNewinPHP, on 27 September 2012 - 11:37 AM, said:

Aftre running script i don't have any error


As per php.net's documentation on the mail function

Quote

It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.

Was This Post Helpful? 0
  • +
  • -

#5 NewinPHP  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-September 12

Re: send mail from localhost

Posted 27 September 2012 - 09:05 AM

I have changed smtp in php.ini and used port 25 same.my code is:
<?php
$subject="Test mail";
$to="deepika.gupta@vcst.com.mx";
$body="This is a test mail";
$hdrs="From: Miguel.Lopez@vcst.com.mx";
//mail($to, $subject, $body, $hdrs);
if (mail($to,$subject,$body,$hdrs))
echo "Email sent successfully!";
else
echo "Mail not sent!";
?>


Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5407
  • View blog
  • Posts: 27,410
  • Joined: 10-May 07

Re: send mail from localhost

Posted 27 September 2012 - 09:15 AM

View PostNewinPHP, on 27 September 2012 - 12:05 PM, said:

...
if (mail($to,$subject,$body,$hdrs))
echo "Email sent successfully!";
...
?>


Ok, so your test is successful, which means that the data was sent. It's sent out port 25, so again, for my 3rd post on this topic, I will say for a 3rd time, you need to verify with your isp that they allow traffic on port 25.

Also know that using the standard mail function does not use pop/smtp mail. It relies on localhost to be running a mailserver, which is not what you said you wanted to do in your first post. You said you wanted to use Groupwise.

Please, for your own sake, gather the following information before posting another followup :

1.) Verify with your isp that you an use port 25 for sending email
2.) Get your pop/smtp username & password from Groupwise.

If you are unable to properly prepare for the project, no amount of coding will get you through it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1