Jump to content


This topic is now archived and is closed to further replies.


PHP Mail function

Recommended Posts

Hi All
I need to write something and I would like to know if it is possible to set the smtp server settings in the script itself rather than the php.ini

Any help will be apprediated



Share this post

Link to post
Share on other sites
I believe you can use ini_set to change SMTP and smtp_port, but if that doesn't work you can use the imap functions, code something, or a ready-made script like Swift or PHP-Mailer

[a href=\"http://phpmailer.sourceforge.net/\" target=\"_blank\"]http://phpmailer.sourceforge.net/[/a]
[a href=\"http://www.swiftmailer.org/\" target=\"_blank\"]http://www.swiftmailer.org/[/a]

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.