duandan9680 2013-04-01 03:06
浏览 16

too long

I've a setup with sendmail and PHP, sendmail is sending email through en Gmail/Google Apps account with SSL and SPF enabled.

Emails are delivered and working without any problems.

The only limitation so far is all outgoing emails are sent from the Gmail account set within sendmail.ini, the FROM: value gets ignored.

Is there anyway to let a script use a custom FROM when specified and use Gmail for the un-specified ones?

  • 写回答

2条回答 默认 最新

  • doy57007 2013-04-01 03:12
    关注

    Hope this may help..

    // Please specify your Mail Server - Example: mail.example.com.
    ini_set("SMTP","mail.example.com");
    
    // Please specify an SMTP Number 25 and 8889 are valid SMTP Ports.
    ini_set("smtp_port","25");
    
    // Please specify the return address to use
    ini_set('sendmail_from', 'example@YourDomain.com');
    

    or for more info..

    go in this link here.

    评论

报告相同问题?

悬赏问题

  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程