mail() with SMTP

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
nwp
Forum Contributor
Posts: 105
Joined: Sun Feb 04, 2007 12:25 pm

mail() with SMTP

Post by nwp »

Hello everybody
I wanna know how can I send Emails using external SMTP server that requires password.
Without editing php.ini file and without using any classes/pear.
Just Using the mail() function
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

no, but you can use swiftmailer: viewtopic.php?t=56625
it better using swiftmailer, than mail anyway because mail() uses bandwidth
nwp
Forum Contributor
Posts: 105
Joined: Sun Feb 04, 2007 12:25 pm

Post by nwp »

tecktalkcm0391 wrote:no, but you can use swiftmailer: viewtopic.php?t=56625
it better using swiftmailer, than mail anyway because mail() uses bandwidth
Look I've Told Before
nwp wrote:without using any classes
arn't there any Way really ??
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's technically possible without classes, but why?

If you wanted to convert the Swift library to functions only for example.. however you would require modifying the code beyond a very minimal amount.
nwp
Forum Contributor
Posts: 105
Joined: Sun Feb 04, 2007 12:25 pm

Post by nwp »

feyd wrote:It's technically possible without classes
I just wanna know how I can Do It
do I need to Use socket_write() on a that SMTP server on port 25 or 9000
But what arguments to pass in socket_write() (Thats whats the format to pass arguments through socket_write() on a smtp server)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Examine how Swift works...
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

There is also good tutorials online for this.

:google:
Post Reply