473,395 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Non-local SMTP mail function.

I am working on a webpage that is on a different server than the email
server that the company wants me to use to send emails.

Is it possible to change the PHP.ini file to use this non-local SMTP
server, or is it not that simple?

Oct 4 '06 #1
7 4036

huntedsnark wrote:
I am working on a webpage that is on a different server than the email
server that the company wants me to use to send emails.

Is it possible to change the PHP.ini file to use this non-local SMTP
server, or is it not that simple?
It is that simple.

Flamer.

Oct 4 '06 #2
Hmm huntedsnark <ma****@cinci.rr.comwrote:
Is it possible to change the PHP.ini file to use this non-local SMTP
server, or is it not that simple?
Yes, it is. You have option in php.ini
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this =mysql_query();
Oct 5 '06 #3


On Oct 5, 2:08 am, "huntedsnark" <mah...@cinci.rr.comwrote:
I am working on a webpage that is on a different server than the email
server that the company wants me to use to send emails.

Is it possible to change the PHP.ini file to use this non-local SMTP
server, or is it not that simple?
You can also do that by PHP script no need to do that in PHP.ini
file...

Here is the fuction.... ini_set("SMTP","http://www.example.com");

Regards,
Mitul Patel

Oct 5 '06 #4
Hmm Mitul <pa***********@gmail.comwrote:
You can also do that by PHP script no need to do that in PHP.ini
Here is the fuction.... ini_set("SMTP",http://www.example.com);
ofc you right, but i've told him only where he should to check
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this =mysql_query();
Oct 5 '06 #5

..:[ ikciu ]:. wrote:
Hmm Mitul <pa***********@gmail.comwrote:
You can also do that by PHP script no need to do that in PHP.ini
Here is the fuction.... ini_set("SMTP",http://www.example.com);

ofc you right, but i've told him only where he should to check
===
Ya I know that but I am just inform that it is be possible by script
also :). You are also right. ;)

Oct 5 '06 #6
Hmm Mitul <pa***********@gmail.comwrote:
Ya I know that but I am just inform that it is be possible by script
also :)
if he has site non localhost (provider) then usualy (only if he is the
owner) he won't access to php.ini file so the only solution is ini_set :) i
didn't want to give him full soulution - i wanted to show him the path and
he should to find the way to do it
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this =mysql_query();
Oct 5 '06 #7
NC
huntedsnark wrote:
>
I am working on a webpage that is on a different server
than the email server that the company wants me to use
to send emails.

Is it possible to change the PHP.ini file to use this non-
local SMTP server, or is it not that simple?
This is possible only if you are running PHP on Windows:

http://us3.php.net/manual/en/ref.mail.php#ini.smtp

On Unix, PHP does not normally use SMTP; it communicates
with a mail transfer agent (MTA) directly; dealing with SMTP is
left to the MTA.

This said, you can still have a PHP script send e-mail via
SMTP (local or otherwise), if you use phpMailer:

http://phpmailer.sf.net/

Cheers,
NC

Oct 5 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: lothar | last post by:
re: 4.2.1 Regular Expression Syntax http://docs.python.org/lib/re-syntax.html *?, +?, ?? Adding "?" after the qualifier makes it perform the match in non-greedy or minimal fashion; as few...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
4
by: bwmiller16 | last post by:
Guys - I'm doing a database consistency check for a client and I find that they're building unique indexes for performance/query reasons where they could be using non-unique indexes. Note...
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
4
by: Dave | last post by:
I need to add the ability to drag from a Windows Form and drop into a non dotNet application. For example, having a generated image in my app that I wish to drag out into explorer as a friendly way...
14
by: Patrick Kowalzick | last post by:
Dear all, I have an existing piece of code with a struct with some PODs. struct A { int x; int y; };
0
by: amitvps | last post by:
Secure Socket Layer is very important and useful for any web application but it brings some problems too with itself. Handling navigation between secure and non-secure pages is one of the cumbersome...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.