send mail by another smtp server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
navid
Forum Commoner
Posts: 68
Joined: Tue Sep 24, 2002 3:14 am
Location: iran

send mail by another smtp server

Post by navid »

hi all
i have 2 website.
i want send mail to website1 by website2's smtp server.
but mail() function cannot set smtpserver.

how can i send mail another mail server.
___________________________
sorry for my poor english
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

http://www.php.net/manual/en/ref.mail.p ... figuration states that the configuration parameters for mailing are PHP_INI_ALL, so you should be able to set them via ini_set() before calling mail()
navid
Forum Commoner
Posts: 68
Joined: Tue Sep 24, 2002 3:14 am
Location: iran

Post by navid »

hi volka
thanks,i can send mail by another smtpserver.
but the mail server don't get password.
i want to get password when i connect to mailsserver.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

uh? get a password?
Sorry, somehow I miss the point ;)
navid
Forum Commoner
Posts: 68
Joined: Tue Sep 24, 2002 3:14 am
Location: iran

Post by navid »

hi volka

Plaese accept my apologize about my fault.
I can send mail by another smtpserver.
but the mail server don't get password.
I want to be got password when I connect to mailsserver.
___________________________
sorry for my poor english
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if you have to authenticate before the smtp-server accepts your mail request, we're back at viewtopic.php?t=4614 which you haven't answered by now ;)
Post Reply