Mail Function
Moderator: General Moderators
- softsolvers
- Forum Commoner
- Posts: 75
- Joined: Fri Feb 13, 2004 4:26 am
- Location: India
Mail Function
Hi friends,
I have some question regarding mail function,
1.What should be in SMTP server?.The name of Mail Server i think if i donot have such server then what should i write in this .
2.If i am giving the mail server name as the mail server we are using i stick with the mails which passed to this server.Quite Complex.????????
Well i mean
if in mail function ;
mail|("a@yahoo.com","Test","TEsting");
and in php.ini file sendmail_from="B.rediffmail.com";
and what should i write in the SMTP server so that mail could reach there.
Looking for Quick Repply
I have some question regarding mail function,
1.What should be in SMTP server?.The name of Mail Server i think if i donot have such server then what should i write in this .
2.If i am giving the mail server name as the mail server we are using i stick with the mails which passed to this server.Quite Complex.????????
Well i mean
if in mail function ;
mail|("a@yahoo.com","Test","TEsting");
and in php.ini file sendmail_from="B.rediffmail.com";
and what should i write in the SMTP server so that mail could reach there.
Looking for Quick Repply
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
Re: Mail Function
The name of your outgoing mail server. Check your email settings. However, ten to one your your outgoing mail server uses authentication, so what you need is to find a SMTP class like this one (there are others just look around):softsolvers wrote:Hi friends,
I have some question regarding mail function,
1.What should be in SMTP server?.The name of Mail Server i think if i donot have such server then what should i write in this .
http://www.phpclasses.org/browse/package/346.html
or write or own. I modified that above one to mimic the mail function and added a simple switch to choose between AUTH and non-AUTH ( PHP mail() ).
Hmmm....Think I answered that above?softsolvers wrote:2.If i am giving the mail server name as the mail server we are using i stick with the mails which passed to this server.Quite Complex.????????
Well i mean
if in mail function ;
mail|("a@yahoo.com","Test","TEsting");
and in php.ini file sendmail_from="B.rediffmail.com";
and what should i write in the SMTP server so that mail could reach there.
Looking for Quick Repply
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
- softsolvers
- Forum Commoner
- Posts: 75
- Joined: Fri Feb 13, 2004 4:26 am
- Location: India
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
You would have to check with Yahoo for your email settings. However, it will not work with the FREE Yahoo account because it doesn't have POP3 access. Plus you will still need a mail class like the one mentioned earlier, but I doubt the one I mentioned as an example will work. You'll need one to verify via POP3 before you can send mail via SMTP. (This is based on two year old info, haven't used yahoo since they discontinued POP3 access.)
- softsolvers
- Forum Commoner
- Posts: 75
- Joined: Fri Feb 13, 2004 4:26 am
- Location: India
Hello and thanks,
what i feel i am not able to post my question properly,
So again i am writing ,my query-----
I am not a professional user,i want to make a program that the mail will be send from my particular ID like xxx@xxx.com from my pc to all the members i like to send mail.Now which mail server i shoul use.
I hope now you are getting what the actually the problem is?
what i feel i am not able to post my question properly,
So again i am writing ,my query-----
I am not a professional user,i want to make a program that the mail will be send from my particular ID like xxx@xxx.com from my pc to all the members i like to send mail.Now which mail server i shoul use.
I hope now you are getting what the actually the problem is?
-
coreycollins
- Forum Commoner
- Posts: 67
- Joined: Sun Feb 01, 2004 1:04 pm
- Location: Michigan
- softsolvers
- Forum Commoner
- Posts: 75
- Joined: Fri Feb 13, 2004 4:26 am
- Location: India
- softsolvers
- Forum Commoner
- Posts: 75
- Joined: Fri Feb 13, 2004 4:26 am
- Location: India
Mail Problem
Hello friends,
i had made the changes in the php.ine file of my system,but still i am not able to get the mail at my free site id.
i am writing the code,
<?php
mail("abc@xxx.xxx","test","test");
?>
in php.ini file i had made 2 changes in php.ini .
1.SMTP =mail.abc.com
(my SMTP server)
2.sendmail_from= shah_divyesh@lycos.com
but i am not getting the mail at abc#xxx.xxx,why is it so.
Please do help me?????????????
i had made the changes in the php.ine file of my system,but still i am not able to get the mail at my free site id.
i am writing the code,
<?php
mail("abc@xxx.xxx","test","test");
?>
in php.ini file i had made 2 changes in php.ini .
1.SMTP =mail.abc.com
(my SMTP server)
2.sendmail_from= shah_divyesh@lycos.com
but i am not getting the mail at abc#xxx.xxx,why is it so.
Please do help me?????????????