Configure the SourceForgeSMTP server

Source: Internet
Author: User
Configure the SourceForgeSMTP server. this is SOURCEFORGE. the sample code provided by. NET. inc (see the attachment for its content) finds the function connected to it and makes necessary modifications. then, you can send an email on the prwebmail server that uses SF on your project web site, for example, the activation letter of the newly registered user. It is used to replace the default SMTP settings of php. ini. you must know that the VM user has no permission to edit php. ini.

Include ('mail. php ');

$ Recipients = array ('Someone @ example.com '); # Can be one or more emails

$ Headers = array (
'From' => 'Someone @ example.com ',
'To' => join (',', $ recipients ),
'Subobject' => 'testing email from project web ',
);

$ Body = "This was sent via php from project web! \ N ";

$ Mail_object = & Mail: factory ('smtp ',
Array (
'Host' => 'prwebmail ',
'Auth' => true,
'Username' => 'Your _ PROJECT_NAME ',
'Password' => 'password', # As set on your project's config page
# 'Debug' => true, # uncomment to enable debugging
));

$ Mail_object-> send ($ recipients, $ headers, $ body );



The content of the schemdes/mail. inc file is as follows:
Please download Drupal7.12 and read the related des/mail. inc.

Zero!


Reply to discussion (solution)

The built-in mail does not work. try a third-party phpmailer.

I forgot to tell you, phpmailer couldn't work on this project web.

If it is a wordpress program, you can integrate wordpress smtp to get... In addition, discuz can be set in the background, and sourceforge's mailbox can be used
Host: prwebmail
Https://sourceforge.net/p/forge/documentation/Project%20Web%20Email/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.