从自定义域发送GAE电子邮件

时间:2016-12-08 04:21:08

标签: email google-app-engine

GAE是否可以从appspotmail.com以外的域发送电子邮件?

我目前有一个GAE项目,指向GoDaddy托管的域名。我无法做到这样的事情:

use http://www.stata-press.com/data/r13/nhanes2, clear

** specify parameters and variables
local cilevel = 95
local groupvar agegrp
local typevar sex
local ytitle "Linear Prediction"
local title "Adjust Predictions of `groupvar'#`typevar' with `cilevel'% CIs"
local eplot scatter
local rplottype rspike
local spaceby 0.1 /* use this param to control the dodge */

** store labels of groupvar ("agegrp") and typevar ("sex")
local varlist `groupvar' `typevar'
foreach vv of var `varlist' {
    local `vv'_varlab : var lab `vv'        
    qui levelsof `vv', local( `vv'_vals )
    foreach vl of local `vv'_vals {     
        local `vv'_`vl'lab : lab `vv' `vl'  
        lab def `vv'_vallab `vl' "``vv'_`vl'lab'", add
    }
}

** run analysis
qui reg bpsystol `groupvar'##`typevar'
margins `groupvar'#`typevar'

** use parmest to store estimates
preserve
parmest , bmat(r(b)) vmat(r(V)) level( `cilevel' ) fast
lab var estimate "`ytitle'"

split parm, parse( . # )
qui destring parm*, replace
rename parm1 `groupvar'
rename parm3 `typevar'

** reaply stored labels
foreach vv of var `varlist' {
    lab var `vv' "``vv'_varlab'"
    lab val `vv' `vv'_vallab
}

** dodge and plot
replace agegrp = agegrp - ( `spaceby' / 2 )
eclplot estimate min95 max95 agegrp ///
    , eplot( `eplot' ) rplottype( `rplottype' ) ///
    supby( sex, spaceby( `spaceby' ) ) ///
    estopts1( mcolor( navy ) ) estopts2( mcolor( maroon ) ) ///
    ciopts1( lcolor( navy ) ) ciopts2( lcolor( maroon ) ) ///
    title( "`title'" )

restore

这出错了,说这是一个无效的发件人。不是什么大惊喜。

是否可以使用我的自定义域名?

0 个答案:

没有答案